MLIR 22.0.0git
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 idExtract = "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

◆ idExtract

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

Definition at line 30 of file Parser.cpp.

◆ kind

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

Definition at line 33 of file Parser.cpp.

Referenced by set().

◆ range

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

Definition at line 34 of file Parser.cpp.

◆ 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: