124 references to FullSpan
Microsoft.CodeAnalysis (7)
Syntax\SyntaxDiffer.cs (2)
459w += tr.FullSpan.Length; 468w += tr.FullSpan.Length;
Syntax\SyntaxNode.cs (1)
1551if (trivia.FullSpan.Contains(position))
Syntax\SyntaxNode.Iterators.cs (4)
510if (trivia.TryGetStructure(out var structureNode) && IsInSpan(in span, trivia.FullSpan)) 551if (IsInSpan(in span, trivia.FullSpan)) 559if (IsInSpan(in span, trivia.FullSpan)) 617if (IsInSpan(in span, trivia.FullSpan))
Microsoft.CodeAnalysis.CodeStyle (14)
src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderHelper.cs (5)
63fileHeaderStart = Math.Min(trivia.FullSpan.Start, fileHeaderStart); 64fileHeaderEnd = trivia.FullSpan.End; 86fileHeaderStart = trivia.FullSpan.Start; 87fileHeaderEnd = trivia.FullSpan.End; 104missingHeaderOffset = trivia.FullSpan.End;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
401var triviaToReplace = trivia != null ? trivia.ToDictionary(t => t.FullSpan) : [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTriviaExtensions.cs (1)
13=> trivia.FullSpan.Length;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.StructuredTrivia.cs (1)
43var text = _trivia.ToFullString()[..(token.SpanStart - _trivia.FullSpan.Start)];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (5)
836return TextSpan.FromBounds(this.StartPosition, trivia2.FullSpan.Start); 841return TextSpan.FromBounds(trivia1.FullSpan.End, this.EndPosition); 844return TextSpan.FromBounds(trivia1.FullSpan.End, trivia2.FullSpan.Start); 938var offset = trivia.FullSpan.Start - this.StartPosition;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (1)
233if (trivia.FullSpan.End <= token1FullSpanEnd)
Microsoft.CodeAnalysis.CSharp (4)
Compiler\UnprocessedDocumentationCommentFinder.cs (1)
95if (IsSyntacticallyFilteredOut(trivia.FullSpan))
Syntax\SyntaxReplacer.cs (3)
100_triviaSet.Select(t => t.FullSpan)))); 221if (this.VisitIntoStructuredTrivia && trivia.HasStructure && this.ShouldVisit(trivia.FullSpan)) 359if (this.VisitIntoStructuredTrivia && trivia.HasStructure && this.ShouldVisit(trivia.FullSpan))
Microsoft.CodeAnalysis.CSharp.CodeStyle (7)
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_ProgramMain.cs (1)
68var start = lastPragma == default ? 0 : lastPragma.FullSpan.End;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (2)
201var fullSpan = trivia.FullSpan; 230var span = trivia.FullSpan;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
156var span = trivia.FullSpan;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (2)
269changes.Add(new TextChange(trivia.FullSpan, newComment.ToFullString())); 379changes.Add(new TextChange(trivia.FullSpan, docComment.ToFullString()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1108return trivia.FullSpan;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (3)
58var line = indenter.Text.Lines.GetLineFromPosition(trivia.FullSpan.Start); 59if (line.GetFirstNonWhitespacePosition() != trivia.FullSpan.Start) 63return new IndentationResult(trivia.FullSpan.Start, 0);
Microsoft.CodeAnalysis.CSharp.EditorFeatures (4)
BlockCommentEditing\BlockCommentEditingCommandHandler.cs (4)
124containsBlockCommentStartString = currentLine.LineNumber == textSnapshot.GetLineFromPosition(blockComment.FullSpan.Start).LineNumber; 144var commentStart = blockComment.FullSpan.Start; 243? blockComment.FullSpan.Start 290var span = trivia.FullSpan;
Microsoft.CodeAnalysis.CSharp.Features (8)
BraceMatching\BlockCommentBraceMatcher.cs (4)
45if (trivia.FullSpan.Contains(position)) 54var startBrace = new TextSpan(trivia.FullSpan.Start, "/**".Length); 55var endBrace = TextSpan.FromBounds(trivia.FullSpan.End - "*/".Length, trivia.FullSpan.End);
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_ProgramMain.cs (1)
68var start = lastPragma == default ? 0 : lastPragma.FullSpan.End;
Structure\Providers\DisabledTextTriviaStructureProvider.cs (2)
30var startPos = trivia.FullSpan.Start; 70var endPos = trivia.FullSpan.End;
TaskList\CSharpTaskListService.cs (1)
41var start = trivia.FullSpan.Start + index;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Syntax\SyntaxAnnotationTests.cs (4)
375Assert.Equal(oldTrivia.FullSpan, newTrivia.FullSpan); 651Assert.Equal(oldTrivia.FullSpan, annotatedTrivia.FullSpan);
Microsoft.CodeAnalysis.CSharp.Workspaces (10)
Classification\Worker.cs (1)
181if (enumerator.Current.FullSpan.End > classificationSpanStart)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTreeExtensions.cs (2)
201var fullSpan = trivia.FullSpan; 230var span = trivia.FullSpan;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaExtensions.cs (1)
156var span = trivia.FullSpan;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\CSharpTriviaFormatter.cs (2)
269changes.Add(new TextChange(trivia.FullSpan, newComment.ToFullString())); 379changes.Add(new TextChange(trivia.FullSpan, docComment.ToFullString()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SyntaxFacts\CSharpSyntaxFacts.cs (1)
1108return trivia.FullSpan;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (3)
58var line = indenter.Text.Lines.GetLineFromPosition(trivia.FullSpan.Start); 59if (line.GetFirstNonWhitespacePosition() != trivia.FullSpan.Start) 63return new IndentationResult(trivia.FullSpan.Start, 0);
Microsoft.CodeAnalysis.Features (13)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.PragmaHelpers.cs (2)
73? trivia.FullSpan.End <= currentDiagnosticSpan.Start 74: trivia.FullSpan.Start >= currentDiagnosticSpan.End;
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.RemoveSuppressionCodeAction_Pragma.cs (2)
125bool shouldIncludeTrivia(SyntaxTrivia t) => isStartToken ? t.FullSpan.End <= diagnosticSpan.Start : t.FullSpan.Start >= diagnosticSpan.End;
EmbeddedLanguages\Classification\AbstractEmbeddedLanguageClassificationService.cs (1)
155if (trivia.IsDirective && trivia.FullSpan.IntersectsWith(_textSpan))
ExtractMethod\AbstractSyntaxTriviaService.cs (2)
95var triviaAtBeginning = SplitTrivia(tokens[TriviaLocation.BeforeBeginningOfSpan], tokens[TriviaLocation.AfterBeginningOfSpan], t => t.FullSpan.End <= textSpan.Start); 96var triviaAtEnd = SplitTrivia(tokens[TriviaLocation.BeforeEndOfSpan], tokens[TriviaLocation.AfterEndOfSpan], t => t.FullSpan.Start < textSpan.End);
src\Analyzers\Core\Analyzers\FileHeaders\AbstractFileHeaderHelper.cs (5)
63fileHeaderStart = Math.Min(trivia.FullSpan.Start, fileHeaderStart); 64fileHeaderEnd = trivia.FullSpan.End; 86fileHeaderStart = trivia.FullSpan.Start; 87fileHeaderEnd = trivia.FullSpan.End; 104missingHeaderOffset = trivia.FullSpan.End;
TaskList\AbstractTaskListService.cs (1)
130var fullSpan = trivia.FullSpan;
Microsoft.CodeAnalysis.VisualBasic (6)
Compilation\DocumentationComments\UnprocessedDocumentationCommentFinder.vb (1)
131If IsSyntacticallyFilteredOut(trivia.FullSpan) Then
Syntax\SyntaxFacts.vb (1)
212If trivia.FullSpan.Contains(position) Then
Syntax\SyntaxReplacer.vb (4)
85Me._triviaSet.Select(Function(t) t.FullSpan))) 177If Me.VisitIntoStructuredTrivia AndAlso trivia.HasStructure AndAlso Me.ShouldVisit(trivia.FullSpan) Then 278If Me._visitIntoStructuredTrivia AndAlso element.HasStructure AndAlso Me.ShouldVisit(element.FullSpan) Then 383MyBase.New(originalTrivia.FullSpan, editKind, visitTrivia:=True, visitIntoStructuredTrivia:=originalTrivia.IsPartOfStructuredTrivia())
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (3)
src\Workspaces\VisualBasic\Portable\Formatting\Engine\Trivia\VisualBasicTriviaFormatter.vb (2)
186changes.Add(New TextChange(trivia.FullSpan, lineContinuation.ToFullString())) 257changes.Add(New TextChange(trivia.FullSpan, docComment.ToFullString()))
src\Workspaces\VisualBasic\Portable\Formatting\Rules\BaseFormattingRule.vb (1)
64Return TextSpan.FromBounds(spanStart, trivia.FullSpan.Start)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Indentation\VisualBasicIndentationService.Indenter.vb (3)
63Dim line = indenter.Text.Lines.GetLineFromPosition(trivia.FullSpan.Start) 64If line.GetFirstNonWhitespacePosition() = trivia.FullSpan.Start Then 65Return New IndentationResult(trivia.FullSpan.Start, 0)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (20)
Syntax\SyntaxAnnotationTests.vb (4)
348Assert.Equal(oldTrivia.FullSpan, newTrivia.FullSpan) 591Assert.Equal(oldTrivia.FullSpan, annotatedTrivia.FullSpan)
TestSyntaxNodes.vb (16)
309Assert.Equal(expectedFullSpan.Start, list(0).FullSpan.Start) 310Assert.Equal(expectedFullSpan.End, list(list.Count - 1).FullSpan.End) 315Assert.Equal(list(i).FullSpan.End, list(i + 1).FullSpan.Start) 709Assert.Equal(1, follTrivia(0).FullSpan.Start) 711Assert.Equal(4, follTrivia(0).FullSpan.End) 715Assert.Equal(4, follTrivia(1).FullSpan.Start) 717Assert.Equal(5, follTrivia(1).FullSpan.End) 740Assert.Equal(0, precTrivia(0).FullSpan.Start) 742Assert.Equal(4, precTrivia(0).FullSpan.End) 746Assert.Equal(4, precTrivia(1).FullSpan.Start) 748Assert.Equal(6, precTrivia(1).FullSpan.End) 752Assert.Equal(6, precTrivia(2).FullSpan.Start) 754Assert.Equal(9, precTrivia(2).FullSpan.End) 761Assert.Equal(10, follTrivia(0).FullSpan.Start) 763Assert.Equal(11, follTrivia(0).FullSpan.End)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (6)
Formatting\Engine\Trivia\VisualBasicTriviaFormatter.vb (2)
186changes.Add(New TextChange(trivia.FullSpan, lineContinuation.ToFullString())) 257changes.Add(New TextChange(trivia.FullSpan, docComment.ToFullString()))
Formatting\Rules\BaseFormattingRule.vb (1)
64Return TextSpan.FromBounds(spanStart, trivia.FullSpan.Start)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Indentation\VisualBasicIndentationService.Indenter.vb (3)
63Dim line = indenter.Text.Lines.GetLineFromPosition(trivia.FullSpan.Start) 64If line.GetFirstNonWhitespacePosition() = trivia.FullSpan.Start Then 65Return New IndentationResult(trivia.FullSpan.Start, 0)
Microsoft.CodeAnalysis.Workspaces (10)
Classification\SyntaxClassification\AbstractSyntaxClassificationService.Worker.cs (1)
175if (trivia.HasStructure && trivia.FullSpan.IntersectsWith(_textSpan))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
401var triviaToReplace = trivia != null ? trivia.ToDictionary(t => t.FullSpan) : [];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTriviaExtensions.cs (1)
13=> trivia.FullSpan.Length;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TreeData.StructuredTrivia.cs (1)
43var text = _trivia.ToFullString()[..(token.SpanStart - _trivia.FullSpan.Start)];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (5)
836return TextSpan.FromBounds(this.StartPosition, trivia2.FullSpan.Start); 841return TextSpan.FromBounds(trivia1.FullSpan.End, this.EndPosition); 844return TextSpan.FromBounds(trivia1.FullSpan.End, trivia2.FullSpan.Start); 938var offset = trivia.FullSpan.Start - this.StartPosition;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (1)
233if (trivia.FullSpan.End <= token1FullSpanEnd)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\CSharpCodeModelService.cs (1)
2874deletionStart = trivia.FullSpan.Start;
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\VisualBasicCodeModelService.vb (1)
1298deletionStart = trivia.FullSpan.Start