MLIR  20.0.0git
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
mlir::query::matcher::internal::Parser::TokenInfo Struct Reference

Public Member Functions

 TokenInfo ()=default
 
void set (TokenKind newKind, llvm::StringRef newText)
 

Public Attributes

llvm::StringRef text
 
TokenKind kind = TokenKind::Eof
 
SourceRange range
 
VariantValue value
 

Static Public Attributes

static const char *const ID_Extract = "extract"
 

Detailed Description

Definition at line 20 of file Parser.cpp.

Constructor & Destructor Documentation

◆ TokenInfo()

mlir::query::matcher::internal::Parser::TokenInfo::TokenInfo ( )
default

Member Function Documentation

◆ set()

void mlir::query::matcher::internal::Parser::TokenInfo::set ( TokenKind  newKind,
llvm::StringRef  newText 
)
inline

Definition at line 24 of file Parser.cpp.

References kind, and text.

Member Data Documentation

◆ ID_Extract

const char *const mlir::query::matcher::internal::Parser::TokenInfo::ID_Extract = "extract"
static

Definition at line 30 of file Parser.cpp.

◆ kind

TokenKind mlir::query::matcher::internal::Parser::TokenInfo::kind = TokenKind::Eof

◆ range

SourceRange mlir::query::matcher::internal::Parser::TokenInfo::range

Definition at line 34 of file Parser.cpp.

Referenced by mlir::query::matcher::internal::Parser::parseExpression().

◆ text

llvm::StringRef mlir::query::matcher::internal::Parser::TokenInfo::text

Definition at line 32 of file Parser.cpp.

Referenced by set().

◆ value

VariantValue mlir::query::matcher::internal::Parser::TokenInfo::value

Definition at line 35 of file Parser.cpp.


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