/// <summary> /// Get the declarations for the specified F# source code at the /// specified line index and column index. /// </summary> /// <param name="source">The F# source code</param> /// <param name="lineIndex">The line that the user is on</param> /// <param name="colIndex">The column that the user is on</param> public void GetDeclarations(String source, int lineIndex, int colIndex) { using (var c = new IntellisenseController()) { var declarations = c.Get(source, lineIndex, colIndex); Clients.Caller.sendDeclarations(declarations); } }
/// <summary> /// Get the declarations for the specified F# source code at the /// specified line index and column index. /// </summary> /// <param name="source">The F# source code</param> /// <param name="lineNumber">The line that the user is on</param> /// <param name="colIndex">The column that the user is on</param> public void GetDeclarations(String source, int lineNumber, int colIndex) { using (var c = new IntellisenseController()) { var request = new IntellisenseController.IntellisenseRequest { ColIndex = colIndex, LineNumber = lineNumber, Source = source }; var declarations = c.Post(request); Clients.Caller.sendDeclarations(declarations); } }