1 type derived from GreenNode
Microsoft.CodeAnalysis (1)
Syntax\InternalSyntax\SyntaxList.cs (1)
10internal abstract partial class SyntaxList : GreenNode
407 references to GreenNode
Microsoft.CodeAnalysis (391)
SourceGeneration\ISyntaxHelper.cs (2)
32void AddAliases(GreenNode node, ArrayBuilder<(string aliasName, string symbolName)> aliases, bool global); 57public abstract void AddAliases(GreenNode node, ArrayBuilder<(string aliasName, string symbolName)> aliases, bool global);
Syntax\ChildSyntaxList.cs (9)
36internal static int CountNodes(GreenNode green) 42var child = green.GetSlot(i); 81private static int Occupancy(GreenNode green) 129GreenNode? greenChild; 130var green = node.Green; 226GreenNode? green = node.Green; 239GreenNode? greenChild = green.GetSlot(slot); 304GreenNode? greenChild; 305var green = node.Green;
Syntax\GreenNode.cs (60)
42private static readonly ConditionalWeakTable<GreenNode, DiagnosticInfo[]> s_diagnosticsTable = 43new ConditionalWeakTable<GreenNode, DiagnosticInfo[]>(); 45private static readonly ConditionalWeakTable<GreenNode, SyntaxAnnotation[]> s_annotationsTable = 46new ConditionalWeakTable<GreenNode, SyntaxAnnotation[]>(); 114protected void AdjustFlagsAndWidth(GreenNode node) 164internal abstract GreenNode? GetSlot(int index); 166internal GreenNode GetRequiredSlot(int index) 168var node = GetSlot(index); 189var child = this.GetSlot(i); 230var child = GetSlot(i); 586internal abstract GreenNode SetAnnotations(SyntaxAnnotation[]? annotations); 605internal abstract GreenNode SetDiagnostics(DiagnosticInfo[]? diagnostics); 634var stack = ArrayBuilder<(GreenNode node, bool leading, bool trailing)>.GetInstance(); 645ArrayBuilder<(GreenNode node, bool leading, bool trailing)> stack) 650var currentNode = current.node; 671var child = currentNode.GetSlot(i); 683private static int GetFirstNonNullChildIndex(GreenNode node) 689var child = node.GetSlot(firstIndex); 699private static int GetLastNonNullChildIndex(GreenNode node) 705var child = node.GetSlot(lastIndex); 732public virtual GreenNode? GetLeadingTriviaCore() { return null; } 733public virtual GreenNode? GetTrailingTriviaCore() { return null; } 735public virtual GreenNode WithLeadingTrivia(GreenNode? trivia) 740public virtual GreenNode WithTrailingTrivia(GreenNode? trivia) 745internal GreenNode? GetFirstTerminal() 747GreenNode? node = this; 751GreenNode? firstChild = null; 754var child = node.GetSlot(i); 771internal GreenNode? GetLastTerminal() 773GreenNode? node = this; 777GreenNode? lastChild = null; 780var child = node.GetSlot(i); 797internal GreenNode? GetLastNonmissingTerminal() 799GreenNode? node = this; 803GreenNode? nonmissingChild = null; 806var child = node.GetSlot(i); 825public virtual bool IsEquivalentTo([NotNullWhen(true)] GreenNode? other) 840private static bool EquivalentToInternal(GreenNode node1, GreenNode node2) 876var node1Child = node1.GetSlot(i); 877var node2Child = node2.GetSlot(i); 902public static GreenNode? CreateList<TFrom>(IEnumerable<TFrom>? enumerable, Func<TFrom, GreenNode> select) 911public static GreenNode? CreateList<TFrom>(List<TFrom> list, Func<TFrom, GreenNode> select) 925var array = new ArrayElement<GreenNode>[list.Count]; 933public static GreenNode? CreateList<TFrom>(IReadOnlyList<TFrom> list, Func<TFrom, GreenNode> select) 947var array = new ArrayElement<GreenNode>[list.Count]; 973this.SlotCount <= GreenNode.MaxCachedChildNum; 985var child = GetSlot(i); 995internal bool IsCacheEquivalent(int kind, NodeFlags flags, GreenNode? child1) 1005internal bool IsCacheEquivalent(int kind, NodeFlags flags, GreenNode? child1, GreenNode? child2) 1016internal bool IsCacheEquivalent(int kind, NodeFlags flags, GreenNode? child1, GreenNode? child2, GreenNode? child3) 1037internal GreenNode AddError(DiagnosticInfo err)
Syntax\GreenNode.NodeEnumerable.cs (5)
14public ref struct NodeEnumerable(GreenNode node) 16private readonly GreenNode _node = node; 27private GreenNode _current; 29public Enumerator(GreenNode node) 39public readonly GreenNode Current
Syntax\GreenNodeExtensions.cs (5)
14public static TNode WithAnnotationsGreen<TNode>(this TNode node, IEnumerable<SyntaxAnnotation> annotations) where TNode : GreenNode 44public static TNode WithAdditionalAnnotationsGreen<TNode>(this TNode node, IEnumerable<SyntaxAnnotation>? annotations) where TNode : GreenNode 75public static TNode WithoutAnnotationsGreen<TNode>(this TNode node, IEnumerable<SyntaxAnnotation>? annotations) where TNode : GreenNode 110public static TNode WithDiagnosticsGreen<TNode>(this TNode node, DiagnosticInfo[]? diagnostics) where TNode : GreenNode 115public static TNode WithoutDiagnosticsGreen<TNode>(this TNode node) where TNode : GreenNode
Syntax\InternalSyntax\ChildSyntaxList.cs (5)
9private readonly GreenNode? _node; 12internal ChildSyntaxList(GreenNode node) 45private GreenNode[] Nodes 50var result = new GreenNode[this.Count]; 53foreach (var n in this)
Syntax\InternalSyntax\ChildSyntaxList.Enumerator.cs (7)
11private readonly GreenNode? _node; 13private GreenNode? _list; 15private GreenNode? _currentChild; 17internal Enumerator(GreenNode? node) 53var child = _node.GetSlot(_childIndex); 59if (child.RawKind == GreenNode.ListKind) 89public GreenNode Current
Syntax\InternalSyntax\ChildSyntaxList.Reversed.cs (5)
14private readonly GreenNode? _node; 16internal Reversed(GreenNode? node) 30private GreenNode[] Nodes 35var result = new List<GreenNode>(); 36foreach (var n in this)
Syntax\InternalSyntax\ChildSyntaxList.Reversed.Enumerator.cs (6)
13private readonly GreenNode? _node; 15private GreenNode? _list; 17private GreenNode? _currentChild; 19internal Enumerator(GreenNode? node) 56var child = _node.GetSlot(_childIndex); 91public GreenNode Current
Syntax\InternalSyntax\GreenNodeExtensions.cs (4)
9internal static SyntaxList<T> ToGreenList<T>(this SyntaxNode? node) where T : GreenNode 16internal static SeparatedSyntaxList<T> ToGreenSeparatedList<T>(this SyntaxNode? node) where T : GreenNode 23internal static SyntaxList<T> ToGreenList<T>(this GreenNode? node) where T : GreenNode
Syntax\InternalSyntax\SeparatedSyntaxList.cs (10)
10internal readonly struct SeparatedSyntaxList<TNode> : IEquatable<SeparatedSyntaxList<TNode>> where TNode : GreenNode 12private readonly SyntaxList<GreenNode> _list; 14internal SeparatedSyntaxList(SyntaxList<GreenNode> list) 21private static void Validate(SyntaxList<GreenNode> list) 25var item = list.GetRequiredItem(i); 37internal GreenNode? Node => _list.Node; 68public GreenNode? GetSeparator(int index) 73public SyntaxList<GreenNode> GetWithSeparators() 103public static implicit operator SeparatedSyntaxList<GreenNode>(SeparatedSyntaxList<TNode> list) 105return new SeparatedSyntaxList<GreenNode>(list.GetWithSeparators());
Syntax\InternalSyntax\SeparatedSyntaxListBuilder.cs (4)
12internal readonly struct SeparatedSyntaxListBuilder<TNode> where TNode : GreenNode 47public GreenNode? this[int index] 76public void AddSeparator(GreenNode separatorToken) 106: new SeparatedSyntaxList<TNode>(new SyntaxList<GreenNode>(_builder.ToListNode()));
Syntax\InternalSyntax\SyntaxDiagnosticInfoList.cs (12)
13private readonly GreenNode _node; 15internal SyntaxDiagnosticInfoList(GreenNode node) 41internal readonly GreenNode Node; 45internal NodeIteration(GreenNode node) 58internal Enumerator(GreenNode node) 75var node = _stack[_count - 1].Node; 90var child = node.GetSlot(slotIndex); 108private void PushNodeOrToken(GreenNode node) 120private void PushToken(GreenNode token) 122var trailing = token.GetTrailingTriviaCore(); 129var leading = token.GetLeadingTriviaCore(); 136private void Push(GreenNode node)
Syntax\InternalSyntax\SyntaxList.cs (27)
13: base(GreenNode.ListKind) 18: base(GreenNode.ListKind, diagnostics, annotations) 22internal static GreenNode List(GreenNode child) 27internal static WithTwoChildren List(GreenNode child0, GreenNode child1) 33GreenNode? cached = SyntaxNodeCache.TryGetNode(GreenNode.ListKind, child0, child1, out hash); 46internal static WithThreeChildren List(GreenNode child0, GreenNode child1, GreenNode child2) 53GreenNode? cached = SyntaxNodeCache.TryGetNode(GreenNode.ListKind, child0, child1, child2, out hash); 66internal static GreenNode List(GreenNode?[] nodes) 71internal static GreenNode List(GreenNode?[] nodes, int count) 73var array = new ArrayElement<GreenNode>[count]; 76var node = nodes[i]; 84internal static SyntaxList List(ArrayElement<GreenNode>[] children) 98internal abstract void CopyTo(ArrayElement<GreenNode>[] array, int offset); 100internal static GreenNode? Concat(GreenNode? left, GreenNode? right) 118var tmp = new ArrayElement<GreenNode>[left.SlotCount + right.SlotCount]; 125var tmp = new ArrayElement<GreenNode>[left.SlotCount + 1]; 133var tmp = new ArrayElement<GreenNode>[rightList.SlotCount + 1];
Syntax\InternalSyntax\SyntaxList.WithLotsOfChildren.cs (6)
16internal WithLotsOfChildren(ArrayElement<GreenNode>[] children) 22internal WithLotsOfChildren(DiagnosticInfo[]? diagnostics, SyntaxAnnotation[]? annotations, ArrayElement<GreenNode>[] children, int[] childOffsets) 36/// <param name="offset">The target offset. Must be between 0 and <see cref="GreenNode.FullWidth"/>.</param> 48private static int[] CalculateOffsets(ArrayElement<GreenNode>[] children) 61internal override GreenNode SetDiagnostics(DiagnosticInfo[]? errors) 66internal override GreenNode SetAnnotations(SyntaxAnnotation[]? annotations)
Syntax\InternalSyntax\SyntaxList.WithManyChildren.cs (9)
14internal readonly ArrayElement<GreenNode>[] children; 16internal WithManyChildrenBase(ArrayElement<GreenNode>[] children) 22internal WithManyChildrenBase(DiagnosticInfo[]? diagnostics, SyntaxAnnotation[]? annotations, ArrayElement<GreenNode>[] children) 51internal override GreenNode GetSlot(int index) 56internal override void CopyTo(ArrayElement<GreenNode>[] array, int offset) 95internal WithManyChildren(ArrayElement<GreenNode>[] children) 100internal WithManyChildren(DiagnosticInfo[]? diagnostics, SyntaxAnnotation[]? annotations, ArrayElement<GreenNode>[] children) 105internal override GreenNode SetDiagnostics(DiagnosticInfo[]? errors) 110internal override GreenNode SetAnnotations(SyntaxAnnotation[]? annotations)
Syntax\InternalSyntax\SyntaxList.WithThreeChildren.cs (13)
13private readonly GreenNode _child0; 14private readonly GreenNode _child1; 15private readonly GreenNode _child2; 17internal WithThreeChildren(GreenNode child0, GreenNode child1, GreenNode child2) 28internal WithThreeChildren(DiagnosticInfo[]? diagnostics, SyntaxAnnotation[]? annotations, GreenNode child0, GreenNode child1, GreenNode child2) 40internal override GreenNode? GetSlot(int index) 55internal override void CopyTo(ArrayElement<GreenNode>[] array, int offset) 67internal override GreenNode SetDiagnostics(DiagnosticInfo[]? errors) 72internal override GreenNode SetAnnotations(SyntaxAnnotation[]? annotations)
Syntax\InternalSyntax\SyntaxList.WithTwoChildren.cs (10)
13private readonly GreenNode _child0; 14private readonly GreenNode _child1; 16internal WithTwoChildren(GreenNode child0, GreenNode child1) 25internal WithTwoChildren(DiagnosticInfo[]? diagnostics, SyntaxAnnotation[]? annotations, GreenNode child0, GreenNode child1) 35internal override GreenNode? GetSlot(int index) 48internal override void CopyTo(ArrayElement<GreenNode>[] array, int offset) 59internal override GreenNode SetDiagnostics(DiagnosticInfo[]? errors) 64internal override GreenNode SetAnnotations(SyntaxAnnotation[]? annotations)
Syntax\InternalSyntax\SyntaxList`1.cs (12)
12where TNode : GreenNode 14private readonly GreenNode? _node; 16internal SyntaxList(GreenNode? node) 21internal GreenNode? Node => _node; 64internal GreenNode? ItemUntyped(int index) 67var node = this._node; 113var node = this._node; 128internal void CopyTo(int offset, ArrayElement<GreenNode>[] array, int arrayOffset, int count) 161public SeparatedSyntaxList<TOther> AsSeparatedList<TOther>() where TOther : GreenNode 171public static implicit operator SyntaxList<TNode>(SyntaxList<GreenNode> nodes) 176public static implicit operator SyntaxList<GreenNode>(SyntaxList<TNode> nodes) 178return new SyntaxList<GreenNode>(nodes.Node);
Syntax\InternalSyntax\SyntaxList`1.Enumerator.cs (1)
7internal partial struct SyntaxList<TNode> where TNode : GreenNode
Syntax\InternalSyntax\SyntaxListBuilder.cs (18)
12private ArrayElement<GreenNode?>[] _nodes; 17_nodes = new ArrayElement<GreenNode?>[size]; 30public GreenNode? this[int index] 43public void Add(GreenNode? item) 67public void AddRange(GreenNode[] items) 72public void AddRange(GreenNode[] items, int offset, int length) 96public void AddRange(SyntaxList<GreenNode> list) 101public void AddRange(SyntaxList<GreenNode> list, int offset, int length) 116public void AddRange<TNode>(SyntaxList<TNode> list) where TNode : GreenNode 121public void AddRange<TNode>(SyntaxList<TNode> list, int offset, int length) where TNode : GreenNode 123this.AddRange(new SyntaxList<GreenNode>(list.Node), offset, length); 161public GreenNode[] ToArray() 163var array = new GreenNode[this.Count]; 172internal GreenNode? ToListNode() 185var tmp = new ArrayElement<GreenNode>[this.Count]; 191public SyntaxList<GreenNode> ToList() 193return new SyntaxList<GreenNode>(ToListNode()); 196public SyntaxList<TNode> ToList<TNode>() where TNode : GreenNode
Syntax\InternalSyntax\SyntaxListBuilder`1.cs (4)
9internal readonly struct SyntaxListBuilder<TNode> where TNode : GreenNode 49var result = _builder[index]; 100public GreenNode? ToListNode() 120public SyntaxList<TDerived> ToList<TDerived>() where TDerived : GreenNode
Syntax\InternalSyntax\SyntaxListBuilderExtensions.cs (4)
9public static SyntaxList<GreenNode> ToList(this SyntaxListBuilder? builder) 11return ToList<GreenNode>(builder); 14public static SyntaxList<TNode> ToList<TNode>(this SyntaxListBuilder? builder) where TNode : GreenNode 18return default(SyntaxList<GreenNode>);
Syntax\InternalSyntax\SyntaxListPool.cs (5)
46internal SyntaxListBuilder<TNode> Allocate<TNode>() where TNode : GreenNode 51internal SeparatedSyntaxListBuilder<TNode> AllocateSeparated<TNode>() where TNode : GreenNode 56internal void Free<TNode>(in SeparatedSyntaxListBuilder<TNode> item) where TNode : GreenNode 88where TNode : GreenNode 99where TNode : GreenNode
Syntax\InternalSyntax\SyntaxNodeCache.cs (44)
90internal static void NoteGreen(GreenNode _) 120public readonly GreenNode? node; 122internal Entry(int hash, GreenNode node) 131internal static void AddNode(GreenNode node, int hash) 144private static bool CanBeCached(GreenNode? child1) 149private static bool CanBeCached(GreenNode? child1, GreenNode? child2) 154private static bool CanBeCached(GreenNode? child1, GreenNode? child2, GreenNode? child3) 159private static bool ChildInCache(GreenNode? child) 171private static bool AllChildrenInCache(GreenNode node) 186internal static GreenNode? TryGetNode(int kind, GreenNode? child1, out int hash) 191internal static GreenNode? TryGetNode(int kind, GreenNode? child1, GreenNode.NodeFlags flags, out int hash) 214internal static GreenNode? TryGetNode(int kind, GreenNode? child1, GreenNode? child2, out int hash) 219internal static GreenNode? TryGetNode(int kind, GreenNode? child1, GreenNode? child2, GreenNode.NodeFlags flags, out int hash) 242internal static GreenNode? TryGetNode(int kind, GreenNode? child1, GreenNode? child2, GreenNode? child3, out int hash) 247internal static GreenNode? TryGetNode(int kind, GreenNode? child1, GreenNode? child2, GreenNode? child3, GreenNode.NodeFlags flags, out int hash) 270public static GreenNode.NodeFlags GetDefaultNodeFlags() 272return GreenNode.NodeFlags.IsNotMissing; 275private static int GetCacheHash(int kind, GreenNode.NodeFlags flags, GreenNode? child1) 284private static int GetCacheHash(int kind, GreenNode.NodeFlags flags, GreenNode? child1, GreenNode? child2) 301private static int GetCacheHash(int kind, GreenNode.NodeFlags flags, GreenNode? child1, GreenNode? child2, GreenNode? child3)
Syntax\SeparatedSyntaxList.cs (1)
152var green = node.Green.GetRequiredSlot(index);
Syntax\SyntaxDiffer.cs (2)
24private readonly HashSet<GreenNode> _nodeSimilaritySet = new HashSet<GreenNode>();
Syntax\SyntaxList`1.cs (4)
27static GreenNode createGreenNode(ReadOnlySpan<TNode> nodes) 36var copy = new ArrayElement<GreenNode>[nodes.Length]; 350var newGreen = GreenNode.CreateList(items, static n => n.Green);
Syntax\SyntaxListBuilder.cs (6)
12private ArrayElement<GreenNode?>[] _nodes; 17_nodes = new ArrayElement<GreenNode?>[size]; 30internal void AddInternal(GreenNode item) 150var tmp = new ArrayElement<GreenNode?>[size]; 168internal GreenNode? ToListNode() 181var tmp = new ArrayElement<GreenNode>[this.Count];
Syntax\SyntaxListBuilderExtensions.cs (3)
21var listNode = builder?.ToListNode(); 33var listNode = builder?.ToListNode(); 44var listNode = builder?.ToListNode();
Syntax\SyntaxNode.cs (19)
31internal SyntaxNode(GreenNode green, SyntaxNode? parent, int position) 45internal SyntaxNode(GreenNode green, int position, SyntaxTree syntaxTree) 68internal GreenNode Green { get; } 142var green = this.Green.GetSlot(slot); 160var green = this.Green.GetSlot(0); 177var green = this.Green.GetSlot(slot); 195var green = this.Green.GetSlot(0); 219var green = this.Green.GetRequiredSlot(slot); 239var green = this.Green.GetRequiredSlot(1); 265var greenChild = this.Green.GetRequiredSlot(index); 456var stack = PooledObjects.ArrayBuilder<GreenNode?>.GetInstance(); 463var current = stack.Pop(); 499static bool triviaContainsMatch(GreenNode? triviaNode, int rawKind) 508var child = triviaNode.GetSlot(i); 591var item = this.Green.GetSlot(i); 624var green = this.Green; 633var greenChild = green.GetSlot(index); 652var green = this.Green; 663var greenChild = green.GetSlot(index);
Syntax\SyntaxNodeOrToken.cs (6)
32private readonly GreenNode? _token; 52internal SyntaxNodeOrToken(SyntaxNode? parent, GreenNode? token, int position, int index) 128internal GreenNode? UnderlyingNode => _token ?? _nodeOrParent?.Green; 132internal GreenNode RequiredUnderlyingNode 754var thisUnderlying = this.UnderlyingNode; 755var otherUnderlying = other.UnderlyingNode;
Syntax\SyntaxNodeOrTokenList.cs (6)
92var copy = new ArrayElement<GreenNode>[nodesAndTokens.Length]; 149var green = _node.Green.GetRequiredSlot(index); 277internal void CopyTo(int offset, GreenNode?[] array, int arrayOffset, int count) 352var newGreen = GreenNode.CreateList(items, static n => n.RequiredUnderlyingNode)!; 357new ArrayElement<GreenNode> {Value = newGreen}
Syntax\SyntaxNodeOrTokenListBuilder.cs (6)
13private GreenNode?[] _nodes; 18_nodes = new GreenNode?[size]; 41var innerNode = _nodes[index]; 60internal void Add(GreenNode item) 125var tmp = new GreenNode[size]; 156var tmp = new ArrayElement<GreenNode>[_count];
Syntax\SyntaxToken.cs (8)
28internal SyntaxToken(SyntaxNode? parent, GreenNode? token, int position, int index) 38internal SyntaxToken(GreenNode? token) 77internal GreenNode? Node { get; } 79internal GreenNode RequiredNode 428var leading = Node.GetLeadingTriviaCore(); 435var trailingGreen = Node.GetTrailingTriviaCore(); 479? new SyntaxToken(null, Node.WithLeadingTrivia(GreenNode.CreateList(trivia, static t => t.RequiredUnderlyingNode)), position: 0, index: 0) 505? new SyntaxToken(null, Node.WithTrailingTrivia(GreenNode.CreateList(trivia, static t => t.RequiredUnderlyingNode)), position: 0, index: 0)
Syntax\SyntaxTokenList.cs (12)
28internal SyntaxTokenList(SyntaxNode? parent, GreenNode? tokenOrList, int position, int index) 72private static GreenNode? CreateNodeFromSpan(ReadOnlySpan<SyntaxToken> tokens) 83var copy = new ArrayElement<GreenNode>[tokens.Length]; 92private static GreenNode? CreateNode(IEnumerable<SyntaxToken> tokens) 109internal GreenNode? Node { get; } 255internal void CopyTo(int offset, GreenNode?[] array, int arrayOffset, int count) 268private GreenNode? GetGreenNodeAt(int i) 277private static GreenNode? GetGreenNodeAt(GreenNode node, int i) 374return new SyntaxTokenList(null, GreenNode.CreateList(list, static n => n.RequiredNode), 0, 0); 390return new SyntaxTokenList(null, GreenNode.CreateList(list, static n => n.RequiredNode), 0, 0); 436return new SyntaxTokenList(null, GreenNode.CreateList(list, static n => n.RequiredNode), 0, 0);
Syntax\SyntaxTokenList.Enumerator.cs (2)
52private readonly GreenNode? _singleNodeOrList; 57private GreenNode? _current;
Syntax\SyntaxTokenList.Reversed.cs (2)
74private readonly GreenNode? _singleNodeOrList; 79private GreenNode? _current;
Syntax\SyntaxTokenListBuilder.cs (4)
12private GreenNode?[] _nodes; 17_nodes = new GreenNode?[size]; 40internal void Add(GreenNode item) 84var tmp = new GreenNode[newSize];
Syntax\SyntaxTrivia.cs (4)
26internal SyntaxTrivia(in SyntaxToken token, GreenNode? triviaNode, int position, int index) 56internal GreenNode? UnderlyingNode { get; } 58internal GreenNode RequiredUnderlyingNode 62var node = UnderlyingNode;
Syntax\SyntaxTriviaList.cs (10)
28internal SyntaxTriviaList(in SyntaxToken token, GreenNode? node, int position, int index = 0) 36internal SyntaxTriviaList(in SyntaxToken token, GreenNode? node) 78private static GreenNode? CreateNodeFromSpan(ReadOnlySpan<SyntaxTrivia> trivias) 89var copy = new ArrayElement<GreenNode>[trivias.Length]; 100internal GreenNode? Node { get; } 372return new SyntaxTriviaList(default(SyntaxToken), GreenNode.CreateList(list, static n => n.RequiredUnderlyingNode), 0, 0); 418return new SyntaxTriviaList(default(SyntaxToken), GreenNode.CreateList(list, static n => n.RequiredUnderlyingNode), 0, 0); 450private GreenNode? GetGreenNodeAt(int i) 456private static GreenNode? GetGreenNodeAt(GreenNode node, int i)
Syntax\SyntaxTriviaList.Enumerator.cs (6)
19private GreenNode? _singleNodeOrList; 24private GreenNode? _current; 40private void InitializeFrom(in SyntaxToken token, GreenNode greenNode, int index, int position) 58var node = token.Node.GetLeadingTriviaCore(); 69var leading = token.Node.GetLeadingTriviaCore(); 76var trailingGreen = token.Node.GetTrailingTriviaCore();
Syntax\SyntaxTriviaList.Reversed.cs (2)
73private readonly GreenNode? _singleNodeOrList; 78private GreenNode? _current;
Syntax\SyntaxTriviaListBuilder.cs (1)
155var tmp = new ArrayElement<GreenNode>[_count];
Microsoft.CodeAnalysis.CSharp (12)
Declarations\DeclarationTreeBuilder.cs (1)
1014var greenNode = parent.Green;
Parser\LanguageParser_InterpolatedString.cs (1)
377var openTokenTrailingTrivia = tempLexer.LexSyntaxTrailingTrivia().Node;
Parser\SyntaxParser.cs (3)
298var result = CurrentNode.Green; 1000var trivia = builder.ToListNode(); 1058var child = root.GetSlot(i);
Syntax\CSharpSyntaxRewriter.cs (3)
61var node = token.Node; 68var leadingTrivia = node.GetLeadingTriviaCore(); 69var trailingTrivia = node.GetTrailingTriviaCore();
Syntax\InternalSyntax\CSharpSyntaxNode.cs (1)
148var child = node.GetSlot(i);
Syntax\InternalSyntax\SyntaxListPoolExtensions.cs (1)
13var listNode = builder.ToListNode();
Syntax\StructuredTriviaSyntax.cs (1)
24var node = trivia.UnderlyingNode;
Syntax\SyntaxTreeDiagnosticEnumerator.cs (1)
77var child = node.GetSlot(slotIndex);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (4)
Syntax\GreenNodeTests.cs (1)
17var nodeWithDiags = node.SetDiagnostics(new DiagnosticInfo[] { new CSDiagnosticInfo(ErrorCode.ERR_NoBaseClass) });
Syntax\SyntaxFactoryTests.cs (1)
197var actualGreen = actualRed.Node;
Syntax\SyntaxNodeCacheTests.cs (2)
48var listOf1 = SyntaxNodeCache.TryGetNode(listOf2.RawKind, child0, SyntaxNodeCache.GetDefaultNodeFlags(), out _); 73var listOf2 = SyntaxNodeCache.TryGetNode(listOf3.RawKind, child0, child1, SyntaxNodeCache.GetDefaultNodeFlags(), out _);