LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Public Attributes | List of all members
llvm::yaml::Token Struct Reference

Token - A single YAML token. More...

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

Public Types

enum  TokenKind {
  TK_Error, TK_StreamStart, TK_StreamEnd, TK_VersionDirective,
  TK_TagDirective, TK_DocumentStart, TK_DocumentEnd, TK_BlockEntry,
  TK_BlockEnd, TK_BlockSequenceStart, TK_BlockMappingStart, TK_FlowEntry,
  TK_FlowSequenceStart, TK_FlowSequenceEnd, TK_FlowMappingStart, TK_FlowMappingEnd,
  TK_Key, TK_Value, TK_Scalar, TK_Alias,
  TK_Anchor, TK_Tag
}
 

Public Member Functions

 Token ()
 
- Public Member Functions inherited from llvm::ilist_node< Token >
Token * getPrevNode ()
 Get the previous node, or 0 for the list head. More...
 
const Token * getPrevNode () const
 Get the previous node, or 0 for the list head. More...
 
Token * getNextNode ()
 Get the next node, or 0 for the list tail. More...
 
const Token * getNextNode () const
 Get the next node, or 0 for the list tail. More...
 

Public Attributes

enum llvm::yaml::Token::TokenKind Kind
 
StringRef Range
 

Additional Inherited Members

- Protected Member Functions inherited from llvm::ilist_node< Token >
 ilist_node ()
 

Detailed Description

Token - A single YAML token.

Definition at line 109 of file YAMLParser.cpp.

Member Enumeration Documentation

Enumerator
TK_Error 
TK_StreamStart 
TK_StreamEnd 
TK_VersionDirective 
TK_TagDirective 
TK_DocumentStart 
TK_DocumentEnd 
TK_BlockEntry 
TK_BlockEnd 
TK_BlockSequenceStart 
TK_BlockMappingStart 
TK_FlowEntry 
TK_FlowSequenceStart 
TK_FlowSequenceEnd 
TK_FlowMappingStart 
TK_FlowMappingEnd 
TK_Key 
TK_Value 
TK_Scalar 
TK_Alias 
TK_Anchor 
TK_Tag 

Definition at line 110 of file YAMLParser.cpp.

Constructor & Destructor Documentation

llvm::yaml::Token::Token ( )
inline

Definition at line 139 of file YAMLParser.cpp.

Member Data Documentation

enum llvm::yaml::Token::TokenKind llvm::yaml::Token::Kind
StringRef llvm::yaml::Token::Range

A string of length 0 or more whose begin() points to the logical location of the token in the input.

Definition at line 137 of file YAMLParser.cpp.

Referenced by llvm::yaml::dumpTokens(), llvm::yaml::Node::getVerbatimTag(), and llvm::yaml::Document::parseBlockNode().


The documentation for this struct was generated from the following file: