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