1 write to Options
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (1)
30Options = options;
18 references to Options
Microsoft.CodeAnalysis.CSharp.Workspaces (12)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Engine\Trivia\TriviaDataFactory.cs (12)
46return new ComplexTrivia(this.Options, this.TreeInfo, default, token); 66return new ComplexTrivia(this.Options, this.TreeInfo, token, default); 86return new ComplexTrivia(this.Options, this.TreeInfo, token1, token2); 121return new ModifiedWhitespace(this.Options, result.LineBreaks, indentation: spaces, elastic: result.TreatAsElastic); 132var initialColumn = (token1.RawKind == 0) ? 0 : this.TreeInfo.GetOriginalColumn(Options.TabSize, token1) + token1.Span.Length; 135return textSnippet.ConvertTabToSpace(Options.TabSize, initialColumn, textSnippet.Length); 143var indentation = result.Tab * Options.TabSize + result.Space; 155if (!Options.UseTabs) 165Debug.Assert(Options.UseTabs); 173if (result.Space >= Options.TabSize) 178Debug.Assert((indentation / Options.TabSize) == result.Tab); 179Debug.Assert((indentation % Options.TabSize) == result.Space);
Microsoft.CodeAnalysis.Workspaces (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractTriviaDataFactory.cs (6)
93return new Whitespace(this.Options, space, elastic: true); 102return new Whitespace(this.Options, space, elastic: false); 119indentation % Options.IndentationSize == 0; 123var indentationLevel = indentation / Options.IndentationSize; 132? new Whitespace(this.Options, lineBreaks, indentation, elastic) 133: new ModifiedWhitespace(this.Options, lineBreaks, indentation, elastic);