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 (OwningPtr< Document > &D) | |
Node * | getKey () |
Parse and return the key. More... | |
Node * | getValue () |
Parse and return the value. More... | |
virtual void | skip () LLVM_OVERRIDE |
![]() | |
Node (unsigned int Type, OwningPtr< Document > &, StringRef Anchor, StringRef Tag) | |
StringRef | getAnchor () const |
Get the value of the anchor attached to this node. If it does not have one, getAnchor().size() will be 0. More... | |
StringRef | getRawTag () const |
Get the tag as it was written in the document. This does not perform tag resolution. More... | |
std::string | getVerbatimTag () const |
Get the verbatium tag for a given Node. This performs tag resoluton and substitution. More... | |
SMRange | getSourceRange () const |
void | setSourceRange (SMRange SR) |
Token & | peekNext () |
Token | getNext () |
Node * | parseBlockNode () |
BumpPtrAllocator & | getAllocator () |
void | setError (const Twine &Message, Token &Location) const |
bool | failed () const |
unsigned int | getType () const |
void * | operator new (size_t Size, BumpPtrAllocator &Alloc, size_t Alignment=16) throw () |
void | operator delete (void *Ptr, BumpPtrAllocator &Alloc, size_t) throw () |
Static Public Member Functions | |
static bool | classof (const Node *N) |
Additional Inherited Members | |
![]() | |
enum | NodeKind { NK_Null, NK_Scalar, NK_KeyValue, NK_Mapping, NK_Sequence, NK_Alias } |
![]() | |
void | operator delete (void *) throw () |
virtual | ~Node () |
![]() | |
OwningPtr< Document > & | Doc |
SMRange | SourceRange |
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 236 of file YAMLParser.h.
Definition at line 239 of file YAMLParser.h.
Definition at line 264 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 1859 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 1884 of file YAMLParser.cpp.
References llvm::yaml::Token::Kind.
Referenced by skip().
|
inlinevirtual |
Reimplemented from llvm::yaml::Node.
Definition at line 259 of file YAMLParser.h.
References getKey(), getValue(), and llvm::yaml::Node::skip().