15 references to Root
Microsoft.CodeAnalysis.CodeStyle (13)
AbstractFormatEngine.cs (1)
64Contract.ThrowIfTrue(treeData.Root.IsInvalidTokenRange(startToken, endToken));
AbstractFormattingResult.cs (1)
103return this.TreeInfo.Root;
AbstractTriviaDataFactory.cs (6)
33_spaces[i] = new Whitespace(Options, space: i, elastic: false, language: treeInfo.Root.Language); 44return new Whitespace(this.Options, space, elastic: true, language: this.TreeInfo.Root.Language); 53return new Whitespace(this.Options, space, elastic: false, language: this.TreeInfo.Root.Language); 85? new Whitespace(this.Options, lineBreaks, indentation, elastic, language: this.TreeInfo.Root.Language) 86: new ModifiedWhitespace(this.Options, lineBreaks, indentation, elastic, language: this.TreeInfo.Root.Language); 98var triviaInfo = new Whitespace(Options, lineBreaks: lineIndex + 1, indentation: indentation, elastic: false, language: this.TreeInfo.Root.Language);
FormattingContext.cs (2)
80var rootNode = this.TreeData.Root; 199var baseIndentationDelta = operation.GetAdjustedIndentationDelta(self._engine.HeaderFacts, self.TreeData.Root, effectiveBaseToken);
TreeData.cs (3)
62get { return this.Root.FullSpan.Start; } 67get { return this.Root.FullSpan.End; } 71=> this.Root.DescendantTokens(textSpan);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
FormattingResult.cs (1)
26var rewriter = new TriviaRewriter(this.TreeInfo.Root, SimpleIntervalTree.Create(new TextSpanIntervalIntrospector(), this.FormattedSpan), changeMap, cancellationToken);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
FormattingResult.vb (1)
26Dim triviaRewriter = New TriviaDataFactory.TriviaRewriter(Me.TreeInfo.Root, SimpleIntervalTree.Create(New TextSpanIntervalIntrospector(), Me.FormattedSpan), changeMap, cancellationToken)