16 references to Concat
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Operators.cs (1)
3063return (newLength > int.MaxValue) ? ConstantValue.Bad : ConstantValue.CreateFromRope(Rope.Concat(leftValue, rightValue));
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
326finalArguments[^1] = _factory.StringLiteral(ConstantValue.CreateFromRope(Rope.Concat(current, previous)));
Microsoft.CodeAnalysis.UnitTests (14)
Collections\RopeTests.cs (14)
49Assert.Same(rope, Rope.Concat(rope, Rope.Empty)); 50Assert.Same(rope, Rope.Concat(Rope.Empty, rope)); 72Rope c1 = Rope.Concat(r1, Rope.Concat(r2, r3)); 73Rope c2 = Rope.Concat(Rope.Concat(r1, r2), r3); 100Assert.Throws<ArgumentNullException>(() => { Rope.Concat(r, null); }); 101Assert.Throws<ArgumentNullException>(() => { Rope.Concat(null, r); }); 108var r = shortRopes.Aggregate(Rope.Concat); 133r = Rope.Concat(r, r); 134all = Rope.Concat(all, r); 141Assert.Throws<OverflowException>(() => Rope.Concat(all, waferThinMint)); 142Assert.Throws<OverflowException>(() => Rope.Concat(waferThinMint, all)); 143Assert.Throws<OverflowException>(() => Rope.Concat(all, all));