6 instantiations of IndentationResult
Microsoft.CodeAnalysis.Workspaces (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (5)
159
return new
IndentationResult
(basePosition: line.Start + offset.Value, offset: 0);
192
indentationResult = new
IndentationResult
(basePosition: LineToBeIndented.Start, offset: offset);
203
=>
new
(this.LineToBeIndented.Start, addedSpaces);
231
return new
IndentationResult
(LineToBeIndented.Start, indentation);
234
return new
IndentationResult
(position, addedSpaces);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\AbstractIndentationService.cs (1)
24
return new
IndentationResult
(basePosition: 0, offset: 0);
19 references to IndentationResult
Microsoft.CodeAnalysis.Features (1)
Wrapping\AbstractCodeActionComputer.cs (1)
104
var
desiredIndentation = indentationService.GetIndentation(
Microsoft.CodeAnalysis.Workspaces (18)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.cs (1)
31
protected abstract
IndentationResult
? GetDesiredIndentationWorker(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.Indenter.cs (10)
70
public
IndentationResult
? GetDesiredIndentation(FormattingOptions2.IndentStyle indentStyle)
88
private readonly
IndentationResult
? GetDesiredSmartIndentation()
147
private
IndentationResult
? GetDesiredBlockIndentation()
166
public bool TryGetSmartTokenIndentation(out
IndentationResult
indentationResult)
202
public
IndentationResult
IndentFromStartOfLine(int addedSpaces)
205
public
IndentationResult
GetIndentationOfToken(SyntaxToken token)
208
public
IndentationResult
GetIndentationOfToken(SyntaxToken token, int addedSpaces)
211
public
IndentationResult
GetIndentationOfLine(TextLine lineToMatch)
214
public
IndentationResult
GetIndentationOfLine(TextLine lineToMatch, int addedSpaces)
222
private
IndentationResult
GetIndentationOfPosition(int position, int addedSpaces)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\AbstractIndentationService.cs (2)
16
public
IndentationResult
GetIndentation(
30
indenter.TryGetSmartTokenIndentation(out
var
indentationResult))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\IIndentationService.cs (5)
20
IndentationResult
GetIndentation(ParsedDocument document, int lineNumber, IndentationOptions options, CancellationToken cancellationToken);
58
var
indentation = indenter.GetIndentation(newDocument, newTokenLine.LineNumber, options, cancellationToken);
66
public static string GetIndentationString(this
IndentationResult
indentationResult, SourceText sourceText, bool useTabs, int tabSize)
77
public static string GetIndentationString(this
IndentationResult
indentationResult, SourceText sourceText, SyntaxFormattingOptions options)
80
public static string GetIndentationString(this
IndentationResult
indentationResult, SourceText sourceText, IndentationOptions options)