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