542 references to Start
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)
192if (token.SpanStart == tokenLine.Start)
244document.Text, formattingOptions, document.Root.FindToken(startLine.Start));
304if (restrictedSpans.Algorithms.HasIntervalThatIntersectsWith(line.Start, new TextSpanIntervalIntrospector()))
320if (interpolationInteriorSpans.Any(s => s.Contains(line.Start)))
327rootAnchorIndentation, text, formattingOptions, stringExpression, line.Start);
475var indentation = lineText.ConvertTabToSpace(options.TabSize, initialColumn: 0, endPosition: position - lineContainingPosition.Start);
512? startLine.Start
540!interpolationInteriorSpans.Any(s => s.Contains(lines[1].Start)))
546!interpolationInteriorSpans.Any(s => s.Contains(lines[^2].Start)))
569if (restrictedSpans.Algorithms.HasIntervalThatIntersectsWith(line.Start, new TextSpanIntervalIntrospector()))
585if (interpolationInteriorSpans.Any(s => s.Contains(line.Start)))
591var currentLineLeadingWhitespace = line.Text!.ToString(TextSpan.FromBounds(line.Start, pos));
594builder.Append(text.ToString(TextSpan.FromBounds(line.Start + commonWhitespacePrefix.Length, line.EndIncludingLineBreak)));
612builder.Append(text.ToString(TextSpan.FromBounds(line.Start + commonWhitespacePrefix.Length, line.EndIncludingLineBreak)));
655if (interpolationInteriorSpans.Any(s => s.Contains(line.Start)) ||
656interpolationInteriorSpans.Any(s => s.Start - 1 == line.Start))
666var 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 (39)
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
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.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.Implementation (2)
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);