public static O2CodeCompletion updateCodeComplete(this SourceCodeEditor sourceCodeEditor, CSharp_FastCompiler csharpFastCompiler) { if (sourceCodeEditor.o2CodeCompletion != null) { foreach (var extraReference in csharpFastCompiler.extraSourceCodeFilesToCompile()) { sourceCodeEditor.o2CodeCompletion.parseFile(extraReference); } //var currentCode = csharpFastCompiler.processedCode(); var currentCode = csharpFastCompiler.sourceCode(); sourceCodeEditor.o2CodeCompletion.parseSourceCode(currentCode); sourceCodeEditor.o2CodeCompletion.CodeCompleteCaretLocationOffset = csharpFastCompiler.getGeneratedSourceCodeMethodLineOffset(); sourceCodeEditor.o2CodeCompletion.CodeCompleteTargetText = currentCode; // i might not need these sourceCodeEditor.textArea().CodeCompleteCaretLocationOffset = csharpFastCompiler.getGeneratedSourceCodeMethodLineOffset(); } return(sourceCodeEditor.o2CodeCompletion); }