234 references to FindNode
ILLink.CodeFixProvider (2)
Microsoft.Analyzers.Extra (3)
Microsoft.Analyzers.Extra.Tests (1)
Microsoft.AspNetCore.App.CodeFixes (14)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
Microsoft.CodeAnalysis (2)
Microsoft.CodeAnalysis.CodeStyle (4)
Microsoft.CodeAnalysis.CodeStyle.Fixes (37)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (18)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Features (24)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (21)
Syntax\SyntaxNodeTests.cs (18)
729Assert.Equal(root, root.FindNode(root.Span, findInsideTrivia: false));
730Assert.Equal(root, root.FindNode(root.Span, findInsideTrivia: true));
738Assert.Equal(classDecl, root.FindNode(identifier.Span, findInsideTrivia: false));
739Assert.Equal(identifier, root.FindNode(identifier.Span, findInsideTrivia: true));
742Assert.Equal(classDecl, root.FindNode(classDecl.Identifier.Span, findInsideTrivia: false));
746Assert.Equal(root, root.FindNode(EOFSpan, findInsideTrivia: false));
747Assert.Equal(root, root.FindNode(EOFSpan, findInsideTrivia: true));
751Assert.Throws<ArgumentOutOfRangeException>(() => classDecl2.FindNode(EOFSpan));
756Assert.Equal(classDecl2, root.FindNode(nodeEndPositionSpan, findInsideTrivia: false));
757Assert.Equal(classDecl2, root.FindNode(nodeEndPositionSpan, findInsideTrivia: true));
758Assert.Equal(classDecl2, classDecl2.FindNode(nodeEndPositionSpan, findInsideTrivia: false));
759Assert.Equal(classDecl2, classDecl2.FindNode(nodeEndPositionSpan, findInsideTrivia: true));
761Assert.Throws<ArgumentOutOfRangeException>(() => classDecl.FindNode(nodeEndPositionSpan));
765Assert.Throws<ArgumentOutOfRangeException>(() => root.FindNode(invalidSpan));
767Assert.Throws<ArgumentOutOfRangeException>(() => root.FindNode(invalidSpan));
769Assert.Throws<ArgumentOutOfRangeException>(() => classDecl2.FindNode(invalidSpan));
771Assert.Throws<ArgumentOutOfRangeException>(() => classDecl2.FindNode(invalidSpan));
773Assert.Throws<ArgumentOutOfRangeException>(() => classDecl.FindNode(root.FullSpan));
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
Microsoft.CodeAnalysis.EditorFeatures (1)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.Features (34)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.VisualBasic.Features (3)
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (16)
TestSyntaxNodes.vb (16)
2256Assert.Equal(root, root.FindNode(root.Span, findInsideTrivia:=False))
2257Assert.Equal(root, root.FindNode(root.Span, findInsideTrivia:=True))
2271Assert.Equal(classStatement, root.FindNode(classStatement.Identifier.Span, findInsideTrivia:=False))
2274Assert.Equal(root, root.FindNode(EOFSpan, findInsideTrivia:=False))
2275Assert.Equal(root, root.FindNode(EOFSpan, findInsideTrivia:=True))
2280Assert.Throws(Of ArgumentOutOfRangeException)(Sub() classDecl2.FindNode(EOFSpan))
2285Assert.Equal(classStatement2, root.FindNode(nodeEndPositionSpan, findInsideTrivia:=False))
2286Assert.Equal(classStatement2, root.FindNode(nodeEndPositionSpan, findInsideTrivia:=True))
2287Assert.Equal(classStatement2, classDecl2.FindNode(nodeEndPositionSpan, findInsideTrivia:=False))
2288Assert.Equal(classStatement2, classDecl2.FindNode(nodeEndPositionSpan, findInsideTrivia:=True))
2291Assert.Throws(Of ArgumentOutOfRangeException)(Sub() classDecl.FindNode(nodeEndPositionSpan))
2295Assert.Throws(Of ArgumentOutOfRangeException)(Sub() root.FindNode(invalidSpan))
2297Assert.Throws(Of ArgumentOutOfRangeException)(Sub() root.FindNode(invalidSpan))
2299Assert.Throws(Of ArgumentOutOfRangeException)(Sub() classDecl2.FindNode(invalidSpan))
2301Assert.Throws(Of ArgumentOutOfRangeException)(Sub() classDecl2.FindNode(invalidSpan))
2303Assert.Throws(Of ArgumentOutOfRangeException)(Sub() classDecl.FindNode(root.FullSpan))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces (10)
Microsoft.Interop.ComInterfaceGenerator (3)
Microsoft.Interop.LibraryImportGenerator (6)
Microsoft.ML.InternalCodeAnalyzer (1)
Mvc.Api.Analyzers.Test (4)
System.Text.RegularExpressions.Generator (2)