Exemple #1
0
 internal static ConstantValue CreateFromRope(Rope value)
 {
     RoslynDebug.Assert(value != null);
     return(new ConstantValueString(value));
 }
 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;
 }
Exemple #3
0
 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);
 }