Ejemplo n.º 1
0
 private ExpressionAnalysis AnalyzeExpression() {
     return VsProjectAnalyzer.AnalyzeExpression(
         _textView.TextBuffer.CurrentSnapshot,
         _textView.GetCaretSpan(),
         false
     );
 }
Ejemplo n.º 2
0
        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
        }
Ejemplo n.º 3
0
 /// <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));
 }