LLVM  8.0.1
Public Member Functions | Static Public Member Functions | List of all members
llvm::yaml::AliasNode Class Referencefinal

Represents an alias to a Node with an anchor. More...

#include "llvm/Support/YAMLParser.h"

Inheritance diagram for llvm::yaml::AliasNode:
Inheritance graph
[legend]
Collaboration diagram for llvm::yaml::AliasNode:
Collaboration graph
[legend]

Public Member Functions

 AliasNode (std::unique_ptr< Document > &D, StringRef Val)
 
StringRef getName () const
 
NodegetTarget ()
 
- 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. More...
 
StringRef getRawTag () const
 Get the tag as it was written in the document. More...
 
std::string getVerbatimTag () const
 Get the verbatium tag for a given Node. More...
 
SMRange getSourceRange () const
 
void setSourceRange (SMRange SR)
 
TokenpeekNext ()
 
Token getNext ()
 
NodeparseBlockNode ()
 
BumpPtrAllocatorgetAllocator ()
 
void setError (const Twine &Message, Token &Location) const
 
bool failed () const
 
virtual void skip ()
 
unsigned int getType () const
 

Static Public Member Functions

static bool classof (const Node *N)
 

Additional Inherited Members

- Public Types inherited from llvm::yaml::Node
enum  NodeKind {
  NK_Null, NK_Scalar, NK_BlockScalar, NK_KeyValue,
  NK_Mapping, NK_Sequence, NK_Alias
}
 
- Protected Member Functions inherited from llvm::yaml::Node
 ~Node ()=default
 
- Protected Attributes inherited from llvm::yaml::Node
std::unique_ptr< Document > & Doc
 
SMRange SourceRange
 

Detailed Description

Represents an alias to a Node with an anchor.

Example: *AnchorName

Definition at line 505 of file YAMLParser.h.

Constructor & Destructor Documentation

◆ AliasNode()

llvm::yaml::AliasNode::AliasNode ( std::unique_ptr< Document > &  D,
StringRef  Val 
)
inline

Definition at line 509 of file YAMLParser.h.

Member Function Documentation

◆ classof()

static bool llvm::yaml::AliasNode::classof ( const Node N)
inlinestatic

Definition at line 515 of file YAMLParser.h.

References llvm::yaml::Node::getType(), and Name.

◆ getName()

StringRef llvm::yaml::AliasNode::getName ( ) const
inline

Definition at line 512 of file YAMLParser.h.

References Name.

◆ getTarget()

Node* llvm::yaml::AliasNode::getTarget ( )

The documentation for this class was generated from the following files: