public void GetSemanticExpansions(string filename, string tok, uint line, uint idx, string expr) { IAbstractSyntaxTree ast = null; if (!_modules.TryGetValue(filename, out ast)) { throw new COMException("module not found", 1); } CodeLocation loc = new CodeLocation((int)idx, (int)line); EditorData editorData = new EditorData(); editorData.CaretLocation = loc; editorData.SyntaxTree = ast as DModule; editorData.ModuleCode = _sources[filename]; editorData.CaretOffset = getCodeOffset(editorData.ModuleCode, loc); VDServerCompletionDataGenerator cdgen = new VDServerCompletionDataGenerator(); AbstractCompletionProvider provider = AbstractCompletionProvider.BuildCompletionData(cdgen, editorData, tok); _expansions = cdgen.expansions; //MessageBox.Show("GetSemanticExpansions()"); //throw new NotImplementedException(); }
public void GetSemanticExpansions(string filename, string tok, uint line, uint idx, string expr) { IAbstractSyntaxTree ast = null; if (!_modules.TryGetValue(filename, out ast)) throw new COMException("module not found", 1); CodeLocation loc = new CodeLocation((int)idx, (int) line); EditorData editorData = new EditorData(); editorData.CaretLocation = loc; editorData.SyntaxTree = ast as DModule; editorData.ModuleCode = _sources[filename]; editorData.CaretOffset = getCodeOffset(editorData.ModuleCode, loc); VDServerCompletionDataGenerator cdgen = new VDServerCompletionDataGenerator(); AbstractCompletionProvider provider = AbstractCompletionProvider.BuildCompletionData(cdgen, editorData, tok); _expansions = cdgen.expansions; //MessageBox.Show("GetSemanticExpansions()"); //throw new NotImplementedException(); }