LLVM: llvm::yaml::SequenceNode Class Reference (original) (raw)
Represents a YAML sequence created from either a block sequence for a flow sequence. More...
#include "[llvm/Support/YAMLParser.h](YAMLParser%5F8h%5Fsource.html)"
| Public Member Functions | |
|---|---|
| SequenceNode (std::unique_ptr< Document > &D, StringRef Anchor, StringRef Tag, SequenceType ST) | |
| void | increment () |
| iterator | begin () |
| iterator | end () |
| 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. | |
| StringRef | getRawTag () const |
| Get the tag as it was written in the document. | |
| std::string | getVerbatimTag () const |
| Get the verbatium tag for a given Node. | |
| 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 |
| Friends | |
|---|---|
| class | basic_collection_iterator< SequenceNode, Node > |
| template<class T> | |
| T::iterator | yaml::begin (T &) |
| template<class T> | |
| void | yaml::skip (T &) |
| Additional Inherited Members | |
|---|---|
| Protected Member Functions inherited from llvm::yaml::Node | |
| ~Node ()=default | |
| Protected Attributes inherited from llvm::yaml::Node | |
| std::unique_ptr< Document > & | Doc |
| SMRange | SourceRange |
Represents a YAML sequence created from either a block sequence for a flow sequence.
This parses the YAML stream as increment() is called.
Example:
- Hello
- World
Definition at line 469 of file YAMLParser.h.
◆ iterator
◆ SequenceType
| Enumerator |
|---|
| ST_Block |
| ST_Flow |
| ST_Indentless |
Definition at line 473 of file YAMLParser.h.
◆ begin()
◆ classof()
| bool llvm::yaml::SequenceNode::classof ( const Node * N) | inlinestatic |
|---|
◆ end()
| iterator llvm::yaml::SequenceNode::end ( ) | inline |
|---|
◆ increment()
| void SequenceNode::increment | ( | ) |
|---|
Definition at line 2381 of file YAMLParser.cpp.
References llvm::yaml::Node::failed(), llvm::yaml::Node::getNext(), increment(), llvm::yaml::Node::parseBlockNode(), llvm::yaml::Node::peekNext(), llvm::yaml::Node::setError(), ST_Block, ST_Flow, ST_Indentless, T, llvm::yaml::Token::TK_BlockEnd, llvm::yaml::Token::TK_BlockEntry, llvm::yaml::Token::TK_DocumentEnd, llvm::yaml::Token::TK_DocumentStart, llvm::yaml::Token::TK_Error, llvm::yaml::Token::TK_FlowEntry, llvm::yaml::Token::TK_FlowSequenceEnd, and llvm::yaml::Token::TK_StreamEnd.
Referenced by increment(), and yaml::skip.
◆ skip()
| void llvm::yaml::SequenceNode::skip ( ) | inlineoverridevirtual |
|---|
◆ basic_collection_iterator< SequenceNode, Node >
◆ yaml::begin
◆ yaml::skip
The documentation for this class was generated from the following files:
- include/llvm/Support/YAMLParser.h
- lib/Support/YAMLParser.cpp