LLVM API Documentation
Represents a YAML sequence created from either a block sequence for a flow sequence. More...
#include <YAMLParser.h>
Public Types | |
enum | SequenceType { ST_Block, ST_Flow, ST_Indentless } |
typedef basic_collection_iterator < SequenceNode, Node > | iterator |
![]() | |
enum | NodeKind { NK_Null, NK_Scalar, NK_KeyValue, NK_Mapping, NK_Sequence, NK_Alias } |
Public Member Functions | |
SequenceNode (OwningPtr< Document > &D, StringRef Anchor, StringRef Tag, SequenceType ST) | |
void | increment () |
iterator | begin () |
iterator | end () |
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) |
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 | |
![]() | |
void | operator delete (void *) throw () |
virtual | ~Node () |
![]() | |
OwningPtr< 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:
Definition at line 398 of file YAMLParser.h.
Definition at line 422 of file YAMLParser.h.
Enumerator | |
---|---|
ST_Block | |
ST_Flow | |
ST_Indentless |
Definition at line 401 of file YAMLParser.h.
|
inline |
Definition at line 414 of file YAMLParser.h.
|
inline |
Definition at line 428 of file YAMLParser.h.
References llvm::yaml::begin().
Definition at line 438 of file YAMLParser.h.
References llvm::yaml::Node::getType(), and llvm::yaml::Node::NK_Sequence.
|
inline |
Definition at line 432 of file YAMLParser.h.
void SequenceNode::increment | ( | ) |
Definition at line 1973 of file YAMLParser.cpp.
References llvm::yaml::Token::Kind.
|
inlinevirtual |
Reimplemented from llvm::yaml::Node.
Definition at line 434 of file YAMLParser.h.
References llvm::yaml::skip().
|
friend |
Definition at line 421 of file YAMLParser.h.
|
friend |
|
friend |