14 references to ForString
Microsoft.CodeAnalysis (3)
Collections\Rope.cs (2)
18
public static readonly Rope Empty =
ForString
("");
51
checked(r1.Length + r2.Length < 32) ?
ForString
(r1.ToString() + r2.ToString()) :
ConstantValueSpecialized.cs (1)
149
_value = Rope.
ForString
(value);
Microsoft.CodeAnalysis.CSharp (1)
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (1)
344
return Rope.
ForString
(constantValue.CharValue.ToString());
Microsoft.CodeAnalysis.UnitTests (10)
Collections\RopeTests.cs (10)
23
private static readonly Rope[] longRopes = longStrings.Select(s => Rope.
ForString
(s)).ToArray();
29
private static readonly Rope[] shortRopes = shortStrings.Select(s => Rope.
ForString
(s)).ToArray();
40
Assert.Equal(r, Rope.
ForString
(string.Empty));
41
Assert.Equal(Rope.
ForString
(string.Empty), r);
59
Assert.Equal(s, Rope.
ForString
(s).ToString());
79
Rope c3 = Rope.
ForString
(s);
92
Assert.Throws<ArgumentNullException>(() => { Rope.
ForString
(null); });
121
var r = Rope.
ForString
("x");
128
Rope r = Rope.
ForString
("x");
140
var waferThinMint = Rope.
ForString
("y");