15 instantiations of IndentationResult
Microsoft.CodeAnalysis.CSharp.Features (6)
Snippets\AbstractCSharpTypeSnippetProvider.cs (1)
80var newIndentation = new IndentationResult(indentation.BasePosition, indentation.Offset + syntaxFormattingOptions.TabSize);
Snippets\CSharpConstructorSnippetProvider.cs (1)
74var newIndentation = new IndentationResult(indentation.BasePosition, indentation.Offset + syntaxFormattingOptions.TabSize);
Snippets\CSharpElseSnippetProvider.cs (1)
96var newIndentation = new IndentationResult(indentation.BasePosition, indentation.Offset + syntaxFormattingOptions.TabSize);
Snippets\CSharpForEachLoopSnippetProvider.cs (1)
83var newIndentation = new IndentationResult(indentation.BasePosition, indentation.Offset + syntaxFormattingOptions.TabSize);
Snippets\CSharpIfSnippetProvider.cs (1)
60var newIndentation = new IndentationResult(indentation.BasePosition, indentation.Offset + syntaxFormattingOptions.TabSize);
Snippets\CSharpWhileLoopSnippetProvider.cs (1)
60var newIndentation = new IndentationResult(indentation.BasePosition, indentation.Offset + syntaxFormattingOptions.TabSize);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CSharpIndentationService.Indenter.cs (1)
63return new IndentationResult(trivia.FullSpan.Start, 0);
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Internal\Editor\FSharpSmartIndentProvider.cs (1)
104return result.HasValue ? new IndentationResult(result.Value.BasePosition, result.Value.Offset).GetIndentation(_textView, line) : null;
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
VisualBasicIndentationService.Indenter.vb (1)
65Return New IndentationResult(trivia.FullSpan.Start, 0)
Microsoft.CodeAnalysis.Workspaces (6)
AbstractIndentation.Indenter.cs (5)
159return new IndentationResult(basePosition: line.Start + offset.Value, offset: 0); 192indentationResult = new IndentationResult(basePosition: LineToBeIndented.Start, offset: offset); 203=> new(this.LineToBeIndented.Start, addedSpaces); 231return new IndentationResult(LineToBeIndented.Start, indentation); 234return new IndentationResult(position, addedSpaces);
AbstractIndentationService.cs (1)
27return new IndentationResult(basePosition: 0, offset: 0);
53 references to IndentationResult
Microsoft.CodeAnalysis.CSharp.Features (16)
BraceCompletion\AbstractCurlyBraceOrBracketCompletionService.cs (1)
160var indentation = indentationService.GetIndentation(document, lineNumber, options, cancellationToken);
ConvertNamespaceTransform.cs (1)
114var indentation = indentationService.GetIndentation(document, openBraceLine + 1, indentationOptions, cancellationToken);
ConvertToRawString\ConvertRegularStringToRawStringCodeRefactoringProvider.cs (1)
291var indentationVal = indenter.GetIndentation(parsedDocument, tokenLine.LineNumber, indentationOptions, cancellationToken);
Snippets\AbstractCSharpTypeSnippetProvider.cs (2)
77var indentation = indentationService.GetIndentation(parsedDocument, openBraceLine + 1, indentationOptions, cancellationToken); 80var newIndentation = new IndentationResult(indentation.BasePosition, indentation.Offset + syntaxFormattingOptions.TabSize);
Snippets\CSharpConstructorSnippetProvider.cs (2)
71var indentation = indentationService.GetIndentation(parsedDocument, openBraceLine + 1, indentationOptions, cancellationToken); 74var newIndentation = new IndentationResult(indentation.BasePosition, indentation.Offset + syntaxFormattingOptions.TabSize);
Snippets\CSharpElseSnippetProvider.cs (2)
93var indentation = indentationService.GetIndentation(parsedDocument, openBraceLine + 1, indentationOptions, cancellationToken); 96var newIndentation = new IndentationResult(indentation.BasePosition, indentation.Offset + syntaxFormattingOptions.TabSize);
Snippets\CSharpForEachLoopSnippetProvider.cs (2)
80var indentation = indentationService.GetIndentation(parsedDocument, openBraceLine + 1, indentationOptions, cancellationToken); 83var newIndentation = new IndentationResult(indentation.BasePosition, indentation.Offset + syntaxFormattingOptions.TabSize);
Snippets\CSharpIfSnippetProvider.cs (2)
57var indentation = indentationService.GetIndentation(parsedDocument, openBraceLine + 1, indentationOptions, cancellationToken); 60var newIndentation = new IndentationResult(indentation.BasePosition, indentation.Offset + syntaxFormattingOptions.TabSize);
Snippets\CSharpWhileLoopSnippetProvider.cs (2)
57var indentation = indentationService.GetIndentation(parsedDocument, openBraceLine + 1, indentationOptions, cancellationToken); 60var newIndentation = new IndentationResult(indentation.BasePosition, indentation.Offset + syntaxFormattingOptions.TabSize);
SplitStringLiteral\StringSplitter.cs (1)
140var desiredIndentation = indentationService.GetIndentation(
Microsoft.CodeAnalysis.CSharp.Workspaces (9)
CSharpIndentationService.Indenter.cs (9)
36protected override IndentationResult? GetDesiredIndentationWorker(Indenter indenter, SyntaxToken? tokenOpt, SyntaxTrivia? triviaOpt) 40private static IndentationResult? TryGetDesiredIndentation(Indenter indenter, SyntaxTrivia? triviaOpt) 66private static IndentationResult? TryGetDesiredIndentation(Indenter indenter, SyntaxToken? tokenOpt) 74private static IndentationResult GetIndentationBasedOnToken(Indenter indenter, SyntaxToken token) 323private static IndentationResult GetIndentationFromCommaSeparatedList(Indenter indenter, SyntaxToken token) 335private static IndentationResult GetIndentationFromCommaSeparatedList<T>( 363private static IndentationResult GetDefaultIndentationFromToken(Indenter indenter, SyntaxToken token) 373private static IndentationResult GetIndentationForQueryExpression(Indenter indenter, SyntaxToken token) 464private static IndentationResult GetDefaultIndentationFromTokenLine(
Microsoft.CodeAnalysis.EditorFeatures (2)
Shared\Extensions\SmartIndentExtensions.cs (1)
13public static int GetIndentation(this Indentation.IndentationResult result, ITextView textView, ITextSnapshotLine lineToBeIndented)
SmartIndent\SmartIndent.cs (1)
53var result = newService.GetIndentation(parsedDocument, line.LineNumber, indentationOptions, cancellationToken);
Microsoft.CodeAnalysis.Features (1)
Wrapping\AbstractCodeActionComputer.cs (1)
106var desiredIndentation = indentationService.GetIndentation(
Microsoft.CodeAnalysis.VisualBasic.Workspaces (7)
VisualBasicIndentationService.Indenter.vb (7)
54triviaOpt As SyntaxTrivia?) As IndentationResult? 110Private Shared Function GetIndentationBasedOnToken(indenter As Indenter, token As SyntaxToken, Optional trivia As SyntaxTrivia = Nothing) As IndentationResult 150Private Shared Function GetIndentationOfCurrentPosition(indenter As Indenter, token As SyntaxToken, position As Integer) As IndentationResult 154Private Shared Function GetIndentationOfCurrentPosition(indenter As Indenter, token As SyntaxToken, position As Integer, extraSpaces As Integer) As IndentationResult 232Private Shared Function GetIndentationFromOperationService(indenter As Indenter, token As SyntaxToken, position As Integer) As IndentationResult? 261Private Shared Function GetIndentationFromTokenLineAfterLineContinuation(indenter As Indenter, token As SyntaxToken, trivia As SyntaxTrivia) As IndentationResult 318Private Shared Function GetIndentationFromTwoLines(indenter As Indenter, firstLine As TextLine, secondLine As TextLine, token As SyntaxToken, position As Integer) As IndentationResult
Microsoft.CodeAnalysis.Workspaces (18)
AbstractIndentation.cs (1)
31protected abstract IndentationResult? GetDesiredIndentationWorker(
AbstractIndentation.Indenter.cs (10)
70public IndentationResult? GetDesiredIndentation(FormattingOptions2.IndentStyle indentStyle) 88private readonly IndentationResult? GetDesiredSmartIndentation() 147private IndentationResult? GetDesiredBlockIndentation() 166public bool TryGetSmartTokenIndentation(out IndentationResult indentationResult) 202public IndentationResult IndentFromStartOfLine(int addedSpaces) 205public IndentationResult GetIndentationOfToken(SyntaxToken token) 208public IndentationResult GetIndentationOfToken(SyntaxToken token, int addedSpaces) 211public IndentationResult GetIndentationOfLine(TextLine lineToMatch) 214public IndentationResult GetIndentationOfLine(TextLine lineToMatch, int addedSpaces) 222private IndentationResult GetIndentationOfPosition(int position, int addedSpaces)
AbstractIndentationService.cs (2)
19public IndentationResult GetIndentation( 33indenter.TryGetSmartTokenIndentation(out var indentationResult))
IIndentationService.cs (5)
21IndentationResult GetIndentation(ParsedDocument document, int lineNumber, IndentationOptions options, CancellationToken cancellationToken); 59var indentation = indenter.GetIndentation(newDocument, newTokenLine.LineNumber, options, cancellationToken); 67public static string GetIndentationString(this IndentationResult indentationResult, SourceText sourceText, bool useTabs, int tabSize) 78public static string GetIndentationString(this IndentationResult indentationResult, SourceText sourceText, SyntaxFormattingOptions options) 81public static string GetIndentationString(this IndentationResult indentationResult, SourceText sourceText, IndentationOptions options)