2 overrides of Length
Microsoft.CodeAnalysis (2)
Collections\Rope.cs (2)
108
public override int
Length
=> _value.Length;
118
public override int
Length
{ get; }
22 references to Length
Microsoft.CodeAnalysis (12)
Collections\Rope.cs (10)
48
r1.
Length
== 0 ? r2 :
49
r2.
Length
== 0 ? r1 :
50
checked(r1.
Length
+ r2.
Length
< 32) ? ForString(r1.ToString() + r2.ToString()) :
59
if (!(obj is Rope other) ||
Length
!= other.
Length
)
61
if (
Length
== 0)
76
int result =
Length
;
124
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)
2183
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
);
Microsoft.CodeAnalysis.VisualBasic (2)
Semantics\Operators.vb (2)
1520
Dim newLength = CLng(leftValue.
Length
) + CLng(rightValue.
Length
)