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