460 references to FullSpan
Microsoft.AspNetCore.App.Analyzers (2)
Microsoft.CodeAnalysis (37)
Syntax\SyntaxNode.cs (14)
529if (node == null || !this.FullSpan.Contains(node.FullSpan))
758if (!FullSpan.Contains(position))
875return DescendantNodesImpl(this.FullSpan, descendIntoChildren, descendIntoTrivia, includeSelf: false);
896return DescendantNodesImpl(this.FullSpan, descendIntoChildren, descendIntoTrivia, includeSelf: true);
917return DescendantNodesAndTokensImpl(this.FullSpan, descendIntoChildren, descendIntoTrivia, includeSelf: false);
938return DescendantNodesAndTokensImpl(this.FullSpan, descendIntoChildren, descendIntoTrivia, includeSelf: true);
953/// Finds the node with the smallest <see cref="FullSpan"/> that contains <paramref name="span"/>.
961/// <exception cref="ArgumentOutOfRangeException">This exception is thrown if <see cref="FullSpan"/> doesn't contain the given span.</exception>
964if (!this.FullSpan.Contains(span))
971!.FirstAncestorOrSelf<SyntaxNode, TextSpan>((a, span) => a.FullSpan.Contains(span), span);
1102if (this.FullSpan.Contains(position))
1183return DescendantTriviaImpl(this.FullSpan, descendIntoChildren, descendIntoTrivia);
1452if (!this.FullSpan.Contains(position))
Microsoft.CodeAnalysis.CodeStyle (34)
Microsoft.CodeAnalysis.CodeStyle.Fixes (11)
Microsoft.CodeAnalysis.CSharp (25)
Microsoft.CodeAnalysis.CSharp.CodeStyle (12)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.Features (34)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (11)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (33)
Syntax\SyntaxNodeTests.cs (27)
155nodes = statement.DescendantNodes(statement.FullSpan).ToList();
159nodes = statement.DescendantNodes(statement.FullSpan, descendIntoTrivia: true).ToList();
165nodes = statement.DescendantNodes(statement.FullSpan, n => n is StatementSyntax).ToList();
169nodes = statement.DescendantNodes(statement.FullSpan, n => n is StatementSyntax, descendIntoTrivia: true).ToList();
205nodes = statement.DescendantNodesAndSelf(statement.FullSpan).ToList();
210nodes = statement.DescendantNodesAndSelf(statement.FullSpan, descendIntoTrivia: true).ToList();
217nodes = statement.DescendantNodesAndSelf(statement.FullSpan, n => n is StatementSyntax).ToList();
222nodes = statement.DescendantNodesAndSelf(statement.FullSpan, n => n is StatementSyntax, descendIntoTrivia: true).ToList();
256nodesAndTokens = statement.DescendantNodesAndTokens(statement.FullSpan).ToList();
293nodesAndTokens = statement.DescendantNodesAndTokensAndSelf(statement.FullSpan).ToList();
714for (int i = 0; i < node.FullSpan.End; i++)
745var EOFSpan = new TextSpan(root.FullSpan.End, 0);
754var nodeEndPositionSpan = new TextSpan(classDecl.FullSpan.End, 0);
766invalidSpan = new TextSpan(root.FullSpan.End - 1, 2);
768invalidSpan = new TextSpan(classDecl2.FullSpan.Start - 1, root.FullSpan.End);
770invalidSpan = new TextSpan(classDecl.FullSpan.End, root.FullSpan.End);
773Assert.Throws<ArgumentOutOfRangeException>(() => classDecl.FindNode(root.FullSpan));
1780Assert.Equal(rootNode.FullSpan.Length, rootNode.ToFullString().Length);
1798Assert.Equal(rootNode.FullSpan.Length, rootNode.ToFullString().Length);
1813Assert.Equal(namespaceNode.FullSpan, nodeOrToken.FullSpan);
2055var actualTokens = syntaxTree.GetRoot().DescendantTokens(syntaxTree.GetRoot().FullSpan);
3548Assert.InRange(0, root.FullSpan.Start, root.FullSpan.End);
3553Assert.NotInRange(0, method.FullSpan.Start, method.FullSpan.End);
Microsoft.CodeAnalysis.CSharp.Workspaces (11)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Microsoft.CodeAnalysis.Features (14)
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.VisualBasic (23)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (11)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (6)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (4)
Microsoft.CodeAnalysis.VisualBasic.Features (12)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (39)
TestSyntaxNodes.vb (36)
222Assert.Equal(expectedFullSpan.Start, list(0).FullSpan.Start)
223Assert.Equal(expectedFullSpan.End, list(list.Count - 1).FullSpan.End)
228Assert.Equal(list(i - 1).FullSpan.End, list(i).FullSpan.Start)
231Assert.Equal(list(i).FullSpan.End, list(i + 1).FullSpan.Start)
324Assert.True(tree.FullSpan.Contains(tree.Span))
328Assert.Equal(tree.Span, tree.FullSpan)
334Assert.Equal(tree.SpanStart, tree.FullSpan.Start)
336VerifyListSpans(precedingTrivia, New TextSpan(tree.FullSpan.Start, (tree.SpanStart - tree.FullSpan.Start)))
340Assert.Equal(tree.Span.End, tree.FullSpan.End)
342VerifyListSpans(followingTrivia, New TextSpan(tree.Span.End, (tree.FullSpan.End - tree.Span.End)))
347VerifyListSpans(tree.ChildNodesAndTokens(), tree.FullSpan)
376Assert.Equal(New TextSpan(0, 1), dig1.FullSpan)
385Assert.Equal(New TextSpan(3, 1), binop.Right.FullSpan)
389Assert.Equal(New TextSpan(0, 18), simpleTree.FullSpan)
595Assert.Equal(start, seplist(0).FullSpan.Start)
597Assert.Equal(start + 4, seplist(0).FullSpan.End)
817Assert.Equal(8, endTry.FullSpan.Length)
1736Assert.Equal(0, tree.GetRoot().FindToken(node.FullSpan.Length - 1).TrailingTrivia.Count)
1896Dim terminals = tree.DescendantTokens(tree.FullSpan)
1906terminals = tree.DescendantTokens(tree.FullSpan)
2273Dim EOFSpan = New TextSpan(root.FullSpan.End, 0)
2283Dim nodeEndPositionSpan = New TextSpan(classDecl.FullSpan.End, 0)
2296invalidSpan = New TextSpan(root.FullSpan.End - 1, 2)
2298invalidSpan = New TextSpan(classDecl2.FullSpan.Start - 1, root.FullSpan.End)
2300invalidSpan = New TextSpan(classDecl.FullSpan.End, root.FullSpan.End)
2303Assert.Throws(Of ArgumentOutOfRangeException)(Sub() classDecl.FindNode(root.FullSpan))
2335For i As Integer = 1 To node.FullSpan.End - 1
2424nodes = statement.DescendantNodes(statement.FullSpan).ToList()
2428nodes = statement.DescendantNodes(statement.FullSpan, descendIntoTrivia:=True).ToList()
2459nodes = statement.DescendantNodesAndSelf(statement.FullSpan).ToList()
2464nodes = statement.DescendantNodesAndSelf(statement.FullSpan, descendIntoTrivia:=True).ToList()
Microsoft.CodeAnalysis.VisualBasic.Workspaces (31)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (3)
Microsoft.CodeAnalysis.Workspaces (71)
CodeCleanup\AbstractCodeCleanerService.cs (6)
45if (CleanupWholeNode(root.FullSpan, normalizedSpan))
48return await IterateAllCodeCleanupProvidersAsync(document, document, options, r => [r.FullSpan], codeCleaners, cancellationToken).ConfigureAwait(false);
58return await IterateAllCodeCleanupProvidersAsync(document, document, options, n => [n.FullSpan], codeCleaners, cancellationToken).ConfigureAwait(false);
87if (CleanupWholeNode(root.FullSpan, normalizedSpan))
90return await IterateAllCodeCleanupProvidersAsync(root, root, options, r => [r.FullSpan], services, codeCleaners, cancellationToken).ConfigureAwait(false);
100return await IterateAllCodeCleanupProvidersAsync(root, root, options, n => [n.FullSpan], services, codeCleaners, cancellationToken).ConfigureAwait(false);
Formatting\Formatter.cs (5)
189=> Format(node, [node.FullSpan], workspace, options, rules: default, cancellationToken);
192=> Format(node, [node.FullSpan], services, options, rules: default, cancellationToken);
249spans ??= [node.FullSpan];
269=> GetFormattedTextChanges(node, [node.FullSpan], workspace, options, rules: default, cancellationToken: cancellationToken);
272=> GetFormattedTextChanges(node, [node.FullSpan], services, options, rules: default, cancellationToken: cancellationToken);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (3)
Microsoft.CodeAnalysis.Workspaces.UnitTests (7)
Microsoft.VisualStudio.LanguageServices.CSharp (2)
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)