42 instantiations of SourceChange
Microsoft.AspNetCore.Razor.Language.Legacy.UnitTests (8)
Legacy\ImplicitExpressionEditHandlerTest.cs (8)
20
var change = new
SourceChange
(new SourceSpan(6, 1), string.Empty);
34
var change = new
SourceChange
(new SourceSpan(5, 1), string.Empty);
48
var change = new
SourceChange
(new SourceSpan(5, 2), string.Empty);
62
var change = new
SourceChange
(new SourceSpan(3, 3), string.Empty);
77
var change = new
SourceChange
(0, 1, changeText);
409
var change = new
SourceChange
(new SourceSpan(3, 0), text);
423
var change = new
SourceChange
(new SourceSpan(6, 0), " World");
437
var change = new
SourceChange
(new SourceSpan(6, 0), " World");
Microsoft.AspNetCore.Razor.Language.UnitTests (33)
DirectiveTokenEditHandlerTest.cs (2)
32
var sourceChange = new
SourceChange
(index, length, newText);
56
var sourceChange = new
SourceChange
(index, length, newText);
Legacy\CodeBlockEditHandlerTest.cs (19)
21
var change = new
SourceChange
(new SourceSpan(0, 5), "H3ll0");
35
var change = new
SourceChange
(new SourceSpan(0, 5), "H3ll0");
49
var change = new
SourceChange
(new SourceSpan(6, 1), "!");
63
var change = new
SourceChange
(new SourceSpan(6, 1), "<");
77
var change = new
SourceChange
(new SourceSpan(6, 1), "@*");
91
var change = new
SourceChange
(new SourceSpan(0, 0), "{");
105
var change = new
SourceChange
(new SourceSpan(0, 5), string.Empty);
119
var change = new
SourceChange
(new SourceSpan(0, 5), string.Empty);
133
var change = new
SourceChange
(new SourceSpan(5, 3), string.Empty);
147
var change = new
SourceChange
(new SourceSpan(0, 0), "hello");
161
var change = new
SourceChange
(new SourceSpan(0, 5), string.Empty);
175
var change = new
SourceChange
(new SourceSpan(5, 7), string.Empty);
188
var change = new
SourceChange
(new SourceSpan(0, 0), "hello");
201
var change = new
SourceChange
(new SourceSpan(0, 0), "{");
214
var change = new
SourceChange
(new SourceSpan(0, 0), "@");
227
var change = new
SourceChange
(new SourceSpan(0, 0), "<");
240
var change = new
SourceChange
(new SourceSpan(0, 2), string.Empty);
259
var change = new
SourceChange
(new SourceSpan(0, 0), content);
274
var change = new
SourceChange
(new SourceSpan(0, 0), content);
SourceChangeTest.cs (12)
19
var change = new
SourceChange
(15, 7, "Hello");
34
var change = new
SourceChange
(3, 5, string.Empty);
44
var change = new
SourceChange
(3, 0, "Hello");
54
var change = new
SourceChange
(3, 5, "Hello");
66
var change = new
SourceChange
(2, 2, string.Empty);
81
var change = new
SourceChange
(2, 0, "heyo");
96
var change = new
SourceChange
(2, 2, "heyo");
115
var change = new
SourceChange
(2, 2, "heyo");
134
var change = new
SourceChange
(15, 2, "heyo");
153
var change = new
SourceChange
(12, 2, "heyo");
172
var change = new
SourceChange
(15, 2, "heyo");
191
var change = new
SourceChange
(15, 0, "heyo");
Microsoft.CodeAnalysis.Razor.Compiler (1)
CSharp\TextChangeExtensions.cs (1)
13
return new
SourceChange
(textChange.Span.AsSourceSpan(), textChange.NewText);
89 references to SourceChange
Microsoft.AspNetCore.Razor.Language.Legacy.UnitTests (8)
Legacy\ImplicitExpressionEditHandlerTest.cs (8)
20
var
change = new SourceChange(new SourceSpan(6, 1), string.Empty);
34
var
change = new SourceChange(new SourceSpan(5, 1), string.Empty);
48
var
change = new SourceChange(new SourceSpan(5, 2), string.Empty);
62
var
change = new SourceChange(new SourceSpan(3, 3), string.Empty);
77
var
change = new SourceChange(0, 1, changeText);
409
var
change = new SourceChange(new SourceSpan(3, 0), text);
423
var
change = new SourceChange(new SourceSpan(6, 0), " World");
437
var
change = new SourceChange(new SourceSpan(6, 0), " World");
Microsoft.AspNetCore.Razor.Language.UnitTests (34)
DirectiveTokenEditHandlerTest.cs (3)
32
var
sourceChange = new SourceChange(index, length, newText);
56
var
sourceChange = new SourceChange(index, length, newText);
80
public new PartialParseResultInternal CanAcceptChange(SyntaxNode target,
SourceChange
change)
Legacy\CodeBlockEditHandlerTest.cs (19)
21
var
change = new SourceChange(new SourceSpan(0, 5), "H3ll0");
35
var
change = new SourceChange(new SourceSpan(0, 5), "H3ll0");
49
var
change = new SourceChange(new SourceSpan(6, 1), "!");
63
var
change = new SourceChange(new SourceSpan(6, 1), "<");
77
var
change = new SourceChange(new SourceSpan(6, 1), "@*");
91
var
change = new SourceChange(new SourceSpan(0, 0), "{");
105
var
change = new SourceChange(new SourceSpan(0, 5), string.Empty);
119
var
change = new SourceChange(new SourceSpan(0, 5), string.Empty);
133
var
change = new SourceChange(new SourceSpan(5, 3), string.Empty);
147
var
change = new SourceChange(new SourceSpan(0, 0), "hello");
161
var
change = new SourceChange(new SourceSpan(0, 5), string.Empty);
175
var
change = new SourceChange(new SourceSpan(5, 7), string.Empty);
188
var
change = new SourceChange(new SourceSpan(0, 0), "hello");
201
var
change = new SourceChange(new SourceSpan(0, 0), "{");
214
var
change = new SourceChange(new SourceSpan(0, 0), "@");
227
var
change = new SourceChange(new SourceSpan(0, 0), "<");
240
var
change = new SourceChange(new SourceSpan(0, 2), string.Empty);
259
var
change = new SourceChange(new SourceSpan(0, 0), content);
274
var
change = new SourceChange(new SourceSpan(0, 0), content);
SourceChangeTest.cs (12)
19
var
change = new SourceChange(15, 7, "Hello");
34
var
change = new SourceChange(3, 5, string.Empty);
44
var
change = new SourceChange(3, 0, "Hello");
54
var
change = new SourceChange(3, 5, "Hello");
66
var
change = new SourceChange(2, 2, string.Empty);
81
var
change = new SourceChange(2, 0, "heyo");
96
var
change = new SourceChange(2, 2, "heyo");
115
var
change = new SourceChange(2, 2, "heyo");
134
var
change = new SourceChange(15, 2, "heyo");
153
var
change = new SourceChange(12, 2, "heyo");
172
var
change = new SourceChange(15, 2, "heyo");
191
var
change = new SourceChange(15, 0, "heyo");
Microsoft.CodeAnalysis.Razor.Compiler (47)
CSharp\TextChangeExtensions.cs (1)
11
public static
SourceChange
AsSourceChange(this TextChange textChange)
Language\DirectiveTokenEditHandler.cs (1)
22
protected override PartialParseResultInternal CanAcceptChange(SyntaxNode target,
SourceChange
change)
Language\Legacy\AutoCompleteEditHandler.cs (1)
39
protected override PartialParseResultInternal CanAcceptChange(SyntaxNode target,
SourceChange
change)
Language\Legacy\CodeBlockEditHandler.cs (6)
22
protected override PartialParseResultInternal CanAcceptChange(SyntaxNode target,
SourceChange
change)
43
internal static bool IsAcceptableReplacement(SyntaxNode target,
SourceChange
change)
64
internal static bool IsAcceptableDeletion(SyntaxNode target,
SourceChange
change)
80
internal static bool ModifiesInvalidContent(SyntaxNode target,
SourceChange
change)
93
internal static bool IsAcceptableInsertion(
SourceChange
change)
109
internal static bool ContainsInvalidContent(
SourceChange
change)
Language\Legacy\ImplicitExpressionEditHandler.cs (23)
56
protected override PartialParseResultInternal CanAcceptChange(SyntaxNode target,
SourceChange
change)
125
private static bool IsDotlessCommitInsertion(SyntaxNode target,
SourceChange
change)
131
private static bool IsNewDotlessCommitInsertion(SyntaxNode target,
SourceChange
change)
144
private static bool IsSecondaryDotlessCommitInsertion(SyntaxNode target,
SourceChange
change)
154
private static bool IsAcceptableReplace(SyntaxNode target,
SourceChange
change)
160
private bool IsAcceptableIdentifierReplacement(SyntaxNode target,
SourceChange
change)
211
private static bool IsAcceptableDeletion(SyntaxNode target,
SourceChange
change)
218
private static bool IsAcceptableInsertion(SyntaxNode target,
SourceChange
change)
226
internal static bool IsAcceptableDeletionInBalancedParenthesis(SyntaxNode target,
SourceChange
change)
256
internal static bool IsAcceptableInsertionInBalancedParenthesis(SyntaxNode target,
SourceChange
change)
415
private static bool IsAcceptableEndInsertion(SyntaxNode target,
SourceChange
change)
425
private static bool IsAcceptableInnerInsertion(SyntaxNode target,
SourceChange
change)
437
private static bool RemainingIsWhitespace(SyntaxNode target,
SourceChange
change)
453
private PartialParseResultInternal HandleReplacement(SyntaxNode target,
SourceChange
change)
474
private PartialParseResultInternal HandleDeletion(SyntaxNode target, char previousChar,
SourceChange
change)
497
private PartialParseResultInternal HandleInsertion(SyntaxNode target, char previousChar,
SourceChange
change)
518
private PartialParseResultInternal HandleInsertionAfterIdPart(SyntaxNode target,
SourceChange
change)
547
private PartialParseResultInternal HandleInsertionAfterOpenParenthesis(SyntaxNode target,
SourceChange
change)
557
private PartialParseResultInternal HandleInsertionAfterDot(SyntaxNode target,
SourceChange
change)
567
private PartialParseResultInternal TryAcceptChange(SyntaxNode target,
SourceChange
change, PartialParseResultInternal acceptResult = PartialParseResultInternal.Accepted)
578
private static bool IsDoubleParenthesisInsertion(
SourceChange
change)
586
private static bool IsOpenParenthesisInsertion(
SourceChange
change)
594
private static bool IsCloseParenthesisInsertion(
SourceChange
change)
Language\Legacy\LegacySyntaxNodeExtensions.cs (3)
69
public static SyntaxNode? LocateOwner(this SyntaxNode node,
SourceChange
change)
102
static SyntaxNode? LocateOwnerForSyntaxList(in SyntaxList<RazorSyntaxNode> list,
SourceChange
change)
115
static SyntaxNode? LocateOwnerForChildSyntaxList(in ChildSyntaxList list,
SourceChange
change)
Language\Legacy\SpanEditHandler.cs (9)
55
public virtual EditResult ApplyChange(SyntaxNode target,
SourceChange
change)
60
public virtual EditResult ApplyChange(SyntaxNode target,
SourceChange
change, bool force)
76
public virtual bool OwnsChange(SyntaxNode target,
SourceChange
change)
84
protected virtual PartialParseResultInternal CanAcceptChange(SyntaxNode target,
SourceChange
change)
89
protected virtual SyntaxNode UpdateSpan(SyntaxNode target,
SourceChange
change)
112
protected internal static bool IsAtEndOfFirstLine(SyntaxNode target,
SourceChange
change)
121
protected internal static bool IsEndDeletion(SyntaxNode target,
SourceChange
change)
129
protected internal static bool IsEndReplace(SyntaxNode target,
SourceChange
change)
134
protected internal static bool IsAtEndOfSpan(SyntaxNode target,
SourceChange
change)
Language\SourceChange.cs (3)
12
public sealed class SourceChange : IEquatable<
SourceChange
>
114
public bool Equals(
SourceChange
other)
124
return Equals(obj as
SourceChange
);