From 07a380d72a13899a84cbdc35692be7a3d9246dcb Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 22 Jun 2022 19:58:34 -0700 Subject: More Language Server Improvements. (#2289) --- source/slang/slang-preprocessor.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/slang/slang-preprocessor.h') diff --git a/source/slang/slang-preprocessor.h b/source/slang/slang-preprocessor.h index 5f66be405..4d7721d31 100644 --- a/source/slang/slang-preprocessor.h +++ b/source/slang/slang-preprocessor.h @@ -11,6 +11,7 @@ namespace Slang { class DiagnosticSink; class Linkage; +struct PreprocessorContentAssistInfo; namespace preprocessor { @@ -53,6 +54,9 @@ struct PreprocessorDesc /// Optional: handler for callbacks invoked during preprocessing PreprocessorHandler* handler = nullptr; + + /// Optional: additional information for code assist. + PreprocessorContentAssistInfo* contentAssistInfo = nullptr; }; /// Take a source `file` and preprocess it into a list of tokens. -- cgit v1.2.3