2 implementations of Line
Microsoft.Build (2)
ElementLocation\ElementLocation.cs (1)
48
public abstract int
Line
ElementLocation\RegistryLocation.cs (1)
57
public int
Line
32 references to Line
Microsoft.Build (16)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
275
location?.
Line
?? 0,
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (3)
114
Location.
Line
== other.Location.
Line
&&
121
hashCode = hashCode * 31 + Location.
Line
.GetHashCode();
BuildEventFileInfo.cs (1)
42
: this(location.File, location.
Line
, location.Column)
Definition\ProjectProperty.cs (2)
127
EnvironmentVariableReadEventArgs args = new(Name, EvaluatedValueEscapedInternal, location.File, location.
Line
, location.Column);
134
_location = (location.File, location.
Line
, location.Column);
ElementLocation\ElementLocation.cs (1)
115
if (this.Line != that.
Line
|| this.Column != that.Column)
Evaluation\Profiler\EvaluationProfiler.cs (1)
79
return _shouldTrackElements ? new EvaluationFrame(this, CurrentLocation.WithFileLineAndCondition(location.File, location.
Line
, condition)) : null;
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (4)
300
location?.
Line
?? 0,
338
location?.
Line
?? 0,
460
location.
Line
,
479
location.
Line
,
Instance\ProjectPropertyInstance.cs (2)
118
EnvironmentVariableReadEventArgs args = new(Name, _escapedValue, location.File, location.
Line
, location.Column);
125
_location = (location.File, location.
Line
, location.Column);
ProjectErrorUtilities.cs (1)
268
throw new InvalidProjectFileException(elementLocation.File, elementLocation.
Line
, elementLocation.Column, 0 /* Unknown end line */, 0 /* Unknown end column */, message, errorSubCategory, errorCode, helpKeyword);
Microsoft.Build.Engine.UnitTests (13)
Construction\ElementLocation_Tests.cs (13)
43
Assert.Equal(65536, location.
Line
);
56
Assert.Equal(0, location.
Line
);
69
Assert.Equal(65536, location.
Line
);
170
Assert.Equal(location.
Line
, deserializedLocation.
Line
);
188
Assert.Equal(location.
Line
, deserializedLocation.
Line
);
201
Assert.Equal(65535, location.
Line
);
246
Assert.Equal(65535, location.
Line
);
259
Assert.Equal(0, location.
Line
);
272
Assert.Equal(65535, location.
Line
);
290
Assert.Equal(location.
Line
, deserializedLocation.
Line
);
Microsoft.Build.Framework (3)
BuildCheck\BuildCheckEventArgs.cs (3)
163
: base(code: result.Code, file: result.Location.File, lineNumber: result.Location.
Line
, columnNumber: result.Location.Column, message: result.FormatMessage()) =>
186
: base(code: result.Code, file: result.Location.File, lineNumber: result.Location.
Line
, columnNumber: result.Location.Column, message: result.FormatMessage())
209
: base(code: result.Code, file: result.Location.File, lineNumber: result.Location.
Line
, columnNumber: result.Location.Column, message: result.FormatMessage())