207 references to IsNode
Analyzer.Utilities.UnitTests (1)
FlowAnalysis\Analysis\PropertySetAnalysis\PropertySetAnalysisTests.cs (1)
1408if (child.IsNode)
AnalyzerRunner (1)
Program.cs (1)
212var numberOfNodes = tokensAndNodes.Count(x => x.IsNode);
GenerateDocumentationAndConfigFiles (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeOrTokenExtensions.cs (2)
16if (nodeOrToken.IsNode) 36if (current.IsNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
175=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode).Select(nt => nt.AsNode()!); 187=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode && this.HasAnnotations<TSpecificAnnotation>(nt)).Select(nt => nt.AsNode()!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
146nodeOrToken.IsNode &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
192var isNode = nodeOrToken.IsNode;
Metrics (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeOrTokenExtensions.cs (2)
16if (nodeOrToken.IsNode) 36if (current.IsNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
175=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode).Select(nt => nt.AsNode()!); 187=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode && this.HasAnnotations<TSpecificAnnotation>(nt)).Select(nt => nt.AsNode()!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
146nodeOrToken.IsNode &&
Metrics.Legacy (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeOrTokenExtensions.cs (2)
16if (nodeOrToken.IsNode) 36if (current.IsNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
175=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode).Select(nt => nt.AsNode()!); 187=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode && this.HasAnnotations<TSpecificAnnotation>(nt)).Select(nt => nt.AsNode()!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
146nodeOrToken.IsNode &&
Microsoft.CodeAnalysis (22)
Syntax\SeparatedSyntaxList.cs (3)
74Debug.Assert(item.IsNode, "Node missing in separated list."); 430if (nodesToInsertWithSeparators.Count > 0 || (insertionIndex > 0 && nodesWithSeps[insertionIndex - 1].IsNode)) 440if (insertionIndex < nodesWithSeps.Count && nodesWithSeps[insertionIndex] is { IsNode: true } nodeOrToken)
Syntax\SyntaxNavigator.cs (10)
121if (child.IsNode) 123Debug.Assert(child.IsNode); 168if (child.IsNode) 170Debug.Assert(child.IsNode); 454Debug.Assert(child.IsNode); 462else if (child.IsNode && child.AsNode() == node) 504Debug.Assert(child.IsNode); 512else if (child.IsNode && child.AsNode() == node) 562Debug.Assert(child.IsNode); 616Debug.Assert(child.IsNode);
Syntax\SyntaxNode.cs (2)
1284return this.GetAnnotatedNodesAndTokens(syntaxAnnotation).Where(n => n.IsNode).Select(n => n.AsNode()!); 1294return this.GetAnnotatedNodesAndTokens(annotationKind).Where(n => n.IsNode).Select(n => n.AsNode()!);
Syntax\SyntaxNode.Iterators.cs (2)
20? DescendantNodesAndTokensImpl(span, descendIntoChildren, true, includeSelf).Where(e => e.IsNode).Select(e => e.AsNode()!) 464if (value.IsNode)
Syntax\SyntaxNodeOrToken.cs (4)
145public bool IsToken => !IsNode; 200if (IsNode) 750if (this.IsNode != other.IsNode)
Syntax\SyntaxWalker.cs (1)
38if (child.IsNode)
Microsoft.CodeAnalysis.Analyzers (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeOrTokenExtensions.cs (2)
16if (nodeOrToken.IsNode) 36if (current.IsNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
175=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode).Select(nt => nt.AsNode()!); 187=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode && this.HasAnnotations<TSpecificAnnotation>(nt)).Select(nt => nt.AsNode()!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
146nodeOrToken.IsNode &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
192var isNode = nodeOrToken.IsNode;
Microsoft.CodeAnalysis.AnalyzerUtilities (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeOrTokenExtensions.cs (2)
16if (nodeOrToken.IsNode) 36if (current.IsNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
175=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode).Select(nt => nt.AsNode()!); 187=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode && this.HasAnnotations<TSpecificAnnotation>(nt)).Select(nt => nt.AsNode()!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
146nodeOrToken.IsNode &&
Microsoft.CodeAnalysis.BannedApiAnalyzers (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeOrTokenExtensions.cs (2)
16if (nodeOrToken.IsNode) 36if (current.IsNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
175=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode).Select(nt => nt.AsNode()!); 187=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode && this.HasAnnotations<TSpecificAnnotation>(nt)).Select(nt => nt.AsNode()!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
146nodeOrToken.IsNode &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
192var isNode = nodeOrToken.IsNode;
Microsoft.CodeAnalysis.CodeStyle (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeOrTokenExtensions.cs (2)
16if (nodeOrToken.IsNode) 36if (current.IsNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
175=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode).Select(nt => nt.AsNode()!); 187=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode && this.HasAnnotations<TSpecificAnnotation>(nt)).Select(nt => nt.AsNode()!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
146nodeOrToken.IsNode &&
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
370if (sibling.IsNode)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
192var isNode = nodeOrToken.IsNode;
Microsoft.CodeAnalysis.CSharp (6)
Compilation\MemberSemanticModel.cs (1)
792if (label.IdentifierNodeOrToken.IsNode &&
Parser\Blender.Cursor.cs (1)
132Debug.Assert(this.CurrentNodeOrToken.IsNode);
Parser\Blender.Reader.cs (2)
92if (_oldTreeCursor.CurrentNodeOrToken.IsNode) 264(nodeOrToken.IsNode && IsIncomplete((CSharp.CSharpSyntaxNode)nodeOrToken.AsNode())))
Symbols\Source\SourceLabelSymbol.cs (1)
31Debug.Assert(identifierNodeOrToken.IsToken || identifierNodeOrToken.IsNode);
Syntax\SyntaxFactory.cs (1)
1484if (element.IsNode && !(element.AsNode() is TNode))
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
src\Analyzers\CSharp\Analyzers\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementDiagnosticAnalyzer.cs (1)
69if (child.IsNode)
src\Analyzers\CSharp\Analyzers\OrderModifiers\CSharpOrderModifiersDiagnosticAnalyzer.cs (1)
36if (child.IsNode && context.ShouldAnalyzeSpan(child.Span))
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (5)
src\Analyzers\CSharp\CodeFixes\PopulateSwitch\CSharpPopulateSwitchExpressionCodeFixProvider.cs (1)
44!switchNode.Arms.GetWithSeparators().LastOrDefault().IsNode)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (1)
370if (nodesAndTokens is [.., { IsNode: true } lastNode])
src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (1)
164.Select(a => a.IsNode ? ((ArgumentSyntax)a.AsNode()!).Expression : a);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
673if (item.IsNode)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1835if (child.IsNode)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
CodeActions\SyncNamespace\CSharpSyncNamespaceTestsBase.cs (1)
175if (n.IsNode)
Microsoft.CodeAnalysis.CSharp.Features (15)
src\Analyzers\CSharp\Analyzers\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementDiagnosticAnalyzer.cs (1)
69if (child.IsNode)
src\Analyzers\CSharp\Analyzers\OrderModifiers\CSharpOrderModifiersDiagnosticAnalyzer.cs (1)
36if (child.IsNode && context.ShouldAnalyzeSpan(child.Span))
src\Analyzers\CSharp\CodeFixes\PopulateSwitch\CSharpPopulateSwitchExpressionCodeFixProvider.cs (1)
44!switchNode.Arms.GetWithSeparators().LastOrDefault().IsNode)
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpCollectionExpressionRewriter.cs (1)
370if (nodesAndTokens is [.., { IsNode: true } lastNode])
src\Analyzers\CSharp\CodeFixes\UseExplicitArrayInExpressionTree\CSharpUseExplicitArrayInExpressionTreeCodeFixProvider.cs (1)
164.Select(a => a.IsNode ? ((ArgumentSyntax)a.AsNode()!).Expression : a);
Structure\Providers\AccessorDeclarationStructureProvider.cs (1)
38&& (!nextSibling.IsNode || nextSibling.AsNode() is AccessorDeclarationSyntax);
Structure\Providers\ConstructorDeclarationStructureProvider.cs (1)
38&& (!nextSibling.IsNode || nextSibling.IsKind(SyntaxKind.ConstructorDeclaration));
Structure\Providers\ConversionOperatorDeclarationStructureProvider.cs (1)
40&& (!nextSibling.IsNode || nextSibling.IsKind(SyntaxKind.ConversionOperatorDeclaration));
Structure\Providers\EnumDeclarationStructureProvider.cs (1)
33&& (!nextSibling.IsNode || nextSibling.AsNode() is BaseTypeDeclarationSyntax);
Structure\Providers\EventDeclarationStructureProvider.cs (1)
39&& (!nextSibling.IsNode || nextSibling.Kind() is SyntaxKind.EventDeclaration or SyntaxKind.EventFieldDeclaration);
Structure\Providers\IndexerDeclarationStructureProvider.cs (1)
39&& (!nextSibling.IsNode || nextSibling.Kind() is SyntaxKind.IndexerDeclaration or SyntaxKind.PropertyDeclaration);
Structure\Providers\MethodDeclarationStructureProvider.cs (1)
38&& (!nextSibling.IsNode || nextSibling.IsKind(SyntaxKind.MethodDeclaration));
Structure\Providers\OperatorDeclarationStructureProvider.cs (1)
38&& (!nextSibling.IsNode || nextSibling.IsKind(SyntaxKind.OperatorDeclaration));
Structure\Providers\PropertyDeclarationStructureProvider.cs (1)
38&& (!nextSibling.IsNode || nextSibling.Kind() is SyntaxKind.PropertyDeclaration or SyntaxKind.IndexerDeclaration);
Structure\Providers\TypeDeclarationStructureProvider.cs (1)
41&& (!nextSibling.IsNode || nextSibling.AsNode() is BaseTypeDeclarationSyntax);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\InteractiveSemanticModelTests.cs (1)
290if (child.IsNode)
Semantics\RefExtensionMethodsTests.cs (4)
2144Assert.True(parameter.IsNode); 2163Assert.True(parameter.IsNode); 2182Assert.True(parameter.IsNode); 2201Assert.True(parameter.IsNode);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\SemanticModelAPITests.cs (1)
4822if (child.IsNode)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (9)
Syntax\SyntaxAnnotationTests.cs (6)
161var node = GetAllNodesAndTokens(tree.GetCompilationUnitRoot()).First(t => t.IsNode).AsNode(); 284var firstNode = GetAllNodesAndTokens(tree.GetCompilationUnitRoot()).First(t => t.IsNode).AsNode(); 287var lastChildOfFirstNode = children.Last(t => t.IsNode).AsNode(); 295var firstNodeInNewTree = GetAllNodesAndTokens(newRoot).First(t => t.IsNode).AsNode(); 299var rightNode = firstNodeInNewTree.ChildNodesAndTokens().Last(t => t.IsNode).AsNode(); 438if (sourceTreeNodeOrTokenEnumerator.Current.IsNode)
Syntax\SyntaxListTests.cs (1)
303Assert.True(item.IsNode);
Syntax\SyntaxNodeTests.cs (2)
1810Assert.True(nodeOrToken.IsNode); 3560var node = (SyntaxNode)children.First(n => n.IsNode);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
CSharpTestBase.cs (1)
2042if (child.IsNode)
SemanticModelTestBase.cs (1)
50if (child.IsNode)
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Classification\Worker.cs (1)
71Debug.Assert(nodeOrToken.IsNode || nodeOrToken.IsToken);
FindSymbols\CSharpDeclaredSymbolInfoFactoryService.cs (1)
180if (child.IsNode)
Simplification\Reducers\AbstractCSharpReducer.AbstractReductionRewriter.cs (1)
194if (nodeOrToken.IsNode)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
673if (item.IsNode)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1835if (child.IsNode)
Microsoft.CodeAnalysis.Features (14)
BracePairs\IBracePairsService.cs (1)
58if (current.IsNode)
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (1)
286if (child.IsNode)
EmbeddedLanguages\Classification\AbstractEmbeddedLanguageClassificationService.cs (1)
94if (currentNodeOrToken.IsNode)
EmbeddedLanguages\RegularExpressions\LanguageServices\AbstractRegexDiagnosticAnalyzer.cs (1)
65if (child.IsNode)
ExtractClass\ExtractClassWithDialogCodeAction.cs (1)
178var node = nodeOrToken.IsNode
SpellCheck\AbstractSpellCheckSpanService.cs (2)
77else if (current.IsNode) 273else if (current.IsNode)
SplitOrMergeIfStatements\AbstractSplitIfStatementCodeRefactoringProvider.cs (1)
91return current.IsNode;
src\Analyzers\Core\CodeFixes\GenerateVariable\AbstractGenerateVariableService.State.cs (1)
370if (sibling.IsNode)
Wrapping\BinaryExpression\AbstractBinaryExpressionWrapper.cs (2)
79Debug.Assert(((i % 2) == 0 && item.IsNode) || 113if (currentNodeOrToken.IsNode && IsValidBinaryExpression(precedence, currentNodeOrToken.AsNode()))
Wrapping\ChainedExpression\AbstractChainedExpressionWrapper.cs (1)
221piece.IsNode &&
Wrapping\ChainedExpression\ChainedExpressionCodeActionComputer.cs (1)
175=> chunk.Sum(s => s.IsNode ? s.AsNode().Width() : s.AsToken().Width());
Wrapping\SeparatedSyntaxList\SeparatedSyntaxListCodeActionComputer.cs (1)
219if (last.IsNode)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeOrTokenExtensions.cs (2)
16if (nodeOrToken.IsNode) 36if (current.IsNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
175=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode).Select(nt => nt.AsNode()!); 187=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode && this.HasAnnotations<TSpecificAnnotation>(nt)).Select(nt => nt.AsNode()!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
146nodeOrToken.IsNode &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
192var isNode = nodeOrToken.IsNode;
Microsoft.CodeAnalysis.PublicApiAnalyzers (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeOrTokenExtensions.cs (2)
16if (nodeOrToken.IsNode) 36if (current.IsNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
175=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode).Select(nt => nt.AsNode()!); 187=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode && this.HasAnnotations<TSpecificAnnotation>(nt)).Select(nt => nt.AsNode()!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
146nodeOrToken.IsNode &&
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeOrTokenExtensions.cs (2)
16if (nodeOrToken.IsNode) 36if (current.IsNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
175=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode).Select(nt => nt.AsNode()!); 187=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode && this.HasAnnotations<TSpecificAnnotation>(nt)).Select(nt => nt.AsNode()!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
146nodeOrToken.IsNode &&
Microsoft.CodeAnalysis.Test.Utilities (3)
Syntax\NodeHelpers.cs (2)
81if (node.IsNode) 135if (nodeOrToken.IsNode)
Syntax\XmlHelpers.cs (1)
101if (node.IsNode)
Microsoft.CodeAnalysis.UnitTests (2)
CommonSyntaxTests.cs (2)
49Assert.False(d.IsNode); 66Assert.False(d.IsNode);
Microsoft.CodeAnalysis.VisualBasic (3)
Syntax\SyntaxNodeFactories.vb (1)
1005If element.IsNode AndAlso Not (TypeOf element.AsNode() Is TNode) Then
Syntax\VisualBasicSyntaxNode.vb (2)
334If child.IsNode Then 360If child.IsNode Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
src\Analyzers\VisualBasic\Analyzers\OrderModifiers\VisualBasicOrderModifiersDiagnosticAnalyzer.vb (1)
34If child.IsNode And context.ShouldAnalyzeSpan(child.Span) Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxTreeExtensions.vb (1)
129If child.IsNode Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTokenExtensions.vb (1)
138If n.IsNode AndAlso DirectCast(n.AsNode(), ArgumentSyntax).IsNamed Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
991If child.IsNode Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.UnitTests (1)
src\Features\VisualBasicTest\Utils.vb (1)
59If child.IsNode Then
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Completion\KeywordRecommenders\PreprocessorDirectives\PreprocessorHelpers.vb (1)
49If child.IsNode Then
src\Analyzers\VisualBasic\Analyzers\OrderModifiers\VisualBasicOrderModifiersDiagnosticAnalyzer.vb (1)
34If child.IsNode And context.ShouldAnalyzeSpan(child.Span) Then
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (1)
Utils.vb (1)
59If child.IsNode Then
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (5)
Syntax\SyntaxListTests.vb (1)
233Assert.True(item.IsNode)
TestSyntaxNodes.vb (4)
255If node.IsNode Then 280If list(i).IsNode Then 2180Assert.Equal(sN.IsNode, cS.IsNode)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (5)
ParserTestUtilities.vb (5)
407If node.IsNode Then 774If node.IsNode Then 796If node.IsNode Then 819If node.IsNode Then 848If node.IsNode Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (6)
Classification\Worker.vb (1)
62If nodeOrToken.IsNode Then
CodeCleanup\VisualBasicCodeCleanerService.vb (1)
52If child.IsNode Then
Simplification\Reducers\AbstractVisualBasicReducer.AbstractReductionRewriter.vb (1)
179If nodeOrToken.IsNode Then
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxTreeExtensions.vb (1)
129If child.IsNode Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTokenExtensions.vb (1)
138If n.IsNode AndAlso DirectCast(n.AsNode(), ArgumentSyntax).IsNamed Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
991If child.IsNode Then
Microsoft.CodeAnalysis.Workspaces (8)
FindSymbols\SyntaxTree\SyntaxTreeIndex_Create.cs (1)
87if (current.IsNode)
Rename\ConflictEngine\ConflictResolver.Session.cs (1)
668if (tokenOrNode.IsNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeOrTokenExtensions.cs (2)
16if (nodeOrToken.IsNode) 36if (current.IsNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
175=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode).Select(nt => nt.AsNode()!); 187=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode && this.HasAnnotations<TSpecificAnnotation>(nt)).Select(nt => nt.AsNode()!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
146nodeOrToken.IsNode &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
192var isNode = nodeOrToken.IsNode;
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SymbolKeyTests.cs (1)
1521if (child.IsNode)
Roslyn.Diagnostics.Analyzers (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeOrTokenExtensions.cs (2)
16if (nodeOrToken.IsNode) 36if (current.IsNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
175=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode).Select(nt => nt.AsNode()!); 187=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode && this.HasAnnotations<TSpecificAnnotation>(nt)).Select(nt => nt.AsNode()!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
146nodeOrToken.IsNode &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
192var isNode = nodeOrToken.IsNode;
Roslyn.Diagnostics.CSharp.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTokenExtensions.cs (1)
673if (item.IsNode)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
1835if (child.IsNode)
Roslyn.Diagnostics.VisualBasic.Analyzers (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ContextQuery\SyntaxTokenExtensions.vb (1)
138If n.IsNode AndAlso DirectCast(n.AsNode(), ArgumentSyntax).IsNamed Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
991If child.IsNode Then
Test.Utilities (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeOrTokenExtensions.cs (2)
16if (nodeOrToken.IsNode) 36if (current.IsNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
175=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode).Select(nt => nt.AsNode()!); 187=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode && this.HasAnnotations<TSpecificAnnotation>(nt)).Select(nt => nt.AsNode()!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
146nodeOrToken.IsNode &&
Text.Analyzers (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeOrTokenExtensions.cs (2)
16if (nodeOrToken.IsNode) 36if (current.IsNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AnnotationTable.cs (2)
175=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode).Select(nt => nt.AsNode()!); 187=> node.GetAnnotatedNodesAndTokens(annotationKind).Where(nt => nt.IsNode && this.HasAnnotations<TSpecificAnnotation>(nt)).Select(nt => nt.AsNode()!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SyntaxPath.cs (1)
146nodeOrToken.IsNode &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\AbstractSimplificationService.cs (1)
192var isNode = nodeOrToken.IsNode;