19 references to CreateRed
Microsoft.CodeAnalysis (19)
Syntax\SyntaxList`1.cs (2)
25return new SyntaxList<TNode>(createGreenNode(nodes).CreateRed()); 351return new SyntaxList<TNode>(newGreen!.CreateRed());
Syntax\SyntaxListBuilder.cs (1)
145this.AddRange(new SyntaxList<SyntaxNode>(list.Node.CreateRed()), offset, length);
Syntax\SyntaxListBuilderExtensions.cs (3)
27return new SyntaxList<SyntaxNode>(listNode.CreateRed()); 39return new SyntaxList<TNode>(listNode.CreateRed()); 50return new SeparatedSyntaxList<TNode>(new SyntaxNodeOrTokenList(listNode.CreateRed(), 0));
Syntax\SyntaxNode.cs (3)
1341return this.Green.WithAdditionalAnnotationsGreen(annotations).CreateRed(); 1346return this.Green.WithoutAnnotationsGreen(annotations).CreateRed(); 1372return (T)(node.Green.WithAdditionalAnnotationsGreen(annotations)).CreateRed();
Syntax\SyntaxNodeOrTokenList.cs (4)
88case 2: return Syntax.InternalSyntax.SyntaxList.List(nodesAndTokens[0].UnderlyingNode!, nodesAndTokens[1].UnderlyingNode!).CreateRed(); 89case 3: return Syntax.InternalSyntax.SyntaxList.List(nodesAndTokens[0].UnderlyingNode!, nodesAndTokens[1].UnderlyingNode!, nodesAndTokens[2].UnderlyingNode!).CreateRed(); 96return Syntax.InternalSyntax.SyntaxList.List(copy).CreateRed(); 361return new SyntaxNodeOrTokenList(newGreen.CreateRed(), 0);
Syntax\SyntaxNodeOrTokenListBuilder.cs (6)
50return innerNode.CreateRed(); 140InternalSyntax.SyntaxList.List(new[] { _nodes[0]! }).CreateRed(), 145return new SyntaxNodeOrTokenList(_nodes[0]!.CreateRed(), index: 0); 149InternalSyntax.SyntaxList.List(_nodes[0]!, _nodes[1]!).CreateRed(), 153InternalSyntax.SyntaxList.List(_nodes[0]!, _nodes[1]!, _nodes[2]!).CreateRed(), 162return new SyntaxNodeOrTokenList(InternalSyntax.SyntaxList.List(tmp).CreateRed(), index: 0);