233 references to FindNode
ILLink.CodeFixProvider (2)
Microsoft.Analyzers.Extra (3)
Microsoft.Analyzers.Extra.Tests (1)
Microsoft.AspNetCore.App.CodeFixes (13)
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)
706Assert.Equal(root, root.FindNode(root.Span, findInsideTrivia: false));
707Assert.Equal(root, root.FindNode(root.Span, findInsideTrivia: true));
715Assert.Equal(classDecl, root.FindNode(identifier.Span, findInsideTrivia: false));
716Assert.Equal(identifier, root.FindNode(identifier.Span, findInsideTrivia: true));
719Assert.Equal(classDecl, root.FindNode(classDecl.Identifier.Span, findInsideTrivia: false));
723Assert.Equal(root, root.FindNode(EOFSpan, findInsideTrivia: false));
724Assert.Equal(root, root.FindNode(EOFSpan, findInsideTrivia: true));
728Assert.Throws<ArgumentOutOfRangeException>(() => classDecl2.FindNode(EOFSpan));
733Assert.Equal(classDecl2, root.FindNode(nodeEndPositionSpan, findInsideTrivia: false));
734Assert.Equal(classDecl2, root.FindNode(nodeEndPositionSpan, findInsideTrivia: true));
735Assert.Equal(classDecl2, classDecl2.FindNode(nodeEndPositionSpan, findInsideTrivia: false));
736Assert.Equal(classDecl2, classDecl2.FindNode(nodeEndPositionSpan, findInsideTrivia: true));
738Assert.Throws<ArgumentOutOfRangeException>(() => classDecl.FindNode(nodeEndPositionSpan));
742Assert.Throws<ArgumentOutOfRangeException>(() => root.FindNode(invalidSpan));
744Assert.Throws<ArgumentOutOfRangeException>(() => root.FindNode(invalidSpan));
746Assert.Throws<ArgumentOutOfRangeException>(() => classDecl2.FindNode(invalidSpan));
748Assert.Throws<ArgumentOutOfRangeException>(() => classDecl2.FindNode(invalidSpan));
750Assert.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)