class Node

Declaration

class Node { /* full declaration omitted */ };

Description

Abstract base class for all Nodes.

Declared at: llvm/include/llvm/Support/YAMLParser.h:118

Member Variables

protected std::unique_ptr<Document>& Doc
protected llvm::SMRange SourceRange
private unsigned int TypeID
private llvm::StringRef Anchor
private llvm::StringRef Tag
The tag as typed in the document.

Method Overview

  • public Node(unsigned int Type, std::unique_ptr<Document> &, llvm::StringRef Anchor, llvm::StringRef Tag)
  • public Node(const llvm::yaml::Node &)
  • private virtual void anchor()
  • 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)

Declared at: llvm/include/llvm/Support/YAMLParser.h:132

Parameters

unsigned int Type
std::unique_ptr<Document>&
llvm::StringRef Anchor
llvm::StringRef Tag

Node(const llvm::yaml::Node&)

Declared at: llvm/include/llvm/Support/YAMLParser.h:137

Parameters

const llvm::yaml::Node&

virtual void anchor()

Declared at: llvm/include/llvm/Support/YAMLParser.h:119

bool failed() const

Declared at: llvm/include/llvm/Support/YAMLParser.h:173

llvm::BumpPtrAllocator& getAllocator()

Declared at: llvm/include/llvm/Support/YAMLParser.h:171

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:154

llvm::yaml::Token getNext()

Declared at: llvm/include/llvm/Support/YAMLParser.h:169

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:158

llvm::SMRange getSourceRange() const

Declared at: llvm/include/llvm/Support/YAMLParser.h:164

unsigned int getType() const

Declared at: llvm/include/llvm/Support/YAMLParser.h:177

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:162

llvm::yaml::Node* parseBlockNode()

Declared at: llvm/include/llvm/Support/YAMLParser.h:170

llvm::yaml::Token& peekNext()

Declared at: llvm/include/llvm/Support/YAMLParser.h:168

void setError(const llvm::Twine& Message,
              llvm::yaml::Token& Location) const

Declared at: llvm/include/llvm/Support/YAMLParser.h:172

Parameters

const llvm::Twine& Message
llvm::yaml::Token& Location

void setSourceRange(llvm::SMRange SR)

Declared at: llvm/include/llvm/Support/YAMLParser.h:165

Parameters

llvm::SMRange SR

virtual void skip()

Declared at: llvm/include/llvm/Support/YAMLParser.h:175

~Node()

Declared at: llvm/include/llvm/Support/YAMLParser.h:183