You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Rubberduck.Parsing/Rewriter/IModuleRewriter.cs
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -10,91 +10,91 @@ public interface IModuleRewriter
10
10
boolIsDirty{get;}
11
11
12
12
/// <summary>
13
-
/// Removes all tokens for specified <see cref="Declaration"/>. Use <see cref="Rewrite"/> method to apply changes.
13
+
/// Removes all tokens for specified <see cref="Declaration"/>. Use <see cref="GetText"/> to get the changed module code.
14
14
/// </summary>
15
15
/// <param name="target">The <see cref="Declaration"/> to remove.</param>
16
16
/// <remarks>Removes a line that would be left empty by the removal of the declaration.</remarks>
17
17
voidRemove(Declarationtarget);
18
18
/// <summary>
19
-
/// Removes all tokens in specified context. Use <see cref="Rewrite"/> method to apply changes.
19
+
/// Removes all tokens in specified context. Use <see cref="GetText"/> to get the changed module code.
20
20
/// </summary>
21
21
/// <param name="target">The <see cref="ParserRuleContext"/> to remove.</param>
22
22
/// <remarks>Removes a line that would be left empty by the removal of the identifier reference token.</remarks>
23
23
voidRemove(ParserRuleContexttarget);
24
24
/// <summary>
25
-
/// Removes all tokens for specified <see cref="IToken"/>. Use <see cref="Rewrite"/> method to apply changes.
25
+
/// Removes all tokens for specified <see cref="IToken"/>. Use <see cref="GetText"/> to get the changed module code.
26
26
/// </summary>
27
27
/// <param name="target">The <see cref="IToken"/> to remove.</param>
28
28
/// <remarks>Removes a line that would be left empty by the removal of the identifier reference token.</remarks>
29
29
voidRemove(ITokentarget);
30
30
/// <summary>
31
-
/// Removes all tokens for specified <see cref="ITerminalNode"/>. Use <see cref="Rewrite"/> method to apply changes.
31
+
/// Removes all tokens for specified <see cref="ITerminalNode"/>. Use <see cref="GetText"/> to get the changed module code.
32
32
/// </summary>
33
33
/// <param name="target">The <see cref="ITerminalNode"/> to remove.</param>
34
34
/// <remarks>Removes a line that would be left empty by the removal of the identifier reference token.</remarks>
35
35
voidRemove(ITerminalNodetarget);
36
36
/// <summary>
37
-
/// Removes all tokens for specified <see cref="IParseTree"/>. Use <see cref="Rewrite"/> method to apply changes.
37
+
/// Removes all tokens for specified <see cref="IParseTree"/>. Use <see cref="GetText"/> to get the changed module code.
38
38
/// </summary>
39
39
/// <param name="target">The <see cref="IParseTree"/> to remove.</param>
40
40
/// <remarks>Removes a line that would be left empty by the removal of the identifier reference token.</remarks>
41
41
voidRemove(IParseTreetarget);
42
42
43
43
/// <summary>
44
-
/// Removes all tokens from the start of the first node to the end of the second node.
44
+
/// Removes all tokens from the start of the first node to the end of the second node. Use <see cref="GetText"/> to get the changed module code.
45
45
/// </summary>
46
46
/// <param name="start">The start index to remove.</param>
47
47
/// <param name="stop">The end index to remove.</param>
48
48
voidRemoveRange(intstart,intstop);
49
49
50
50
/// <summary>
51
-
/// Replaces all tokens for specified <see cref="Declaration"/> with specified content. Use <see cref="Rewrite"/> method to apply changes.
51
+
/// Replaces all tokens for specified <see cref="Declaration"/> with specified content. Use <see cref="GetText"/> to get the changed module code.
52
52
/// </summary>
53
53
/// <param name="target">The <see cref="Declaration"/> to replace.</param>
54
54
/// <param name="content">The literal replacement for the declaration.</param>
55
55
/// <remarks>Useful for adding/removing e.g. access modifiers.</remarks>
56
56
voidReplace(Declarationtarget,stringcontent);
57
57
/// <summary>
58
-
/// Replaces all tokens for specified <see cref="ParserRuleContext"/> with specified content. Use <see cref="Rewrite"/> method to apply changes.
58
+
/// Replaces all tokens for specified <see cref="ParserRuleContext"/> with specified content. Use <see cref="GetText"/> to get the changed module code.
59
59
/// </summary>
60
60
/// <param name="target">The <see cref="ParserRuleContext"/> to replace.</param>
61
61
/// <param name="content">The literal replacement for the expression.</param>
0 commit comments