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