7 instantiations of IndentationResult
Microsoft.CodeAnalysis.CodeStyle (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\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);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\AbstractIndentationService.cs (1)
24return new IndentationResult(basePosition: 0, offset: 0);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (1)
60return new IndentationResult(trivia.FullSpan.Start, 0);
28 references to IndentationResult
Microsoft.CodeAnalysis.CodeStyle (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\AbstractIndentation.cs (1)
31protected abstract IndentationResult? GetDesiredIndentationWorker(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Indentation\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)
Microsoft.CodeAnalysis.CodeStyle.Fixes (7)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\AbstractIndentationService.cs (2)
16public IndentationResult GetIndentation( 30indenter.TryGetSmartTokenIndentation(out var indentationResult))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Indentation\IIndentationService.cs (5)
20IndentationResult GetIndentation(ParsedDocument document, int lineNumber, IndentationOptions options, CancellationToken cancellationToken); 58var indentation = indenter.GetIndentation(newDocument, newTokenLine.LineNumber, options, cancellationToken); 66public static string GetIndentationString(this IndentationResult indentationResult, SourceText sourceText, bool useTabs, int tabSize) 77public static string GetIndentationString(this IndentationResult indentationResult, SourceText sourceText, SyntaxFormattingOptions options) 80public static string GetIndentationString(this IndentationResult indentationResult, SourceText sourceText, IndentationOptions options)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (10)
src\Analyzers\CSharp\CodeFixes\ConvertNamespace\ConvertNamespaceTransform.cs (1)
103var indentation = indentationService.GetIndentation(document, openBraceLine + 1, indentationOptions, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Indentation\CSharpIndentationService.Indenter.cs (9)
33protected override IndentationResult? GetDesiredIndentationWorker(Indenter indenter, SyntaxToken? tokenOpt, SyntaxTrivia? triviaOpt) 37private static IndentationResult? TryGetDesiredIndentation(Indenter indenter, SyntaxTrivia? triviaOpt) 63private static IndentationResult? TryGetDesiredIndentation(Indenter indenter, SyntaxToken? tokenOpt) 71private static IndentationResult GetIndentationBasedOnToken(Indenter indenter, SyntaxToken token) 324private static IndentationResult GetIndentationFromCommaSeparatedList(Indenter indenter, SyntaxToken token) 336private static IndentationResult GetIndentationFromCommaSeparatedList<T>( 364private static IndentationResult GetDefaultIndentationFromToken(Indenter indenter, SyntaxToken token) 374private static IndentationResult GetIndentationForQueryExpression(Indenter indenter, SyntaxToken token) 465private static IndentationResult GetDefaultIndentationFromTokenLine(