1 write to SelectionResult
Microsoft.CodeAnalysis.Features (1)
ExtractMethod\MethodExtractor.Analyzer.cs (1)
43SelectionResult = selectionResult;
24 references to SelectionResult
Microsoft.CodeAnalysis.CSharp.Features (5)
ExtractMethod\CSharpMethodExtractor.Analyzer.cs (5)
24=> this.SelectionResult.GetContainingScopeOf<PrimaryConstructorBaseTypeSyntax>() != null; 28var info = this.SemanticModel.GetSpeculativeTypeInfo(SelectionResult.FinalSpan.Start, SyntaxFactory.ParseName(symbol.Name), SpeculativeBindingOption.BindAsExpression); 51var scope = SelectionResult.GetContainingScopeOf<ConstructorDeclarationSyntax>(); 65if (!this.SelectionResult.IsExtractMethodOnExpression && 78var lastStatement = this.SelectionResult.GetLastStatement();
Microsoft.CodeAnalysis.Features (19)
ExtractMethod\MethodExtractor.Analyzer.cs (19)
33private SemanticDocument SemanticDocument => SelectionResult.SemanticDocument; 72var dataFlowAnalysisData = this.SelectionResult.GetDataFlowAnalysis(); 103var localFunctionCallsNotWithinSpan = symbolMap.Keys.Where(s => s.IsLocalFunction() && !s.Locations.Any(static (l, self) => self.SelectionResult.FinalSpan.Contains(l.SourceSpan), this)); 150if (this.SelectionResult.IsExtractMethodOnExpression || 159var (returnType, returnsByRef) = SelectionResult.GetReturnTypeInfo(this.CancellationToken); 174if (this.SelectionResult.ContainingScopeHasAsyncKeyword()) 215return this.SelectionResult.IsExtractMethodOnExpression 217: GetStatementFlowControlInformation(this.SelectionResult.GetStatementControlFlowAnalysis()); 270if (SelectionResult.ContainsAwaitExpression()) 289var context = SelectionResult.GetContainingScope(); 295!this.SelectionResult.FinalSpan.Contains(token.Span) || 322this.SelectionResult.ContainsAwaitExpression() && 433var containingScope = SelectionResult.GetContainingScope(); 434var analysisRange = TextSpan.FromBounds(SelectionResult.FinalSpan.Start, containingScope.Span.End); 657if (!SelectionResult.IsExtractMethodOnExpression) 662var firstToken = SelectionResult.GetFirstTokenInSelection(); 663var lastToken = SelectionResult.GetLastTokenInSelection(); 670return type.Equals(SelectionResult.GetReturnType(this.CancellationToken)); 740var selectionSpan = this.SelectionResult.FinalSpan;