Skip to content

Commit c06bf1f

Browse files
author
Kapil Borle
committed
Add a constructor to CorrectionExtent class
1 parent da59328 commit c06bf1f

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
@@ -111,7 +111,22 @@ public CorrectionExtent(
111111
ThrowIfInvalidArguments();
112112
}
113113

114+
public CorrectionExtent(
115+
IScriptExtent violationExtent,
116+
string replacementText,
117+
string filePath,
118+
string description)
119+
: this(
120+
violationExtent.StartLineNumber,
121+
violationExtent.EndLineNumber,
122+
violationExtent.StartColumnNumber,
123+
violationExtent.EndColumnNumber,
124+
replacementText,
125+
filePath,
126+
description)
127+
{
114128

129+
}
115130

116131
private void ThrowIfInvalidArguments()
117132
{

0 commit comments

Comments
 (0)