1 write to Length
Microsoft.CodeAnalysis.Razor.Workspaces (1)
TextDifferencing\TextDiffer.DiffEdit.cs (1)
22Length = length;
11 references to Length
Microsoft.CodeAnalysis.Razor.Workspaces (11)
TextDifferencing\SourceTextDiffer.CharDiffer.cs (6)
117if (edit.Length > 1) 119var buffer = EnsureBuffer(ref _appendBuffer, edit.Length); 120NewText.CopyTo(newTextPosition, buffer, 0, edit.Length); 122builder.Append(buffer, 0, edit.Length); 124else if (edit.Length == 1) 132return edit.Position + edit.Length;
TextDifferencing\SourceTextDiffer.TextSpanDiffer.cs (2)
102for (var i = 0; i < edit.Length; i++) 118return _oldSpans[edit.Position + edit.Length - 1].End;
TextDifferencing\TextDiffer.DiffEdit.cs (3)
36builder.Append($", Length = {Length}"); 42=> (kind, position, newTextPosition, length) = (Kind, Position, NewTextPosition, Length); 51=> new(Kind, positionOffset + Position, newTextPositionOffset + NewTextPosition, Length);