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