552 references to Start
CSharpSyntaxGenerator (1)
GenerateDocumentationAndConfigFiles (27)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (12)
79_syntaxFacts.IsInInactiveRegion(this.Tree, LineToBeIndented.Start, this.CancellationToken))
125var token = Root.FindToken(LineToBeIndented.Start);
130if (token.SpanStart >= LineToBeIndented.Start)
159return new IndentationResult(basePosition: line.Start + offset.Value, offset: 0);
192indentationResult = new IndentationResult(basePosition: LineToBeIndented.Start, offset: offset);
203=> new(this.LineToBeIndented.Start, addedSpaces);
228var token = Root.FindTokenFromEnd(LineToBeIndented.Start);
229var indentation = Finder.GetIndentationOfCurrentPosition(this.Tree, token, LineToBeIndented.Start, CancellationToken.None);
231return new IndentationResult(LineToBeIndented.Start, indentation);
239if (LineToBeIndented.Start < position)
241return TextSpan.FromBounds(LineToBeIndented.Start, position);
244return TextSpan.FromBounds(position, LineToBeIndented.Start);
Metrics (24)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (12)
79_syntaxFacts.IsInInactiveRegion(this.Tree, LineToBeIndented.Start, this.CancellationToken))
125var token = Root.FindToken(LineToBeIndented.Start);
130if (token.SpanStart >= LineToBeIndented.Start)
159return new IndentationResult(basePosition: line.Start + offset.Value, offset: 0);
192indentationResult = new IndentationResult(basePosition: LineToBeIndented.Start, offset: offset);
203=> new(this.LineToBeIndented.Start, addedSpaces);
228var token = Root.FindTokenFromEnd(LineToBeIndented.Start);
229var indentation = Finder.GetIndentationOfCurrentPosition(this.Tree, token, LineToBeIndented.Start, CancellationToken.None);
231return new IndentationResult(LineToBeIndented.Start, indentation);
239if (LineToBeIndented.Start < position)
241return TextSpan.FromBounds(LineToBeIndented.Start, position);
244return TextSpan.FromBounds(position, LineToBeIndented.Start);
Metrics.Legacy (24)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (12)
79_syntaxFacts.IsInInactiveRegion(this.Tree, LineToBeIndented.Start, this.CancellationToken))
125var token = Root.FindToken(LineToBeIndented.Start);
130if (token.SpanStart >= LineToBeIndented.Start)
159return new IndentationResult(basePosition: line.Start + offset.Value, offset: 0);
192indentationResult = new IndentationResult(basePosition: LineToBeIndented.Start, offset: offset);
203=> new(this.LineToBeIndented.Start, addedSpaces);
228var token = Root.FindTokenFromEnd(LineToBeIndented.Start);
229var indentation = Finder.GetIndentationOfCurrentPosition(this.Tree, token, LineToBeIndented.Start, CancellationToken.None);
231return new IndentationResult(LineToBeIndented.Start, indentation);
239if (LineToBeIndented.Start < position)
241return TextSpan.FromBounds(LineToBeIndented.Start, position);
244return TextSpan.FromBounds(position, LineToBeIndented.Start);
Microsoft.AspNetCore.App.Analyzers (2)
Microsoft.CodeAnalysis (8)
Microsoft.CodeAnalysis.Analyzers (27)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (12)
79_syntaxFacts.IsInInactiveRegion(this.Tree, LineToBeIndented.Start, this.CancellationToken))
125var token = Root.FindToken(LineToBeIndented.Start);
130if (token.SpanStart >= LineToBeIndented.Start)
159return new IndentationResult(basePosition: line.Start + offset.Value, offset: 0);
192indentationResult = new IndentationResult(basePosition: LineToBeIndented.Start, offset: offset);
203=> new(this.LineToBeIndented.Start, addedSpaces);
228var token = Root.FindTokenFromEnd(LineToBeIndented.Start);
229var indentation = Finder.GetIndentationOfCurrentPosition(this.Tree, token, LineToBeIndented.Start, CancellationToken.None);
231return new IndentationResult(LineToBeIndented.Start, indentation);
239if (LineToBeIndented.Start < position)
241return TextSpan.FromBounds(LineToBeIndented.Start, position);
244return TextSpan.FromBounds(position, LineToBeIndented.Start);
Microsoft.CodeAnalysis.AnalyzerUtilities (24)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (12)
79_syntaxFacts.IsInInactiveRegion(this.Tree, LineToBeIndented.Start, this.CancellationToken))
125var token = Root.FindToken(LineToBeIndented.Start);
130if (token.SpanStart >= LineToBeIndented.Start)
159return new IndentationResult(basePosition: line.Start + offset.Value, offset: 0);
192indentationResult = new IndentationResult(basePosition: LineToBeIndented.Start, offset: offset);
203=> new(this.LineToBeIndented.Start, addedSpaces);
228var token = Root.FindTokenFromEnd(LineToBeIndented.Start);
229var indentation = Finder.GetIndentationOfCurrentPosition(this.Tree, token, LineToBeIndented.Start, CancellationToken.None);
231return new IndentationResult(LineToBeIndented.Start, indentation);
239if (LineToBeIndented.Start < position)
241return TextSpan.FromBounds(LineToBeIndented.Start, position);
244return TextSpan.FromBounds(position, LineToBeIndented.Start);
Microsoft.CodeAnalysis.BannedApiAnalyzers (27)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (12)
79_syntaxFacts.IsInInactiveRegion(this.Tree, LineToBeIndented.Start, this.CancellationToken))
125var token = Root.FindToken(LineToBeIndented.Start);
130if (token.SpanStart >= LineToBeIndented.Start)
159return new IndentationResult(basePosition: line.Start + offset.Value, offset: 0);
192indentationResult = new IndentationResult(basePosition: LineToBeIndented.Start, offset: offset);
203=> new(this.LineToBeIndented.Start, addedSpaces);
228var token = Root.FindTokenFromEnd(LineToBeIndented.Start);
229var indentation = Finder.GetIndentationOfCurrentPosition(this.Tree, token, LineToBeIndented.Start, CancellationToken.None);
231return new IndentationResult(LineToBeIndented.Start, indentation);
239if (LineToBeIndented.Start < position)
241return TextSpan.FromBounds(LineToBeIndented.Start, position);
244return TextSpan.FromBounds(position, LineToBeIndented.Start);
Microsoft.CodeAnalysis.CodeStyle (24)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (12)
79_syntaxFacts.IsInInactiveRegion(this.Tree, LineToBeIndented.Start, this.CancellationToken))
125var token = Root.FindToken(LineToBeIndented.Start);
130if (token.SpanStart >= LineToBeIndented.Start)
159return new IndentationResult(basePosition: line.Start + offset.Value, offset: 0);
192indentationResult = new IndentationResult(basePosition: LineToBeIndented.Start, offset: offset);
203=> new(this.LineToBeIndented.Start, addedSpaces);
228var token = Root.FindTokenFromEnd(LineToBeIndented.Start);
229var indentation = Finder.GetIndentationOfCurrentPosition(this.Tree, token, LineToBeIndented.Start, CancellationToken.None);
231return new IndentationResult(LineToBeIndented.Start, indentation);
239if (LineToBeIndented.Start < position)
241return TextSpan.FromBounds(LineToBeIndented.Start, position);
244return TextSpan.FromBounds(position, LineToBeIndented.Start);
Microsoft.CodeAnalysis.CodeStyle.Fixes (21)
Microsoft.CodeAnalysis.CSharp (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (11)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (5)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Features (35)
ConvertToRawString\ConvertInterpolatedStringToRawStringCodeRefactoringProvider.cs (17)
194if (token.SpanStart == tokenLine.Start)
246document.Text, formattingOptions, document.Root.FindToken(startLine.Start));
306if (restrictedSpans.Algorithms.HasIntervalThatIntersectsWith(line.Start, new TextSpanIntervalIntrospector()))
322if (interpolationInteriorSpans.Any(s => s.Contains(line.Start)))
329rootAnchorIndentation, text, formattingOptions, stringExpression, line.Start);
477var indentation = lineText.ConvertTabToSpace(options.TabSize, initialColumn: 0, endPosition: position - lineContainingPosition.Start);
514? startLine.Start
542!interpolationInteriorSpans.Any(s => s.Contains(lines[1].Start)))
548!interpolationInteriorSpans.Any(s => s.Contains(lines[^2].Start)))
571if (restrictedSpans.Algorithms.HasIntervalThatIntersectsWith(line.Start, new TextSpanIntervalIntrospector()))
587if (interpolationInteriorSpans.Any(s => s.Contains(line.Start)))
593var currentLineLeadingWhitespace = line.Text!.ToString(TextSpan.FromBounds(line.Start, pos));
596builder.Append(text.ToString(TextSpan.FromBounds(line.Start + commonWhitespacePrefix.Length, line.EndIncludingLineBreak)));
614builder.Append(text.ToString(TextSpan.FromBounds(line.Start + commonWhitespacePrefix.Length, line.EndIncludingLineBreak)));
657if (interpolationInteriorSpans.Any(s => s.Contains(line.Start)) ||
658interpolationInteriorSpans.Any(s => s.Start - 1 == line.Start))
668var currentLineLeadingWhitespace = line.Text!.ToString(TextSpan.FromBounds(line.Start, pos));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Microsoft.CodeAnalysis.EditorFeatures (1)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.Features (37)
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (27)
Microsoft.CodeAnalysis.PublicApiAnalyzers (24)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (12)
79_syntaxFacts.IsInInactiveRegion(this.Tree, LineToBeIndented.Start, this.CancellationToken))
125var token = Root.FindToken(LineToBeIndented.Start);
130if (token.SpanStart >= LineToBeIndented.Start)
159return new IndentationResult(basePosition: line.Start + offset.Value, offset: 0);
192indentationResult = new IndentationResult(basePosition: LineToBeIndented.Start, offset: offset);
203=> new(this.LineToBeIndented.Start, addedSpaces);
228var token = Root.FindTokenFromEnd(LineToBeIndented.Start);
229var indentation = Finder.GetIndentationOfCurrentPosition(this.Tree, token, LineToBeIndented.Start, CancellationToken.None);
231return new IndentationResult(LineToBeIndented.Start, indentation);
239if (LineToBeIndented.Start < position)
241return TextSpan.FromBounds(LineToBeIndented.Start, position);
244return TextSpan.FromBounds(position, LineToBeIndented.Start);
Microsoft.CodeAnalysis.ResxSourceGenerator (24)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (12)
79_syntaxFacts.IsInInactiveRegion(this.Tree, LineToBeIndented.Start, this.CancellationToken))
125var token = Root.FindToken(LineToBeIndented.Start);
130if (token.SpanStart >= LineToBeIndented.Start)
159return new IndentationResult(basePosition: line.Start + offset.Value, offset: 0);
192indentationResult = new IndentationResult(basePosition: LineToBeIndented.Start, offset: offset);
203=> new(this.LineToBeIndented.Start, addedSpaces);
228var token = Root.FindTokenFromEnd(LineToBeIndented.Start);
229var indentation = Finder.GetIndentationOfCurrentPosition(this.Tree, token, LineToBeIndented.Start, CancellationToken.None);
231return new IndentationResult(LineToBeIndented.Start, indentation);
239if (LineToBeIndented.Start < position)
241return TextSpan.FromBounds(LineToBeIndented.Start, position);
244return TextSpan.FromBounds(position, LineToBeIndented.Start);
Microsoft.CodeAnalysis.UnitTests (5)
Microsoft.CodeAnalysis.VisualBasic (4)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
Microsoft.CodeAnalysis.VisualBasic.Features (3)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Microsoft.CodeAnalysis.Workspaces (31)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (12)
79_syntaxFacts.IsInInactiveRegion(this.Tree, LineToBeIndented.Start, this.CancellationToken))
125var token = Root.FindToken(LineToBeIndented.Start);
130if (token.SpanStart >= LineToBeIndented.Start)
159return new IndentationResult(basePosition: line.Start + offset.Value, offset: 0);
192indentationResult = new IndentationResult(basePosition: LineToBeIndented.Start, offset: offset);
203=> new(this.LineToBeIndented.Start, addedSpaces);
228var token = Root.FindTokenFromEnd(LineToBeIndented.Start);
229var indentation = Finder.GetIndentationOfCurrentPosition(this.Tree, token, LineToBeIndented.Start, CancellationToken.None);
231return new IndentationResult(LineToBeIndented.Start, indentation);
239if (LineToBeIndented.Start < position)
241return TextSpan.FromBounds(LineToBeIndented.Start, position);
244return TextSpan.FromBounds(position, LineToBeIndented.Start);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
Microsoft.VisualStudio.LanguageServices (13)
Microsoft.VisualStudio.LanguageServices.CSharp (4)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (3)
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
Microsoft.VisualStudio.LanguageServices.VisualBasic (6)
Roslyn.Diagnostics.Analyzers (27)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (12)
79_syntaxFacts.IsInInactiveRegion(this.Tree, LineToBeIndented.Start, this.CancellationToken))
125var token = Root.FindToken(LineToBeIndented.Start);
130if (token.SpanStart >= LineToBeIndented.Start)
159return new IndentationResult(basePosition: line.Start + offset.Value, offset: 0);
192indentationResult = new IndentationResult(basePosition: LineToBeIndented.Start, offset: offset);
203=> new(this.LineToBeIndented.Start, addedSpaces);
228var token = Root.FindTokenFromEnd(LineToBeIndented.Start);
229var indentation = Finder.GetIndentationOfCurrentPosition(this.Tree, token, LineToBeIndented.Start, CancellationToken.None);
231return new IndentationResult(LineToBeIndented.Start, indentation);
239if (LineToBeIndented.Start < position)
241return TextSpan.FromBounds(LineToBeIndented.Start, position);
244return TextSpan.FromBounds(position, LineToBeIndented.Start);
Roslyn.Diagnostics.CSharp.Analyzers (3)
Test.Utilities (24)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (12)
79_syntaxFacts.IsInInactiveRegion(this.Tree, LineToBeIndented.Start, this.CancellationToken))
125var token = Root.FindToken(LineToBeIndented.Start);
130if (token.SpanStart >= LineToBeIndented.Start)
159return new IndentationResult(basePosition: line.Start + offset.Value, offset: 0);
192indentationResult = new IndentationResult(basePosition: LineToBeIndented.Start, offset: offset);
203=> new(this.LineToBeIndented.Start, addedSpaces);
228var token = Root.FindTokenFromEnd(LineToBeIndented.Start);
229var indentation = Finder.GetIndentationOfCurrentPosition(this.Tree, token, LineToBeIndented.Start, CancellationToken.None);
231return new IndentationResult(LineToBeIndented.Start, indentation);
239if (LineToBeIndented.Start < position)
241return TextSpan.FromBounds(LineToBeIndented.Start, position);
244return TextSpan.FromBounds(position, LineToBeIndented.Start);
Text.Analyzers (27)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (12)
79_syntaxFacts.IsInInactiveRegion(this.Tree, LineToBeIndented.Start, this.CancellationToken))
125var token = Root.FindToken(LineToBeIndented.Start);
130if (token.SpanStart >= LineToBeIndented.Start)
159return new IndentationResult(basePosition: line.Start + offset.Value, offset: 0);
192indentationResult = new IndentationResult(basePosition: LineToBeIndented.Start, offset: offset);
203=> new(this.LineToBeIndented.Start, addedSpaces);
228var token = Root.FindTokenFromEnd(LineToBeIndented.Start);
229var indentation = Finder.GetIndentationOfCurrentPosition(this.Tree, token, LineToBeIndented.Start, CancellationToken.None);
231return new IndentationResult(LineToBeIndented.Start, indentation);
239if (LineToBeIndented.Start < position)
241return TextSpan.FromBounds(LineToBeIndented.Start, position);
244return TextSpan.FromBounds(position, LineToBeIndented.Start);