LLVM API Documentation
A key and value pair. While not technically a Node under the YAML representation graph, it is easier to treat them this way. More...
#include <YAMLParser.h>
Public Member Functions | |
KeyValueNode (std::unique_ptr< Document > &D) | |
Node * | getKey () |
Parse and return the key. | |
Node * | getValue () |
Parse and return the value. | |
void | skip () override |
Static Public Member Functions | |
static bool | classof (const Node *N) |
A key and value pair. While not technically a Node under the YAML representation graph, it is easier to treat them this way.
TODO: Consider making this not a child of Node.
Example: Section: .text
Definition at line 233 of file YAMLParser.h.
llvm::yaml::KeyValueNode::KeyValueNode | ( | std::unique_ptr< Document > & | D | ) | [inline] |
Definition at line 237 of file YAMLParser.h.
static bool llvm::yaml::KeyValueNode::classof | ( | const Node * | N | ) | [inline, static] |
Definition at line 260 of file YAMLParser.h.
References llvm::yaml::Node::getType(), and llvm::yaml::Node::NK_KeyValue.
Node * KeyValueNode::getKey | ( | ) |
Parse and return the key.
This may be called multiple times.
Definition at line 1812 of file YAMLParser.cpp.
References llvm::yaml::Token::Kind.
Referenced by skip().
Node * KeyValueNode::getValue | ( | ) |
Parse and return the value.
This may be called multiple times.
Definition at line 1837 of file YAMLParser.cpp.
References llvm::yaml::Token::Kind.
Referenced by skip().
void llvm::yaml::KeyValueNode::skip | ( | ) | [inline, override, virtual] |
Reimplemented from llvm::yaml::Node.
Definition at line 255 of file YAMLParser.h.
References getKey(), getValue(), and llvm::yaml::Node::skip().