7 references to FirstAncestorOrSelf
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
EndConstructGeneration\VisualBasicEndConstructGenerationService.vb (1)
214
Dim statement = state.TokenToLeft.
FirstAncestorOrSelf
(Function(n) TypeOf n Is StatementSyntax OrElse TypeOf n Is DirectiveTriviaSyntax)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Snippets\VisualBasicSnippetFunctionService.vb (1)
32
Dim expressionNode = token.
FirstAncestorOrSelf
(Function(n) n.Span = switchExpressionSpan)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (5)
Rename\VisualBasicRenameRewriterLanguageService.vb (5)
843
Dim enclosingStatement = token.
FirstAncestorOrSelf
(Function(n) TypeOf (n) Is ExecutableStatementSyntax)
847
Dim possibleSpecialStatement = token.
FirstAncestorOrSelf
(Function(n) n.Kind = SyntaxKind.ForStatement OrElse
862
possibleLambdaExpression = token.
FirstAncestorOrSelf
(Function(n) TypeOf (n) Is LambdaExpressionSyntax)
865
Dim enclosingCref = token.
FirstAncestorOrSelf
(Function(n) TypeOf (n) Is CrefReferenceSyntax)
871
Return If(enclosingStatement, If(possibleLambdaExpression, token.
FirstAncestorOrSelf
(Function(n) TypeOf (n) Is SimpleNameSyntax)))