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