14 references to ForString
Microsoft.CodeAnalysis (3)
Collections\Rope.cs (2)
18public static readonly Rope Empty = ForString(""); 51checked(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)
344return Rope.ForString(constantValue.CharValue.ToString());
Microsoft.CodeAnalysis.UnitTests (10)
Collections\RopeTests.cs (10)
23private static readonly Rope[] longRopes = longStrings.Select(s => Rope.ForString(s)).ToArray(); 29private static readonly Rope[] shortRopes = shortStrings.Select(s => Rope.ForString(s)).ToArray(); 40Assert.Equal(r, Rope.ForString(string.Empty)); 41Assert.Equal(Rope.ForString(string.Empty), r); 59Assert.Equal(s, Rope.ForString(s).ToString()); 79Rope c3 = Rope.ForString(s); 92Assert.Throws<ArgumentNullException>(() => { Rope.ForString(null); }); 121var r = Rope.ForString("x"); 128Rope r = Rope.ForString("x"); 140var waferThinMint = Rope.ForString("y");