예제 #1
0
 internal static ConstantValue CreateFromRope(Rope value)
 {
     RoslynDebug.Assert(value != null);
     return(new ConstantValueString(value));
 }
예제 #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;
 }
예제 #3
0
파일: Rope.cs 프로젝트: zuvys/roslyn
 public ConcatRope(Rope left, Rope right)
 {
     _left  = left;
     _right = right;
     Length = checked (left.Length + right.Length);
 }
예제 #4
0
 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);
 }