|
LLVM
8.0.1
|
A key and value pair. More...
#include "llvm/Support/YAMLParser.h"


Public Member Functions | |
| KeyValueNode (std::unique_ptr< Document > &D) | |
| Node * | getKey () |
| Parse and return the key. More... | |
| Node * | getValue () |
| Parse and return the value. More... | |
| void | skip () override |
Public Member Functions inherited from llvm::yaml::Node | |
| Node (unsigned int Type, std::unique_ptr< Document > &, StringRef Anchor, StringRef Tag) | |
| Node (const Node &)=delete | |
| void | operator= (const Node &)=delete |
| void * | operator new (size_t Size, BumpPtrAllocator &Alloc, size_t Alignment=16) noexcept |
| void | operator delete (void *Ptr, BumpPtrAllocator &Alloc, size_t Size) noexcept |
| void | operator delete (void *) noexcept=delete |
| StringRef | getAnchor () const |
| Get the value of the anchor attached to this node. More... | |
| StringRef | getRawTag () const |
| Get the tag as it was written in the document. More... | |
| std::string | getVerbatimTag () const |
| Get the verbatium tag for a given Node. 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 |
Static Public Member Functions | |
| static bool | classof (const Node *N) |
Additional Inherited Members | |
Public Types inherited from llvm::yaml::Node | |
| enum | NodeKind { NK_Null, NK_Scalar, NK_BlockScalar, NK_KeyValue, NK_Mapping, NK_Sequence, NK_Alias } |
Protected Member Functions inherited from llvm::yaml::Node | |
| ~Node ()=default | |
Protected Attributes inherited from llvm::yaml::Node | |
| std::unique_ptr< 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 280 of file YAMLParser.h.
|
inline |
Definition at line 284 of file YAMLParser.h.
Definition at line 309 of file YAMLParser.h.
References llvm::yaml::Node::getType().
| Node * KeyValueNode::getKey | ( | ) |
Parse and return the key.
This may be called multiple times.
Definition at line 2054 of file YAMLParser.cpp.
References llvm::yaml::Node::Doc, llvm::yaml::Node::getAllocator(), llvm::yaml::Node::getNext(), llvm::yaml::Token::Kind, llvm::yaml::Node::parseBlockNode(), llvm::yaml::Node::peekNext(), llvm::yaml::Token::TK_BlockEnd, llvm::yaml::Token::TK_Error, llvm::yaml::Token::TK_Key, and llvm::yaml::Token::TK_Value.
Referenced by llvm::SymbolRewriter::RewriteMapParser::parse().
| Node * KeyValueNode::getValue | ( | ) |
Parse and return the value.
This may be called multiple times.
Definition at line 2079 of file YAMLParser.cpp.
References llvm::yaml::Node::Doc, llvm::yaml::Node::failed(), llvm::yaml::Node::getAllocator(), llvm::yaml::Node::getNext(), llvm::yaml::Token::Kind, LLVM_FALLTHROUGH, llvm::yaml::Node::parseBlockNode(), llvm::yaml::Node::peekNext(), llvm::yaml::Node::setError(), llvm::yaml::Token::TK_BlockEnd, llvm::yaml::Token::TK_Error, llvm::yaml::Token::TK_FlowEntry, llvm::yaml::Token::TK_FlowMappingEnd, llvm::yaml::Token::TK_Key, llvm::yaml::Token::TK_Scalar, and llvm::yaml::Token::TK_Value.
Referenced by llvm::SymbolRewriter::RewriteMapParser::parse().
|
inlineoverridevirtual |
Reimplemented from llvm::yaml::Node.
Definition at line 301 of file YAMLParser.h.
1.8.13