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

Token - A single YAML token. More...

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.
 
std::string Value
 The value of a block scalar node.
 

Detailed Description

Token - A single YAML token.

Definition at line 124 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 125 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 153 of file YAMLParser.cpp.

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

◆ Value

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

The value of a block scalar node.

Definition at line 156 of file YAMLParser.cpp.


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