157 references to FullSpan
Microsoft.CodeAnalysis.CodeStyle (29)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
400var tokensToReplace = tokens != null ? tokens.ToDictionary(t => t.FullSpan) : [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTokenExtensions.cs (1)
67=> token.FullSpan.Length;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
208var inseparableRegionStartingPosition = effectiveBaseTokenGetter(this, operation).FullSpan.Start;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenStream.cs (8)
87Debug.Assert(previousToken.FullSpan.End <= currentToken.FullSpan.Start); 511if (!token.FullSpan.IsEmpty) 519Debug.Assert(token.FullSpan.IsEmpty); 522if (!_tokens[i].FullSpan.IsEmpty) 537if (!_tokens[i].FullSpan.IsEmpty) 563=> x.FullSpan.CompareTo(y.FullSpan);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.NodeAndText.cs (2)
38return _text.ToString(TextSpan.FromBounds(token2.FullSpan.Start, token2.SpanStart)); 44return _text.ToString(TextSpan.FromBounds(token1.Span.End, token1.FullSpan.End));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (2)
474if (ContainsOnlyWhitespace(lastToken.Span.End, lastToken.FullSpan.End)) 488if (ContainsOnlyWhitespace(firstToken.FullSpan.Start, firstToken.SpanStart))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
249=> Math.Min(Root.EndOfFileToken.FullSpan.Start, position);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
174Debug.Assert(firstToken.FullSpan.Start == 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\HeaderFacts\AbstractHeaderFacts.cs (1)
81if (tokenToRightOrIn.FullSpan.Start != position && tokenToRightOrIn.RawKind != SyntaxFacts.SyntaxKinds.EndOfFileToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SelectedMembers\AbstractSelectedMembers.cs (1)
136if (id.FullSpan.IntersectsWith(position))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (9)
143return root.FullSpan.End == startToken.SpanStart || startToken.FullSpan.End > endToken.FullSpan.Start; 185if (token1.FullSpan.End == token2.FullSpan.Start) 193for (var token = token1.GetNextToken(includeZeroWidth: true); token.FullSpan.End <= token2.FullSpan.Start; token = token.GetNextToken(includeZeroWidth: true)) 278var backwardPosition = token.FullSpan.End; 283return token.FullSpan.End; 304var forwardPosition = token.FullSpan.Start;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
18/// cref="SyntaxToken.FullSpan"/>).</param>
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\AbstractRefactoringHelpersService.cs (1)
198if (tokenToRight == default || tokenToRight.FullSpan.Start == location)
Microsoft.CodeAnalysis.CSharp (8)
Compiler\UnprocessedDocumentationCommentFinder.cs (1)
82if (IsSyntacticallyFilteredOut(token.FullSpan))
Syntax\SyntaxNodeRemover.cs (2)
345var fullSpan = TextSpan.FromBounds(token.FullSpan.Start, node.FullSpan.End); 379var fullSpan = TextSpan.FromBounds(node.FullSpan.Start, token.FullSpan.End);
Syntax\SyntaxNormalizer.cs (2)
56var normalizer = new SyntaxNormalizer(token.FullSpan, GetDeclarationDepth(token), indentWhitespace, eolWhitespace, useElasticTrivia); 136if (_consideredSpan.Contains(nextToken.FullSpan))
Syntax\SyntaxReplacer.cs (3)
99_tokenSet.Select(t => t.FullSpan).Concat( 204if (_shouldVisitTrivia && this.ShouldVisit(token.FullSpan)) 347if (_visitTrivia && this.ShouldVisit(token.FullSpan))
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
34positionBeforeModifiers = token.FullSpan.Start;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaRewriter.cs (1)
167if (!_spans.HasIntervalThatIntersectsWith(token.FullSpan))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (6)
120TextSpan.FromBounds(lastTokenOfLabel.FullSpan.End, nextToken.SpanStart) : TextSpan.FromBounds(lastTokenOfLabel.FullSpan.End, lastTokenOfLabel.FullSpan.End)); 129span = lastSection ? span : TextSpan.FromBounds(span.Start, endToken.FullSpan.End); 369AddIndentBlockOperation(list, firstToken, lastToken, TextSpan.FromBounds(firstToken.FullSpan.Start, lastToken.FullSpan.End));
Microsoft.CodeAnalysis.CSharp.EditorFeatures (1)
AutomaticCompletion\AutomaticLineEnderCommandHandler_Helpers.cs (1)
664&& doStatementNode.DoKeyword.FullSpan.Contains(caretPosition);
Microsoft.CodeAnalysis.CSharp.Features (10)
Completion\CompletionProviders\AwaitCompletionProvider.cs (1)
120if (position > leftToken.FullSpan.End)
Debugging\BreakpointResolver.cs (1)
75lengthOfParsedText += token.FullSpan.End;
EditAndContinue\BreakpointSpans.cs (2)
567if (position >= block.OpenBraceToken.FullSpan.End) 672else if (position < forEachStatement.InKeyword.FullSpan.Start)
ExtractMethod\CSharpMethodExtractor.CSharpCodeGenerator.cs (1)
654var usingKeyword = originalIdentifierToken.Parent?.Parent?.Parent is LocalDeclarationStatementSyntax { UsingKeyword.FullSpan.IsEmpty: false }
ImplementInterface\AbstractChangeImplementationCodeRefactoringProvider.cs (2)
145? identifier.FullSpan 146: TextSpan.FromBounds(explicitName.FullSpan.Start, identifier.FullSpan.End);
QuickInfo\CSharpSyntacticQuickInfoProvider.cs (1)
109var nextToken = block.FindToken(openBrace.FullSpan.End);
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (1)
121return TextSpan.FromBounds(conditional.Span.Start, openBracket.FullSpan.End);
Structure\CSharpStructureHelpers.cs (1)
450var spanStart = syntaxList.First().GetFirstToken().FullSpan.End;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (9)
IncrementalParsing\IncrementalParsingTests.cs (2)
2879parsedTree.GetCompilationUnitRoot().EndOfFileToken.FullSpan, 2880changedTree.GetCompilationUnitRoot().EndOfFileToken.FullSpan);
LexicalAndXml\SyntaxTokenParserTests.cs (1)
413Assert.Equal(expectedFullSpan, result.Token.FullSpan);
Parsing\RoundTrippingTests.cs (2)
62var prevSpan = nodes[0].FullSpan; 65var span = nodes[i].FullSpan;
Syntax\SyntaxAnnotationTests.cs (2)
637Assert.Equal(oldToken.FullSpan, annotatedToken.FullSpan);
Syntax\SyntaxNodeTests.cs (2)
717Assert.True(token.FullSpan.Contains(i)); 975Assert.Equal(26, last.FullSpan.Start);
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (1)
34positionBeforeModifiers = token.FullSpan.Start;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaRewriter.cs (1)
167if (!_spans.HasIntervalThatIntersectsWith(token.FullSpan))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\IndentBlockFormattingRule.cs (6)
120TextSpan.FromBounds(lastTokenOfLabel.FullSpan.End, nextToken.SpanStart) : TextSpan.FromBounds(lastTokenOfLabel.FullSpan.End, lastTokenOfLabel.FullSpan.End)); 129span = lastSection ? span : TextSpan.FromBounds(span.Start, endToken.FullSpan.End); 369AddIndentBlockOperation(list, firstToken, lastToken, TextSpan.FromBounds(firstToken.FullSpan.Start, lastToken.FullSpan.End));
Microsoft.CodeAnalysis.Features (5)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaHelpers.cs (5)
120else if (startToken.FullSpan.Start == 0) 223var spanEnd = !isEndTokenEOF ? nextOfEnd.FullSpan.End : endToken.FullSpan.End; 224var subtreeRoot = root.FindNode(new TextSpan(previousOfStart.FullSpan.Start, spanEnd - previousOfStart.FullSpan.Start));
Microsoft.CodeAnalysis.VisualBasic (9)
Binding\Binder_Statements.vb (1)
1786If lookupSymbol.IdentifierToken.FullSpan <> identifier.FullSpan Then
Syntax\SyntaxNodeRemover.vb (2)
239Dim fullSpan = TextSpan.FromBounds(token.FullSpan.Start, node.FullSpan.End) 263Dim fullSpan = TextSpan.FromBounds(node.FullSpan.Start, token.FullSpan.End)
Syntax\SyntaxNormalizer.vb (2)
64Dim normalizer As New SyntaxNormalizer(token.FullSpan, indentWhitespace, eolWhitespace, useElasticTrivia, useDefaultCasing) 674If _consideredSpan.Contains(nextToken.FullSpan) Then
Syntax\SyntaxReplacer.vb (4)
84Me._tokenSet.Select(Function(t) t.FullSpan)).Concat( 163If Me._shouldVisitTrivia AndAlso Me.ShouldVisit(token.FullSpan) Then 270If Me._visitTrivia AndAlso Me.ShouldVisit(token.FullSpan) Then 347MyBase.New(originalToken.FullSpan, editKind, visitTrivia:=False, visitIntoStructuredTrivia:=originalToken.IsPartOfStructuredTrivia())
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxTreeExtensions.vb (1)
53If current.FullSpan.End <> token.FullSpan.End Then
src\Workspaces\VisualBasic\Portable\Formatting\Engine\Trivia\TriviaDataFactory.TriviaRewriter.vb (1)
132If Not Me._spans.HasIntervalThatIntersectsWith(token.FullSpan) Then
src\Workspaces\VisualBasic\Portable\Formatting\Rules\BaseFormattingRule.vb (1)
52Return TextSpan.FromBounds(previousToken.Span.End, endToken.FullSpan.End)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Indentation\SpecialFormattingOperation.vb (1)
72TextSpan.FromBounds(startToken.FullSpan.Start, node.FullSpan.End), indentationDelta:=1, [option]:=IndentBlockOption.RelativePosition))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (31)
Scanner\ScannerTests.vb (3)
1122Assert.Equal(4, tk.FullSpan.Length) 1129Assert.Equal(3, tk.FullSpan.Length) 1136Assert.Equal(3, tk.FullSpan.Length)
Syntax\SyntaxAnnotationTests.vb (2)
578Assert.Equal(oldToken.FullSpan, annotatedToken.FullSpan)
TestSyntaxNodes.vb (26)
290Assert.Equal(expectedFullSpan.Start, list(0).FullSpan.Start) 291Assert.Equal(expectedFullSpan.End, list(list.Count - 1).FullSpan.End) 296Assert.Equal(list(i - 1).FullSpan.End, list(i).FullSpan.Start) 299Assert.Equal(list(i).FullSpan.End, list(i + 1).FullSpan.Start) 353Assert.True(tree.FullSpan.Contains(tree.Span)) 359Assert.Equal(tree.SpanStart, tree.FullSpan.Start) 361VerifyListSpans(precedingTrivia, New TextSpan(tree.FullSpan.Start, (tree.SpanStart - tree.FullSpan.Start))) 365Assert.Equal(tree.Span.End, tree.FullSpan.End) 367VerifyListSpans(followingTrivia, New TextSpan(tree.Span.End, (tree.FullSpan.End - tree.Span.End))) 383Assert.Equal(New TextSpan(1, 2), binop.OperatorToken.FullSpan) 685Assert.Equal(0, tok.FullSpan.Start) 687Assert.Equal(1, tok.FullSpan.End) 701Assert.Equal(0, tok.FullSpan.Start) 703Assert.Equal(5, tok.FullSpan.End) 728Assert.Equal(0, tok.FullSpan.Start) 729Assert.Equal(11, tok.FullSpan.End) 772Assert.Equal(6, keyword.FullSpan.Length) 784Assert.Equal(12, keyword.FullSpan.Length) 793Assert.Equal(8, keyword.FullSpan.Length) 804Assert.Equal(16, keyword.FullSpan.Length) 991Assert.Equal(7, kwModule.FullSpan.Length) 997Assert.Equal(7, kwModule.FullSpan.Length) 2337Assert.Equal(True, token.FullSpan.Contains(i))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (4)
Formatting\Engine\Trivia\TriviaDataFactory.TriviaRewriter.vb (1)
132If Not Me._spans.HasIntervalThatIntersectsWith(token.FullSpan) Then
Formatting\Rules\BaseFormattingRule.vb (1)
52Return TextSpan.FromBounds(previousToken.Span.End, endToken.FullSpan.End)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\SyntaxTreeExtensions.vb (1)
53If current.FullSpan.End <> token.FullSpan.End Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Indentation\SpecialFormattingOperation.vb (1)
72TextSpan.FromBounds(startToken.FullSpan.Start, node.FullSpan.End), indentationDelta:=1, [option]:=IndentBlockOption.RelativePosition))
Microsoft.CodeAnalysis.Workspaces (30)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
400var tokensToReplace = tokens != null ? tokens.ToDictionary(t => t.FullSpan) : [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTokenExtensions.cs (1)
67=> token.FullSpan.Length;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
208var inseparableRegionStartingPosition = effectiveBaseTokenGetter(this, operation).FullSpan.Start;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenStream.cs (8)
87Debug.Assert(previousToken.FullSpan.End <= currentToken.FullSpan.Start); 511if (!token.FullSpan.IsEmpty) 519Debug.Assert(token.FullSpan.IsEmpty); 522if (!_tokens[i].FullSpan.IsEmpty) 537if (!_tokens[i].FullSpan.IsEmpty) 563=> x.FullSpan.CompareTo(y.FullSpan);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.NodeAndText.cs (2)
38return _text.ToString(TextSpan.FromBounds(token2.FullSpan.Start, token2.SpanStart)); 44return _text.ToString(TextSpan.FromBounds(token1.Span.End, token1.FullSpan.End));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (2)
474if (ContainsOnlyWhitespace(lastToken.Span.End, lastToken.FullSpan.End)) 488if (ContainsOnlyWhitespace(firstToken.FullSpan.Start, firstToken.SpanStart))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (1)
249=> Math.Min(Root.EndOfFileToken.FullSpan.Start, position);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\FileBannerFacts\AbstractFileBannerFacts.cs (1)
174Debug.Assert(firstToken.FullSpan.Start == 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\HeaderFacts\AbstractHeaderFacts.cs (1)
81if (tokenToRightOrIn.FullSpan.Start != position && tokenToRightOrIn.RawKind != SyntaxFacts.SyntaxKinds.EndOfFileToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\SelectedMembers\AbstractSelectedMembers.cs (1)
136if (id.FullSpan.IntersectsWith(position))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (9)
143return root.FullSpan.End == startToken.SpanStart || startToken.FullSpan.End > endToken.FullSpan.Start; 185if (token1.FullSpan.End == token2.FullSpan.Start) 193for (var token = token1.GetNextToken(includeZeroWidth: true); token.FullSpan.End <= token2.FullSpan.Start; token = token.GetNextToken(includeZeroWidth: true)) 278var backwardPosition = token.FullSpan.End; 283return token.FullSpan.End; 304var forwardPosition = token.FullSpan.Start;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (1)
18/// cref="SyntaxToken.FullSpan"/>).</param>
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\AbstractRefactoringHelpersService.cs (1)
198if (tokenToRight == default || tokenToRight.FullSpan.Start == location)