2 overrides of Length
Microsoft.CodeAnalysis (2)
Collections\Rope.cs (2)
109public override int Length => _value.Length; 119public override int Length { get; }
21 references to Length
Microsoft.CodeAnalysis (13)
Collections\Rope.cs (11)
22public bool IsEmpty => Length == 0; 49r1.Length == 0 ? r2 : 50r2.Length == 0 ? r1 : 51checked(r1.Length + r2.Length < 32) ? ForString(r1.ToString() + r2.ToString()) : 60if (!(obj is Rope other) || Length != other.Length) 62if (Length == 0) 77int result = Length; 125Length = 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)
3062long 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);