internal static WithTwoChildren List(GreenNode child0, GreenNode child1) { RoslynDebug.Assert(child0 != null); RoslynDebug.Assert(child1 != null); int hash; GreenNode?cached = SyntaxNodeCache.TryGetNode( GreenNode.ListKind, child0, child1, out hash ); if (cached != null) { return((WithTwoChildren)cached); } var result = new WithTwoChildren(child0, child1); if (hash >= 0) { SyntaxNodeCache.AddNode(result, hash); } return(result); }
internal static WithTwoChildren List(GreenNode child0, GreenNode child1) { Debug.Assert(child0 != null); Debug.Assert(child1 != null); var result = new WithTwoChildren(child0, child1); return(result); }
internal static WithTwoChildren List(CSharpSyntaxNode child0, CSharpSyntaxNode child1) { Debug.Assert(child0 != null); Debug.Assert(child1 != null); int hash; GreenNode cached = SyntaxNodeCache.TryGetNode((short)SyntaxKind.List, child0, child1, out hash); if (cached != null) return (WithTwoChildren)cached; var result = new WithTwoChildren(child0, child1); if (hash >= 0) { SyntaxNodeCache.AddNode(result, hash); } return result; }
internal static WithTwoChildren List(CSharpSyntaxNode child0, CSharpSyntaxNode child1) { Debug.Assert(child0 != null); Debug.Assert(child1 != null); int hash; GreenNode cached = SyntaxNodeCache.TryGetNode((short)SyntaxKind.List, child0, child1, out hash); if (cached != null) { return((WithTwoChildren)cached); } var result = new WithTwoChildren(child0, child1); if (hash >= 0) { SyntaxNodeCache.AddNode(result, hash); } return(result); }
internal static WithTwoChildren List(SyntaxNode child0, SyntaxNode child1) { var result = new WithTwoChildren(child0, child1); return(result); }
internal static WithTwoChildren List(SyntaxNode child0, SyntaxNode child1) { var result = new WithTwoChildren(child0, child1); return result; }