14 references to GetContainingScopeOf
Microsoft.CodeAnalysis.CSharp.Features (14)
ExtractMethod\CSharpMethodExtractor.Analyzer.cs (2)
24
=> this.SelectionResult.
GetContainingScopeOf
<PrimaryConstructorBaseTypeSyntax>() != null;
51
var scope = SelectionResult.
GetContainingScopeOf
<ConstructorDeclarationSyntax>();
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (2)
385
var typeDecl = SelectionResult.
GetContainingScopeOf
<BaseTypeDeclarationSyntax>();
392
var memberDecl = SelectionResult.
GetContainingScopeOf
<MemberDeclarationSyntax>();
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.ExpressionCodeGenerator.cs (5)
117
var scope = (SyntaxNode)this.SelectionResult.
GetContainingScopeOf
<StatementSyntax>();
118
scope ??= this.SelectionResult.
GetContainingScopeOf
<FieldDeclarationSyntax>();
120
scope ??= this.SelectionResult.
GetContainingScopeOf
<ConstructorInitializerSyntax>();
124
scope ??= this.SelectionResult.
GetContainingScopeOf
<ArrowExpressionClauseSyntax>()?.Parent;
126
scope ??= this.SelectionResult.
GetContainingScopeOf
<PrimaryConstructorBaseTypeSyntax>();
ExtractMethod\CSharpSelectionResult.cs (5)
106
var expressionBodiedMember =
GetContainingScopeOf
<ArrowExpressionClauseSyntax>();
111
return
GetContainingScopeOf
<TypeDeclarationSyntax>();
115
var constructorInitializer =
GetContainingScopeOf
<ConstructorInitializerSyntax>();
120
var field =
GetContainingScopeOf
<FieldDeclarationSyntax>();
124
var primaryConstructorBaseType =
GetContainingScopeOf
<PrimaryConstructorBaseTypeSyntax>();