private ExpressionAnalysis AnalyzeExpression() { return VsProjectAnalyzer.AnalyzeExpression( _textView.TextBuffer.CurrentSnapshot, _textView.GetCaretSpan(), false ); }
public static ExpressionAnalysis AnalyzeExpression(this ITextSnapshot snapshot, ITrackingSpan span, bool forCompletion = true) { #pragma warning disable 0618 return(VsProjectAnalyzer.AnalyzeExpression(PythonToolsPackage.Instance, snapshot, span, forCompletion)); #pragma warning restore 0618 }
/// <summary> /// Gets a ExpressionAnalysis for the expression at the provided span. If the span is in /// part of an identifier then the expression is extended to complete the identifier. /// </summary> public static ExpressionAnalysis AnalyzeExpression(this ITextSnapshot snapshot, IServiceProvider serviceProvider, ITrackingSpan span, bool forCompletion = true) { return(VsProjectAnalyzer.AnalyzeExpression(serviceProvider, snapshot, span, forCompletion)); }