2 overrides of Length
Microsoft.CodeAnalysis (2)
Collections\Rope.cs (2)
109
public override int
Length
=> _value.Length;
119
public override int
Length
{ get; }
21 references to Length
Microsoft.CodeAnalysis (13)
Collections\Rope.cs (11)
22
public bool IsEmpty =>
Length
== 0;
49
r1.
Length
== 0 ? r2 :
50
r2.
Length
== 0 ? r1 :
51
checked(r1.
Length
+ r2.
Length
< 32) ? ForString(r1.ToString() + r2.ToString()) :
60
if (!(obj is Rope other) ||
Length
!= other.
Length
)
62
if (
Length
== 0)
77
int result =
Length
;
125
Length = checked(left.
Length
+ right.
Length
);
ConstantValueSpecialized.cs (2)
217
int formatLength = RopeValue.
Length
;
223
return formatLength < RopeValue.
Length
?
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Operators.cs (2)
3062
long newLength = (long)leftValue.
Length
+ (long)rightValue.
Length
;
Microsoft.CodeAnalysis.UnitTests (6)
Collections\RopeTests.cs (6)
38
Assert.Equal(0, r.
Length
);
110
Assert.Equal(r.
Length
, concatted.Length);
130
Assert.Equal(1, all.
Length
);
135
Assert.Equal(1 << i, r.
Length
);
136
Assert.Equal((1 << (i + 1)) - 1, all.
Length
);
139
Assert.Equal(int.MaxValue, all.
Length
);