2 implementations of Line
Microsoft.Build (2)
ElementLocation\ElementLocation.cs (1)
48public abstract int Line
ElementLocation\RegistryLocation.cs (1)
57public int Line
32 references to Line
Microsoft.Build (16)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
275location?.Line ?? 0,
BuildCheck\Checks\NoEnvironmentVariablePropertyCheck.cs (3)
114Location.Line == other.Location.Line && 121hashCode = hashCode * 31 + Location.Line.GetHashCode();
BuildEventFileInfo.cs (1)
42: this(location.File, location.Line, location.Column)
Definition\ProjectProperty.cs (2)
127EnvironmentVariableReadEventArgs args = new(Name, EvaluatedValueEscapedInternal, location.File, location.Line, location.Column); 134_location = (location.File, location.Line, location.Column);
ElementLocation\ElementLocation.cs (1)
115if (this.Line != that.Line || this.Column != that.Column)
Evaluation\Profiler\EvaluationProfiler.cs (1)
79return _shouldTrackElements ? new EvaluationFrame(this, CurrentLocation.WithFileLineAndCondition(location.File, location.Line, condition)) : null;
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (4)
300location?.Line ?? 0, 338location?.Line ?? 0, 460location.Line, 479location.Line,
Instance\ProjectPropertyInstance.cs (2)
118EnvironmentVariableReadEventArgs args = new(Name, _escapedValue, location.File, location.Line, location.Column); 125_location = (location.File, location.Line, location.Column);
ProjectErrorUtilities.cs (1)
268throw 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)
43Assert.Equal(65536, location.Line); 56Assert.Equal(0, location.Line); 69Assert.Equal(65536, location.Line); 170Assert.Equal(location.Line, deserializedLocation.Line); 188Assert.Equal(location.Line, deserializedLocation.Line); 201Assert.Equal(65535, location.Line); 246Assert.Equal(65535, location.Line); 259Assert.Equal(0, location.Line); 272Assert.Equal(65535, location.Line); 290Assert.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())