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)
34if (_parentStatement == null) 39AddRelevantExpressions(_parentStatement, _expressions, includeDeclarations: false); 56if (_parentStatement.GetAncestorOrThis<AccessorDeclarationSyntax>() is (kind: 69var 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; 102if (_parentStatement is LocalDeclarationStatementSyntax) 104AddRelevantExpressions(_parentStatement, _expressions, includeDeclarations: true); 120&& _parentStatement.Parent is GlobalStatementSyntax { Parent: CompilationUnitSyntax compilationUnit } globalStatement 159for (var nextStatement = _parentStatement.GetNextStatement(); 175if (_parentStatement is BlockSyntax block && 184previousStatement = _parentStatement.GetPreviousStatement(); 220var statementAncestor = _parentStatement.Ancestors().OfType<StatementSyntax>().FirstOrDefault(node => !node.IsKind(SyntaxKind.Block));