1 write to _parentStatement
Microsoft.CodeAnalysis.CSharp.Features (1)
Debugging\CSharpProximityExpressionsService.Worker.cs (1)
33
_parentStatement
= _token.GetAncestor<StatementSyntax>();
16 references to _parentStatement
Microsoft.CodeAnalysis.CSharp.Features (16)
Debugging\CSharpProximityExpressionsService.Worker.cs (16)
34
if (
_parentStatement
== null)
39
AddRelevantExpressions(
_parentStatement
, _expressions, includeDeclarations: false);
56
if (
_parentStatement
.GetAncestorOrThis<AccessorDeclarationSyntax>() is (kind:
69
var memberDeclaration =
_parentStatement
.GetAncestorOrThis<MemberDeclarationSyntax>();
91
? (BlockSyntax)
_parentStatement
.Parent
92
:
_parentStatement
is BlockSyntax block && block.OpenBraceToken == _token
93
? (BlockSyntax)
_parentStatement
98
=>
_parentStatement
.Parent is BlockSyntax parentBlockOpt && parentBlockOpt.Statements.FirstOrDefault() ==
_parentStatement
;
102
if (
_parentStatement
is LocalDeclarationStatementSyntax)
104
AddRelevantExpressions(
_parentStatement
, _expressions, includeDeclarations: true);
120
&&
_parentStatement
.Parent is GlobalStatementSyntax { Parent: CompilationUnitSyntax compilationUnit } globalStatement
159
for (var nextStatement =
_parentStatement
.GetNextStatement();
175
if (
_parentStatement
is BlockSyntax block &&
184
previousStatement =
_parentStatement
.GetPreviousStatement();
220
var statementAncestor =
_parentStatement
.Ancestors().OfType<StatementSyntax>().FirstOrDefault(node => !node.IsKind(SyntaxKind.Block));