2 overrides of Length
Microsoft.CodeAnalysis (2)
Collections\Rope.cs (2)
108public override int Length => _value.Length; 118public override int Length { get; }
22 references to Length
Microsoft.CodeAnalysis (12)
Collections\Rope.cs (10)
48r1.Length == 0 ? r2 : 49r2.Length == 0 ? r1 : 50checked(r1.Length + r2.Length < 32) ? ForString(r1.ToString() + r2.ToString()) : 59if (!(obj is Rope other) || Length != other.Length) 61if (Length == 0) 76int result = Length; 124Length = checked(left.Length + right.Length);
ConstantValueSpecialized.cs (2)
217int formatLength = RopeValue.Length; 223return formatLength < RopeValue.Length ?
Microsoft.CodeAnalysis.CSharp (2)
Binder\Binder_Operators.cs (2)
2183long newLength = (long)leftValue.Length + (long)rightValue.Length;
Microsoft.CodeAnalysis.UnitTests (6)
Collections\RopeTests.cs (6)
38Assert.Equal(0, r.Length); 110Assert.Equal(r.Length, concatted.Length); 130Assert.Equal(1, all.Length); 135Assert.Equal(1 << i, r.Length); 136Assert.Equal((1 << (i + 1)) - 1, all.Length); 139Assert.Equal(int.MaxValue, all.Length);
Microsoft.CodeAnalysis.VisualBasic (2)
Semantics\Operators.vb (2)
1520Dim newLength = CLng(leftValue.Length) + CLng(rightValue.Length)