Esempio n. 1
0
 internal static ConstantValue CreateFromRope(Rope value)
 {
     RoslynDebug.Assert(value != null);
     return(new ConstantValueString(value));
 }
Esempio n. 2
0
 public ConstantValueString(Rope value)
 {
     // we should have just one Null regardless string or object.
     System.Diagnostics.Debug.Assert(value != null, "null strings should be represented as Null constant.");
     _value = value;
 }
Esempio n. 3
0
File: Rope.cs Progetto: zuvys/roslyn
 public ConcatRope(Rope left, Rope right)
 {
     _left  = left;
     _right = right;
     Length = checked (left.Length + right.Length);
 }
 public ConstantValueString(string value)
 {
     // we should have just one Null regardless string or object.
     RoslynDebug.Assert(value != null, "null strings should be represented as Null constant.");
     _value = Rope.ForString(value);
 }