LLVM  8.0.1
Public Types | Public Member Functions | Public Attributes | List of all members
llvm::yaml::Token Struct Reference

Token - A single YAML token. More...

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_BlockScalar,
  TK_Alias, TK_Anchor, TK_Tag
}
 

Public Member Functions

 Token ()=default
 

Public Attributes

enum llvm::yaml::Token::TokenKind Kind = TK_Error
 
StringRef Range
 A string of length 0 or more whose begin() points to the logical location of the token in the input. More...
 
std::string Value
 The value of a block scalar node. More...
 

Detailed Description

Token - A single YAML token.

Definition at line 127 of file YAMLParser.cpp.

Member Enumeration Documentation

◆ TokenKind

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_BlockScalar 
TK_Alias 
TK_Anchor 
TK_Tag 

Definition at line 128 of file YAMLParser.cpp.

Constructor & Destructor Documentation

◆ Token()

llvm::yaml::Token::Token ( )
default

Member Data Documentation

◆ Kind

enum llvm::yaml::Token::TokenKind llvm::yaml::Token::Kind = TK_Error

◆ Range

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 156 of file YAMLParser.cpp.

Referenced by llvm::yaml::dumpTokens(), llvm::yaml::ScalarNode::getValue(), is_ns_word_char(), llvm::yaml::Document::parseBlockNode(), and llvm::yaml::Document::skip().

◆ Value

std::string llvm::yaml::Token::Value

The value of a block scalar node.

Definition at line 159 of file YAMLParser.cpp.

Referenced by llvm::yaml::Document::parseBlockNode().


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