LLVM API Documentation
A YAML Stream is a sequence of Documents. A document contains a root node. More...
#include <YAMLParser.h>
Public Member Functions | |
Node * | parseBlockNode () |
Root for parsing a node. Returns a single node. | |
Document (Stream &ParentStream) | |
bool | skip () |
Finish parsing the current document and return true if there are more. Return false otherwise. | |
Node * | getRoot () |
Parse and return the root level node. | |
const std::map< StringRef, StringRef > & | getTagMap () const |
Friends | |
class | Node |
class | document_iterator |
A YAML Stream is a sequence of Documents. A document contains a root node.
Definition at line 461 of file YAMLParser.h.
Document::Document | ( | Stream & | ParentStream | ) |
Definition at line 2012 of file YAMLParser.cpp.
References llvm::yaml::Token::Kind, and llvm::yaml::Token::TK_DocumentStart.
Node* llvm::yaml::Document::getRoot | ( | ) | [inline] |
Parse and return the root level node.
Definition at line 473 of file YAMLParser.h.
References parseBlockNode().
Referenced by skip().
const std::map<StringRef, StringRef>& llvm::yaml::Document::getTagMap | ( | ) | const [inline] |
Definition at line 479 of file YAMLParser.h.
Node * Document::parseBlockNode | ( | ) |
Root for parsing a node. Returns a single node.
Definition at line 2056 of file YAMLParser.cpp.
References llvm::yaml::Token::Kind, llvm_unreachable, llvm::yaml::MappingNode::MT_Block, llvm::yaml::MappingNode::MT_Flow, llvm::yaml::MappingNode::MT_Inline, llvm::yaml::Token::Range, llvm::yaml::SequenceNode::ST_Block, llvm::yaml::SequenceNode::ST_Flow, llvm::yaml::SequenceNode::ST_Indentless, llvm::StringRef::substr(), llvm::yaml::Token::TK_Alias, llvm::yaml::Token::TK_Anchor, llvm::yaml::Token::TK_BlockEntry, llvm::yaml::Token::TK_BlockMappingStart, llvm::yaml::Token::TK_BlockSequenceStart, llvm::yaml::Token::TK_DocumentEnd, llvm::yaml::Token::TK_DocumentStart, llvm::yaml::Token::TK_Error, llvm::yaml::Token::TK_FlowMappingStart, llvm::yaml::Token::TK_FlowSequenceStart, llvm::yaml::Token::TK_Key, llvm::yaml::Token::TK_Scalar, llvm::yaml::Token::TK_StreamEnd, and llvm::yaml::Token::TK_Tag.
Referenced by getRoot().
bool Document::skip | ( | ) |
Finish parsing the current document and return true if there are more. Return false otherwise.
Definition at line 2024 of file YAMLParser.cpp.
References getRoot(), llvm::yaml::Token::Kind, llvm::yaml::Node::skip(), llvm::yaml::Token::TK_DocumentEnd, and llvm::yaml::Token::TK_StreamEnd.
friend class document_iterator [friend] |
Definition at line 483 of file YAMLParser.h.
friend class Node [friend] |
Definition at line 482 of file YAMLParser.h.