15 references to AsNode
Microsoft.CodeAnalysis.Workspaces (15)
Classification\SyntaxClassification\AbstractSyntaxClassificationService.Worker.cs (1)
117if (nodeOrToken.AsNode(out var node))
FindSymbols\FindLiterals\FindLiteralsSearchEngine.cs (1)
157if (child.AsNode(out var childNode))
FindSymbols\FindReferences\FindReferenceCache.cs (1)
164if (current.AsNode(out var currentNode))
FindSymbols\Shared\AbstractSyntaxIndex.cs (1)
152if (child.AsNode(out var childNode))
ObsoleteSymbol\AbstractObsoleteSymbolService.cs (1)
78if (child.AsNode(out var childNode))
ReassignedVariable\AbstractReassignedVariableService.cs (2)
83if (child.AsNode(out var childNode)) 308if (child.AsNode(out var childNode))
Shared\Utilities\SemanticMap.Walker.cs (1)
19if (child.AsNode(out var childNode))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticEquivalence.cs (2)
116if (c1.AsNode(out var c1Node) && c2.AsNode(out var c2Node))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticModelExtensions.cs (1)
140if (child.AsNode(out var childNode) &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeOrTokenExtensions.cs (2)
48if (t.AsNode(out var childNode)) 60=> nodeOrToken.AsNode(out var node) ? node.WithAppendedTrailingTrivia(trivia) : nodeOrToken.AsToken().WithAppendedTrailingTrivia(trivia);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\FormattingExtensions.cs (1)
282var (firstToken, lastToken) = nodeOrToken.AsNode(out var childNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (1)
88if (child.AsNode(out var childNode))