MLIR  20.0.0git
Public Member Functions | List of all members
mlir::query::matcher::internal::Parser::CodeTokenizer Class Reference

Public Member Functions

 CodeTokenizer (llvm::StringRef matcherCode, Diagnostics *error)
 
 CodeTokenizer (llvm::StringRef matcherCode, Diagnostics *error, unsigned codeCompletionOffset)
 
const TokenInfopeekNextToken () const
 
TokenInfo consumeNextToken ()
 
TokenInfo skipNewlines ()
 
TokenInfo consumeNextTokenIgnoreNewlines ()
 
TokenKind nextTokenKind () const
 

Detailed Description

Definition at line 40 of file Parser.cpp.

Constructor & Destructor Documentation

◆ CodeTokenizer() [1/2]

mlir::query::matcher::internal::Parser::CodeTokenizer::CodeTokenizer ( llvm::StringRef  matcherCode,
Diagnostics error 
)
inlineexplicit

Definition at line 43 of file Parser.cpp.

◆ CodeTokenizer() [2/2]

mlir::query::matcher::internal::Parser::CodeTokenizer::CodeTokenizer ( llvm::StringRef  matcherCode,
Diagnostics error,
unsigned  codeCompletionOffset 
)
inline

Definition at line 49 of file Parser.cpp.

Member Function Documentation

◆ consumeNextToken()

TokenInfo mlir::query::matcher::internal::Parser::CodeTokenizer::consumeNextToken ( )
inline

Definition at line 60 of file Parser.cpp.

Referenced by consumeNextTokenIgnoreNewlines().

◆ consumeNextTokenIgnoreNewlines()

TokenInfo mlir::query::matcher::internal::Parser::CodeTokenizer::consumeNextTokenIgnoreNewlines ( )
inline

◆ nextTokenKind()

TokenKind mlir::query::matcher::internal::Parser::CodeTokenizer::nextTokenKind ( ) const
inline

◆ peekNextToken()

const TokenInfo& mlir::query::matcher::internal::Parser::CodeTokenizer::peekNextToken ( ) const
inline

Definition at line 57 of file Parser.cpp.

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

◆ skipNewlines()

TokenInfo mlir::query::matcher::internal::Parser::CodeTokenizer::skipNewlines ( )
inline

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