MLIR
20.0.0git
|
This class provides an abstract interface into the parser for hooking in code completion events. More...
#include "mlir/AsmParser/CodeComplete.h"
Public Member Functions | |
virtual | ~AsmParserCodeCompleteContext () |
SMLoc | getCodeCompleteLoc () const |
Return the source location used to provide code completion. More... | |
virtual void | completeDialectName (StringRef prefix)=0 |
Signal code completion for a dialect name, with an optional prefix. More... | |
void | completeDialectName () |
virtual void | completeOperationName (StringRef dialectName)=0 |
Signal code completion for an operation name within the given dialect. More... | |
virtual void | appendSSAValueCompletion (StringRef name, std::string typeData)=0 |
Append the given SSA value as a code completion result for SSA value completions. More... | |
virtual void | appendBlockCompletion (StringRef name)=0 |
Append the given block as a code completion result for block name completions. More... | |
virtual void | completeExpectedTokens (ArrayRef< StringRef > tokens, bool optional)=0 |
Signal a completion for the given expected tokens, which are optional if optional is set. More... | |
virtual void | completeAttribute (const llvm::StringMap< Attribute > &aliases)=0 |
Signal a completion for an attribute. More... | |
virtual void | completeDialectAttributeOrAlias (const llvm::StringMap< Attribute > &aliases)=0 |
virtual void | completeType (const llvm::StringMap< Type > &aliases)=0 |
Signal a completion for a type. More... | |
virtual void | completeDialectTypeOrAlias (const llvm::StringMap< Type > &aliases)=0 |
Protected Member Functions | |
AsmParserCodeCompleteContext (SMLoc codeCompleteLoc) | |
Create a new code completion context with the given code complete location. More... | |
This class provides an abstract interface into the parser for hooking in code completion events.
This class is only really useful for providing language tooling for MLIR, general clients should not need to use this class.
Definition at line 24 of file CodeComplete.h.
|
virtualdefault |
|
inlineexplicitprotected |
Create a new code completion context with the given code complete location.
Definition at line 69 of file CodeComplete.h.
|
pure virtual |
Append the given block as a code completion result for block name completions.
|
pure virtual |
Append the given SSA value as a code completion result for SSA value completions.
|
pure virtual |
Signal a completion for an attribute.
Referenced by mlir::detail::Parser::codeCompleteAttribute().
|
pure virtual |
Referenced by mlir::detail::Parser::codeCompleteDialectSymbol().
|
inline |
Definition at line 37 of file CodeComplete.h.
References completeDialectName().
Referenced by completeDialectName().
|
pure virtual |
Signal code completion for a dialect name, with an optional prefix.
Referenced by mlir::detail::Parser::codeCompleteDialectName().
|
pure virtual |
Referenced by mlir::detail::Parser::codeCompleteDialectSymbol().
|
pure virtual |
Signal a completion for the given expected tokens, which are optional if optional
is set.
Referenced by mlir::detail::Parser::codeCompleteExpectedTokens(), and mlir::detail::Parser::codeCompleteOptionalTokens().
|
pure virtual |
Signal code completion for an operation name within the given dialect.
Referenced by mlir::detail::Parser::codeCompleteOperationName().
|
pure virtual |
Signal a completion for a type.
Referenced by mlir::detail::Parser::codeCompleteType().
|
inline |
Return the source location used to provide code completion.
Definition at line 29 of file CodeComplete.h.
Referenced by mlir::Lexer::Lexer().