Skip to content

Commit 70b1322

Browse files
author
Kapil Borle
committed
Add a constructor to CorrectionExtent class
1 parent 853c3d8 commit 70b1322

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Engine/Generic/CorrectionExtent.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,21 @@ public CorrectionExtent(
128128

129129
}
130130

131+
public CorrectionExtent(
132+
IScriptExtent violationExtent,
133+
string replacementText,
134+
string filePath)
135+
: this(
136+
violationExtent.StartLineNumber,
137+
violationExtent.EndLineNumber,
138+
violationExtent.StartColumnNumber,
139+
violationExtent.EndColumnNumber,
140+
replacementText,
141+
filePath)
142+
{
143+
144+
}
145+
131146
private void ThrowIfInvalidArguments()
132147
{
133148
ThrowIfNull<string>(text, "text");

0 commit comments

Comments
 (0)