class Node
Declaration
class Node { /* full declaration omitted */ };
Description
Abstract base class for all Nodes.
Declared at: llvm/include/llvm/Support/YAMLParser.h:113
Member Variables
- protected std::unique_ptr<Document>& Doc
- protected llvm::SMRange SourceRange
Method Overview
- public Node(unsigned int Type, std::unique_ptr<Document> &, llvm::StringRef Anchor, llvm::StringRef Tag)
- public Node(const llvm::yaml::Node &)
- public bool failed() const
- public llvm::BumpPtrAllocator & getAllocator()
- public llvm::StringRef getAnchor() const
- public llvm::yaml::Token getNext()
- public llvm::StringRef getRawTag() const
- public llvm::SMRange getSourceRange() const
- public unsigned int getType() const
- public std::string getVerbatimTag() const
- public llvm::yaml::Node * parseBlockNode()
- public llvm::yaml::Token & peekNext()
- public void setError(const llvm::Twine & Message, llvm::yaml::Token & Location) const
- public void setSourceRange(llvm::SMRange SR)
- public virtual void skip()
- protected ~Node()
Methods
¶Node(unsigned int Type,
std::unique_ptr<Document>&,
llvm::StringRef Anchor,
llvm::StringRef Tag)
Node(unsigned int Type,
std::unique_ptr<Document>&,
llvm::StringRef Anchor,
llvm::StringRef Tag)
Declared at: llvm/include/llvm/Support/YAMLParser.h:127
Parameters
- unsigned int Type
- std::unique_ptr<Document>&
- llvm::StringRef Anchor
- llvm::StringRef Tag
¶Node(const llvm::yaml::Node&)
Node(const llvm::yaml::Node&)
Declared at: llvm/include/llvm/Support/YAMLParser.h:132
Parameters
- const llvm::yaml::Node&
¶bool failed() const
bool failed() const
Declared at: llvm/include/llvm/Support/YAMLParser.h:168
¶llvm::BumpPtrAllocator& getAllocator()
llvm::BumpPtrAllocator& getAllocator()
Declared at: llvm/include/llvm/Support/YAMLParser.h:166
¶llvm::StringRef getAnchor() const
llvm::StringRef getAnchor() const
Description
Get the value of the anchor attached to this node. If it does not have one, getAnchor().size() will be 0.
Declared at: llvm/include/llvm/Support/YAMLParser.h:149
¶llvm::yaml::Token getNext()
llvm::yaml::Token getNext()
Declared at: llvm/include/llvm/Support/YAMLParser.h:164
¶llvm::StringRef getRawTag() const
llvm::StringRef getRawTag() const
Description
Get the tag as it was written in the document. This does not perform tag resolution.
Declared at: llvm/include/llvm/Support/YAMLParser.h:153
¶llvm::SMRange getSourceRange() const
llvm::SMRange getSourceRange() const
Declared at: llvm/include/llvm/Support/YAMLParser.h:159
¶unsigned int getType() const
unsigned int getType() const
Declared at: llvm/include/llvm/Support/YAMLParser.h:172
¶std::string getVerbatimTag() const
std::string getVerbatimTag() const
Description
Get the verbatium tag for a given Node. This performs tag resoluton and substitution.
Declared at: llvm/include/llvm/Support/YAMLParser.h:157
¶llvm::yaml::Node* parseBlockNode()
llvm::yaml::Node* parseBlockNode()
Declared at: llvm/include/llvm/Support/YAMLParser.h:165
¶llvm::yaml::Token& peekNext()
llvm::yaml::Token& peekNext()
Declared at: llvm/include/llvm/Support/YAMLParser.h:163
¶void setError(const llvm::Twine& Message,
llvm::yaml::Token& Location) const
void setError(const llvm::Twine& Message,
llvm::yaml::Token& Location) const
Declared at: llvm/include/llvm/Support/YAMLParser.h:167
Parameters
- const llvm::Twine& Message
- llvm::yaml::Token& Location
¶void setSourceRange(llvm::SMRange SR)
void setSourceRange(llvm::SMRange SR)
Declared at: llvm/include/llvm/Support/YAMLParser.h:160
Parameters
¶virtual void skip()
virtual void skip()
Declared at: llvm/include/llvm/Support/YAMLParser.h:170
¶~Node()
~Node()
Declared at: llvm/include/llvm/Support/YAMLParser.h:178