74 references to EmptyLocation
CustomCheck (2)
Check1.cs (1)
48ElementLocation.EmptyLocation,
Check2.cs (1)
37ElementLocation.EmptyLocation,
CustomCheck2 (1)
Check3.cs (1)
37ElementLocation.EmptyLocation,
ErrorCustomCheck (2)
ErrorOnInitializeCheck.cs (1)
39ElementLocation.EmptyLocation,
ErrorWhenRegisteringActions.cs (1)
39ElementLocation.EmptyLocation,
Microsoft.Build (37)
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (1)
903new BuildEventFileInfo(Construction.ElementLocation.EmptyLocation));
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
524string msbuildArchitecture = expander.ExpandIntoStringAndUnescape(_taskNode.MSBuildArchitecture ?? String.Empty, ExpanderOptions.ExpandAll, _taskNode.MSBuildArchitectureLocation ?? ElementLocation.EmptyLocation); 525string msbuildRuntime = expander.ExpandIntoStringAndUnescape(_taskNode.MSBuildRuntime ?? String.Empty, ExpanderOptions.ExpandAll, _taskNode.MSBuildRuntimeLocation ?? ElementLocation.EmptyLocation);
BuildCheck\Checks\CopyAlwaysCheck.cs (1)
83ElementLocation.EmptyLocation,
BuildCheck\Checks\EmbeddedResourceCheck.cs (1)
78ElementLocation.EmptyLocation,
BuildCheck\Checks\PreferProjectReferenceCheck.cs (2)
74ElementLocation.EmptyLocation, 102ElementLocation.EmptyLocation,
BuildCheck\Checks\SharedOutputPathCheck.cs (1)
80ElementLocation.EmptyLocation,
BuildCheck\Checks\TargetFrameworkConfusionCheck.cs (1)
56ElementLocation.EmptyLocation,
BuildEventFileInfo.cs (1)
17internal static BuildEventFileInfo Empty = new BuildEventFileInfo(ElementLocation.EmptyLocation);
Construction\ProjectRootElement.cs (1)
642public ElementLocation ProjectFileLocation => Link != null ? RootLink.ProjectFileLocation : _projectFileLocation ?? ElementLocation.EmptyLocation;
ElementLocation\ElementLocation.cs (1)
192return EmptyLocation;
Instance\ProjectInstance.cs (11)
1911new PropertyReadInfo(name, ElementLocation.EmptyLocation, false, PropertyReadContext.Other)); 1932_loggingContext?.ProcessPropertyWrite(new PropertyWriteInfo(name, false, ElementLocation.EmptyLocation)); 2825String.IsNullOrEmpty(condition) ? null : ElementLocation.EmptyLocation, 2826String.IsNullOrEmpty(inputs) ? null : ElementLocation.EmptyLocation, 2827String.IsNullOrEmpty(outputs) ? null : ElementLocation.EmptyLocation, 2828String.IsNullOrEmpty(returns) ? null : ElementLocation.EmptyLocation, 2829String.IsNullOrEmpty(keepDuplicateOutputs) ? null : ElementLocation.EmptyLocation, 2830String.IsNullOrEmpty(dependsOnTargets) ? null : ElementLocation.EmptyLocation, 2831String.IsNullOrEmpty(beforeTargets) ? null : ElementLocation.EmptyLocation, 2832String.IsNullOrEmpty(afterTargets) ? null : ElementLocation.EmptyLocation, 3089_projectFileLocation = xml.ProjectFileLocation ?? ElementLocation.EmptyLocation;
Instance\ProjectItemInstance.cs (1)
1340return expander.ExpandIntoStringLeaveEscaped(metadatum.EvaluatedValueEscaped, ExpanderOptions.ExpandBuiltInMetadata, ElementLocation.EmptyLocation);
Instance\ProjectTaskInstance.cs (13)
143condition == string.Empty ? null : ElementLocation.EmptyLocation, 144continueOnError == string.Empty ? null : ElementLocation.EmptyLocation, 145msbuildRuntime == string.Empty ? null : ElementLocation.EmptyLocation, 146msbuildArchitecture == string.Empty ? null : ElementLocation.EmptyLocation) 329_parameters[parameterName] = (unevaluatedValue, ElementLocation.EmptyLocation); 342_outputs.Add(new ProjectTaskOutputItemInstance(itemName, taskOutputParameterName, condition ?? String.Empty, ElementLocation.EmptyLocation, ElementLocation.EmptyLocation, ElementLocation.EmptyLocation, condition == null ? null : ElementLocation.EmptyLocation)); 355_outputs.Add(new ProjectTaskOutputPropertyInstance(propertyName, taskOutputParameterName, condition ?? String.Empty, ElementLocation.EmptyLocation, ElementLocation.EmptyLocation, ElementLocation.EmptyLocation, condition == null ? null : ElementLocation.EmptyLocation));
Microsoft.Build.BuildCheck.UnitTests (7)
BuildCheckManagerProviderTests.cs (1)
124ElementLocation.EmptyLocation,
DoubleWritesAnalyzer_Tests.cs (1)
35Construction.ElementLocation.EmptyLocation,
TestAssets\CustomCheck\Check1.cs (1)
48ElementLocation.EmptyLocation,
TestAssets\CustomCheck\Check2.cs (1)
37ElementLocation.EmptyLocation,
TestAssets\CustomCheck2\Check3.cs (1)
37ElementLocation.EmptyLocation,
TestAssets\ErrorCustomCheck\ErrorOnInitializeCheck.cs (1)
39ElementLocation.EmptyLocation,
TestAssets\ErrorCustomCheck\ErrorWhenRegisteringActions.cs (1)
39ElementLocation.EmptyLocation,
Microsoft.Build.Engine.UnitTests (25)
BackEnd\BuildRequestConfiguration_Tests.cs (1)
574referencePath = project.ExpandPropertyValueBestEffortLeaveEscaped(referencePath, ElementLocation.EmptyLocation);
BackEnd\SdkResolverLoader_Tests.cs (3)
139sdkResolverLoader.LoadAllResolvers(ElementLocation.EmptyLocation); 171sdkResolverLoader.LoadAllResolvers(ElementLocation.EmptyLocation); 202sdkResolverLoader.LoadAllResolvers(ElementLocation.EmptyLocation);
Construction\ElementLocation_Tests.cs (1)
181IElementLocation location = ElementLocation.EmptyLocation;
Evaluation\ProjectSdkImplicitImport_Tests.cs (1)
533importingElement.SdkLocation.ShouldBe(ElementLocation.EmptyLocation);
ExpressionTree_Tests.cs (5)
109tree = p.Parse(command, ParserOptions.AllowAll, ElementLocation.EmptyLocation); 118ElementLocation.EmptyLocation, 341ElementLocation.EmptyLocation, 450ElementLocation.EmptyLocation, 486ElementLocation.EmptyLocation,
ExpressionTreeExpression_Tests.cs (6)
436GenericExpressionNode tree = p.Parse(expression, ParserOptions.AllowAll, ElementLocation.EmptyLocation); 444ElementLocation.EmptyLocation, 460GenericExpressionNode tree = p.Parse(expression, ParserOptions.AllowAll, ElementLocation.EmptyLocation); 468ElementLocation.EmptyLocation, 491var tree = p.Parse(expression, ParserOptions.AllowAll, ElementLocation.EmptyLocation); 500ElementLocation.EmptyLocation,
Instance\ProjectInstance_Internal_Tests.cs (8)
801targetInstance.ConditionLocation.ShouldBe(ElementLocation.EmptyLocation); 802targetInstance.InputsLocation.ShouldBe(ElementLocation.EmptyLocation); 803targetInstance.OutputsLocation.ShouldBe(ElementLocation.EmptyLocation); 804targetInstance.ReturnsLocation.ShouldBe(ElementLocation.EmptyLocation); 805targetInstance.KeepDuplicateOutputsLocation.ShouldBe(ElementLocation.EmptyLocation); 806targetInstance.DependsOnTargetsLocation.ShouldBe(ElementLocation.EmptyLocation); 807targetInstance.BeforeTargetsLocation.ShouldBe(ElementLocation.EmptyLocation); 808targetInstance.AfterTargetsLocation.ShouldBe(ElementLocation.EmptyLocation);