9 #ifndef MLIR_TOOLS_PDLL_PARSER_CODECOMPLETE_H_
10 #define MLIR_TOOLS_PDLL_PARSER_CODECOMPLETE_H_
13 #include "llvm/Support/SourceMgr.h"
55 bool allowInlineTypeConstraints,
76 unsigned currentNumArgs) {}
81 unsigned currentNumOperands) {}
86 unsigned currentNumResults) {}
92 : codeCompleteLoc(codeCompleteLoc) {}
96 SMLoc codeCompleteLoc;
This class provides an abstract interface into the parser for hooking in code completion events.
virtual void codeCompleteConstraintName(ast::Type currentType, bool allowInlineTypeConstraints, const ast::DeclScope *scope)
Signal code completion for a constraint name with an optional decl scope.
virtual ~CodeCompleteContext()
CodeCompleteContext(SMLoc codeCompleteLoc)
Create a new code completion context with the given code complete location.
virtual void codeCompleteOperationAttributeName(StringRef opName)
Signal code completion for a member access into the given operation type.
virtual void codeCompleteOperationOperandsSignature(std::optional< StringRef > opName, unsigned currentNumOperands)
Signal code completion for the signature of an operation's operands.
virtual void codeCompleteOperationName(StringRef dialectName)
Signal code completion for an operation name in the given dialect.
virtual void codeCompleteOperationResultsSignature(std::optional< StringRef > opName, unsigned currentNumResults)
Signal code completion for the signature of an operation's results.
virtual void codeCompleteDialectName()
Signal code completion for a dialect name.
SMLoc getCodeCompleteLoc() const
Return the location used to provide code completion.
virtual void codeCompleteOperationMemberAccess(ast::OperationType opType)
Signal code completion for a member access into the given operation type.
virtual void codeCompleteTupleMemberAccess(ast::TupleType tupleType)
Signal code completion for a member access into the given tuple type.
virtual void codeCompletePatternMetadata()
Signal code completion for Pattern metadata.
virtual void codeCompleteCallSignature(const ast::CallableDecl *callable, unsigned currentNumArgs)
Signal code completion for the signature of a callable.
virtual void codeCompleteIncludeFilename(StringRef curPath)
Signal code completion for an include filename.
This decl represents a shared interface for all callable decls.
This class represents a scope for named AST decls.
This class represents a PDLL type that corresponds to an mlir::Operation.
This class represents a PDLL tuple type, i.e.
@ Type
An inlay hint that for a type annotation.
Include the generated interface declarations.