Files
clang-p2996/mlir/lib/Tools/PDLL/Parser/CodeComplete.cpp
River Riddle 008de486f7 [mlir][PDLL] Add code completion to the PDLL language server
This commit adds code completion support to the language server,
and initially supports providing completions for: Member access,
attributes/constraint/dialect/operation names, and pattern metadata.

Differential Revision: https://reviews.llvm.org/D121544
2022-03-19 13:28:24 -07:00

29 lines
1.1 KiB
C++

//===- CodeComplete.cpp ---------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
#include "mlir/Tools/PDLL/Parser/CodeComplete.h"
#include "mlir/Tools/PDLL/AST/Types.h"
using namespace mlir;
using namespace mlir::pdll;
//===----------------------------------------------------------------------===//
// CodeCompleteContext
//===----------------------------------------------------------------------===//
CodeCompleteContext::~CodeCompleteContext() = default;
void CodeCompleteContext::codeCompleteTupleMemberAccess(
ast::TupleType tupleType) {}
void CodeCompleteContext::codeCompleteOperationMemberAccess(
ast::OperationType opType) {}
void CodeCompleteContext::codeCompleteConstraintName(
ast::Type currentType, bool allowNonCoreConstraints,
bool allowInlineTypeConstraints, const ast::DeclScope *scope) {}