5 references to FirstAncestorOrSelf
Microsoft.CodeAnalysis.Razor.Compiler (5)
Language\DefaultRazorIntermediateNodeLoweringPhase.cs (2)
2139if (node.FirstAncestorOrSelf<SyntaxNode>(n => n is MarkupStartTagSyntax || n is MarkupEndTagSyntax) != null) 2163if (node.FirstAncestorOrSelf<SyntaxNode>(n => n is CSharpImplicitExpressionSyntax) == null)
Language\Legacy\TagHelperParseTreeRewriter.cs (3)
222var tagParent = node.FirstAncestorOrSelf<SyntaxNode>(n => n is MarkupStartTagSyntax || n is MarkupEndTagSyntax); 677var parent = node.FirstAncestorOrSelf<SyntaxNode>(static n => 687var commentParent = node.FirstAncestorOrSelf<SyntaxNode>(