2 implementations of IElementLocation
Microsoft.Build (2)
ElementLocation\ElementLocation.cs (1)
23
public abstract class ElementLocation :
IElementLocation
, ITranslatable, IImmutable
ElementLocation\RegistryLocation.cs (1)
21
internal class RegistryLocation :
IElementLocation
, ITranslatable
165 references to IElementLocation
Microsoft.Build (141)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
264
IElementLocation
location = null)
BackEnd\Shared\TargetResult.cs (1)
206
internal
IElementLocation
TargetLocation { get; set; }
BuildCheck\Infrastructure\BuildEventsProcessor.cs (1)
105
internal void ProcessEnvironmentVariableReadEventArgs(ICheckContext checkContext, string projectPath, string envVarKey, string envVarValue,
IElementLocation
elementLocation)
BuildEventFileInfo.cs (1)
41
internal BuildEventFileInfo(
IElementLocation
location)
Construction\ProjectMetadataElement.cs (1)
147
internal static void ValidateValidMetadataAsAttributeName(string name, string parentName,
IElementLocation
parentLocation)
Construction\ProjectRootElement.cs (1)
1942
private static IEnumerable<SdkReference> ParseSdks(string sdks,
IElementLocation
sdkLocation)
Definition\Project.cs (1)
2800
ProvenanceResult SingleItemSpecProvenance(string itemSpec,
IElementLocation
elementLocation, Operation operation)
Definition\ProjectProperty.cs (1)
123
string IProperty.GetEvaluatedValueEscaped(
IElementLocation
location)
Definition\ToolsetLocalReader.cs (1)
16
private readonly
IElementLocation
_sourceLocation = new RegistryLocation("ToolsetLocalReader");
Definition\ToolsetPropertyDefinition.cs (3)
31
private
IElementLocation
_source;
39
public ToolsetPropertyDefinition(string name, string value,
IElementLocation
source)
85
public
IElementLocation
Source
ElementLocation\ElementLocation.cs (2)
108
IElementLocation
that = obj as
IElementLocation
;
Evaluation\Evaluator.cs (2)
1772
static string EvaluateProperty(string value,
IElementLocation
location,
1796
IElementLocation
sdkReferenceOrigin = importElement.SdkLocation;
Evaluation\Expander.cs (51)
473
internal string ExpandIntoStringAndUnescape(string expression, ExpanderOptions options,
IElementLocation
elementLocation)
487
internal string ExpandIntoStringLeaveEscaped(string expression, ExpanderOptions options,
IElementLocation
elementLocation)
508
internal object ExpandPropertiesLeaveTypedAndEscaped(string expression, ExpanderOptions options,
IElementLocation
elementLocation)
527
internal SemiColonTokenizer ExpandIntoStringListLeaveEscaped(string expression, ExpanderOptions options,
IElementLocation
elementLocation)
540
internal IList<TaskItem> ExpandIntoTaskItemsLeaveEscaped(string expression, ExpanderOptions options,
IElementLocation
elementLocation)
555
internal IList<T> ExpandIntoItemsLeaveEscaped<T>(string expression, IItemFactory<I, T> itemFactory, ExpanderOptions options,
IElementLocation
elementLocation)
628
internal IList<T> ExpandSingleItemVectorExpressionIntoItems<T>(string expression, IItemFactory<I, T> itemFactory, ExpanderOptions options, bool includeNullItems, out bool isTransformExpression,
IElementLocation
elementLocation)
643
string expression, ExpanderOptions options,
IElementLocation
elementLocation)
650
ExpanderOptions options, bool includeNullEntries, out bool isTransformExpression,
IElementLocation
elementLocation)
660
IElementLocation
elementLocation,
823
private static string[] ExtractFunctionArguments(
IElementLocation
elementLocation, string expressionFunction, ReadOnlyMemory<char> argumentsMemory)
927
internal static string ExpandMetadataLeaveEscaped(string expression, IMetadataTable metadata, ExpanderOptions options,
IElementLocation
elementLocation, LoggingContext loggingContext = null)
1068
private
IElementLocation
_elementLocation;
1078
IElementLocation
elementLocation,
1178
IElementLocation
elementLocation,
1214
IElementLocation
elementLocation,
1377
IElementLocation
elementLocation,
1574
private static object LookupProperty(IPropertyProvider<T> properties, string propertyName,
IElementLocation
elementLocation, PropertiesUseTracker propertiesUseTracker)
1582
private static object LookupProperty(IPropertyProvider<T> properties, string propertyName, int startIndex, int endIndex,
IElementLocation
elementLocation, PropertiesUseTracker propertiesUseTracker)
1630
private static object ExpandMSBuildThisFileProperty(string propertyName,
IElementLocation
elementLocation)
1684
private static string ExpandRegistryValue(string registryExpression,
IElementLocation
elementLocation)
1869
IElementLocation
elementLocation,
2018
bool includeNullEntries, out bool isTransformExpression,
IElementLocation
elementLocation)
2035
string expression, ExpanderOptions options,
IElementLocation
elementLocation)
2071
ExpanderOptions options, bool includeNullEntries, out bool isTransformExpression,
IElementLocation
elementLocation)
2186
IElementLocation
elementLocation,
2268
internal static string ExpandItemVectorsIntoString<T>(Expander<P, I> expander, string expression, IItemProvider<T> items, ExpanderOptions options,
IElementLocation
elementLocation)
2326
IElementLocation
elementLocation,
2477
internal static void ItemSpecModifierFunction(
IElementLocation
elementLocation, bool includeNullEntries, string functionName, List<KeyValuePair<string, S>> itemsOfType, string[] arguments, List<KeyValuePair<string, S>> transformedItems)
2525
internal static void Exists(
IElementLocation
elementLocation, string functionName, List<KeyValuePair<string, S>> itemsOfType, string[] arguments, List<KeyValuePair<string, S>> transformedItems)
2572
internal static void Combine(
IElementLocation
elementLocation, string functionName, List<KeyValuePair<string, S>> itemsOfType, string[] arguments, List<KeyValuePair<string, S>> transformedItems)
2596
internal static void GetPathsOfAllDirectoriesAbove(
IElementLocation
elementLocation, string functionName, List<KeyValuePair<string, S>> itemsOfType, string[] arguments, List<KeyValuePair<string, S>> transformedItems)
2672
internal static void DirectoryName(
IElementLocation
elementLocation, bool includeNullEntries, string functionName, List<KeyValuePair<string, S>> itemsOfType, string[] arguments, List<KeyValuePair<string, S>> transformedItems)
2739
internal static void Metadata(
IElementLocation
elementLocation, bool includeNullEntries, string functionName, List<KeyValuePair<string, S>> itemsOfType, string[] arguments, List<KeyValuePair<string, S>> transformedItems)
2793
internal static void DistinctWithCase(
IElementLocation
elementLocation, string functionName, List<KeyValuePair<string, S>> itemsOfType, string[] arguments, List<KeyValuePair<string, S>> transformedItems)
2802
internal static void Distinct(
IElementLocation
elementLocation, string functionName, List<KeyValuePair<string, S>> itemsOfType, string[] arguments, List<KeyValuePair<string, S>> transformedItems)
2811
internal static void DistinctWithComparer(
IElementLocation
elementLocation, string functionName, List<KeyValuePair<string, S>> itemsOfType, string[] arguments, StringComparer comparer, List<KeyValuePair<string, S>> transformedItems)
2830
internal static void Reverse(
IElementLocation
elementLocation, string functionName, List<KeyValuePair<string, S>> itemsOfType, string[] arguments, List<KeyValuePair<string, S>> transformedItems)
2843
internal static void ExpandQuotedExpressionFunction(
IElementLocation
elementLocation, bool includeNullEntries, string functionName, List<KeyValuePair<string, S>> itemsOfType, string[] arguments, List<KeyValuePair<string, S>> transformedItems)
2929
private static OneOrMultipleMetadataMatches GetQuotedExpressionMatches(string quotedExpressionFunction,
IElementLocation
elementLocation)
3034
IElementLocation
elementLocation,
3076
internal static void ClearMetadata(
IElementLocation
elementLocation, bool includeNullEntries, string functionName, List<KeyValuePair<string, S>> itemsOfType, string[] arguments, List<KeyValuePair<string, S>> transformedItems)
3093
internal static void HasMetadata(
IElementLocation
elementLocation, string functionName, List<KeyValuePair<string, S>> itemsOfType, string[] arguments, List<KeyValuePair<string, S>> transformedItems)
3127
internal static void WithMetadataValue(
IElementLocation
elementLocation, string functionName, List<KeyValuePair<string, S>> itemsOfType, string[] arguments, List<KeyValuePair<string, S>> transformedItems)
3160
internal static void WithoutMetadataValue(
IElementLocation
elementLocation, string functionName, List<KeyValuePair<string, S>> itemsOfType, string[] arguments, List<KeyValuePair<string, S>> transformedItems)
3193
internal static void AnyHaveMetadataValue(
IElementLocation
elementLocation, string functionName, List<KeyValuePair<string, S>> itemsOfType, string[] arguments, List<KeyValuePair<string, S>> transformedItems)
3246
IElementLocation
elementLocation,
3757
IElementLocation
elementLocation,
3880
internal object Execute(object objectInstance, IPropertyProvider<T> properties, ExpanderOptions options,
IElementLocation
elementLocation)
4338
private static void ConstructIndexerFunction(string expressionFunction,
IElementLocation
elementLocation, object propertyValue, int methodStartIndex, int indexerEndIndex, ref FunctionBuilder<T> functionBuilder)
4380
private static void ConstructFunction(
IElementLocation
elementLocation, string expressionFunction, int argumentStartIndex, int methodStartIndex, ref FunctionBuilder<T> functionBuilder)
Evaluation\IntrinsicFunctions.cs (1)
365
/// Searches upward for the specified file, beginning in the specified <see cref="
IElementLocation
"/>.
Evaluation\IProperty.cs (1)
43
string GetEvaluatedValueEscaped(
IElementLocation
location);
Evaluation\ItemSpec.cs (4)
152
public
IElementLocation
ItemSpecLocation { get; }
162
IElementLocation
itemSpecLocation,
173
private List<ItemSpecFragment> BuildItemFragments(
IElementLocation
itemSpecLocation, string projectDirectory, bool expandProperties)
258
IElementLocation
elementLocation,
Evaluation\LazyItemEvaluator.cs (2)
615
private void ProcessItemSpec(string rootDirectory, string itemSpec,
IElementLocation
itemSpecLocation, OperationBuilder builder)
668
private void AddItemReferences(string expression, OperationBuilder operationBuilder,
IElementLocation
elementLocation)
Evaluation\Profiler\EvaluationProfiler.cs (1)
77
public IDisposable TrackCondition(
IElementLocation
location, string condition)
Evaluation\PropertiesUseTracker.cs (5)
38
private Dictionary<string,
IElementLocation
>? _properties;
40
internal void TrackRead(string propertyName, int startIndex, int endIndex,
IElementLocation
elementLocation, bool isUninitialized, bool isArtificial)
90
internal void TryAdd(string propertyName,
IElementLocation
elementLocation)
104
internal bool TryGetPropertyElementLocation(string propertyName, [NotNullWhen(returnValue: true)] out
IElementLocation
? elementLocation)
136
IElementLocation
? elementWhichUsedProperty;
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (4)
266
IElementLocation
? location,
298
private void TrackPropertyInitialValueSet(P property, PropertySource source,
IElementLocation
? location)
326
private void TrackPropertyReassignment(P? predecessor, P property,
IElementLocation
? location)
459
IElementLocation
location,
Instance\ProjectPropertyInstance.cs (1)
114
string IProperty.GetEvaluatedValueEscaped(
IElementLocation
location)
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
471
private static void VerifyThrowIdentityParametersValid(IDictionary<string, string> identityParameters,
IElementLocation
errorLocation, string taskName, string runtimeName, string architectureName)
Instance\TaskFactories\TaskHostTask.cs (2)
50
private
IElementLocation
_taskLocation;
133
IElementLocation
taskLocation,
ProjectErrorUtilities.cs (32)
26
/// <param name="elementLocation">The <see cref="
IElementLocation
"/> of the element.</param>
28
internal static void VerifyThrowInvalidProject(bool condition,
IElementLocation
elementLocation, string resourceName)
36
/// <param name="elementLocation">The <see cref="
IElementLocation
"/> of the element.</param>
39
internal static void ThrowInvalidProject<T1>(
IElementLocation
elementLocation, string resourceName, T1 arg0)
48
/// <param name="elementLocation">The <see cref="
IElementLocation
"/> of the element.</param>
51
internal static void VerifyThrowInvalidProject<T1>(bool condition,
IElementLocation
elementLocation, string resourceName, T1 arg0)
59
/// <param name="elementLocation">The <see cref="
IElementLocation
"/> of the element.</param>
63
internal static void ThrowInvalidProject<T1, T2>(
IElementLocation
elementLocation, string resourceName, T1 arg0, T2 arg1)
71
/// <param name="elementLocation">The <see cref="
IElementLocation
"/> of the element.</param>
76
internal static void ThrowInvalidProject<T1, T2, T3>(
IElementLocation
elementLocation, string resourceName, T1 arg0, T2 arg1, T3 arg2)
84
/// <param name="elementLocation">The <see cref="
IElementLocation
"/> of the element.</param>
90
internal static void ThrowInvalidProject<T1, T2, T3, T4>(
IElementLocation
elementLocation, string resourceName, T1 arg0, T2 arg1, T3 arg2, T4 arg3)
98
/// <param name="elementLocation">The <see cref="
IElementLocation
"/> of the element.</param>
101
internal static void ThrowInvalidProject(
IElementLocation
elementLocation, string resourceName, params object[] args)
110
/// <param name="elementLocation">The <see cref="
IElementLocation
"/> of the element.</param>
114
internal static void VerifyThrowInvalidProject<T1, T2>(bool condition,
IElementLocation
elementLocation, string resourceName, T1 arg0, T2 arg1)
123
/// <param name="elementLocation">The <see cref="
IElementLocation
"/> of the element.</param>
128
internal static void VerifyThrowInvalidProject<T1, T2, T3>(bool condition,
IElementLocation
elementLocation, string resourceName, T1 arg0, T2 arg1, T3 arg2)
137
/// <param name="elementLocation">The <see cref="
IElementLocation
"/> of the element.</param>
143
internal static void VerifyThrowInvalidProject<T1, T2, T3, T4>(bool condition,
IElementLocation
elementLocation, string resourceName, T1 arg0, T2 arg1, T3 arg2, T4 arg3)
156
/// <param name="elementLocation">The <see cref="
IElementLocation
"/> of the element.</param>
158
internal static void VerifyThrowInvalidProject(bool condition, string errorSubCategoryResourceName,
IElementLocation
elementLocation, string resourceName)
172
/// <param name="elementLocation">The <see cref="
IElementLocation
"/> of the element.</param>
175
internal static void VerifyThrowInvalidProject<T1>(bool condition, string errorSubCategoryResourceName,
IElementLocation
elementLocation, string resourceName, T1 arg0)
189
/// <param name="elementLocation">The <see cref="
IElementLocation
"/> of the element.</param>
193
internal static void VerifyThrowInvalidProject<T1, T2>(bool condition, string errorSubCategoryResourceName,
IElementLocation
elementLocation, string resourceName, T1 arg0, T2 arg1)
207
/// <param name="elementLocation">The <see cref="
IElementLocation
"/> of the element.</param>
212
internal static void VerifyThrowInvalidProject<T1, T2, T3>(bool condition, string errorSubCategoryResourceName,
IElementLocation
elementLocation, string resourceName, T1 arg0, T2 arg1, T3 arg2)
226
/// <param name="elementLocation">The <see cref="
IElementLocation
"/> of the element.</param>
232
internal static void VerifyThrowInvalidProject<T1, T2, T3, T4>(bool condition, string errorSubCategoryResourceName,
IElementLocation
elementLocation, string resourceName, T1 arg0, T2 arg1, T3 arg2, T4 arg3)
250
/// <param name="elementLocation">The <see cref="
IElementLocation
"/> of the element.</param>
253
private static void ThrowInvalidProject(string errorSubCategoryResourceName,
IElementLocation
elementLocation, string resourceName, params object[] args)
Utilities\EngineFileUtilities.cs (19)
62
IElementLocation
? excludeLocation = null)
108
IElementLocation
? includeLocation = null,
109
IElementLocation
? excludeLocation = null,
110
IElementLocation
? importLocation = null,
180
IElementLocation
? includeLocation = null,
181
IElementLocation
? excludeLocation = null,
182
IElementLocation
? importLocation = null,
390
private static void LogDriveEnumerationWarningWithTargetLoggingContext(TargetLoggingContext targetLoggingContext,
IElementLocation
? includeLocation,
IElementLocation
? excludeLocation, bool excludeFileSpecIsEmpty, bool disableExcludeDriveEnumerationWarning, string fileSpec)
423
private static void LogDriveEnumerationWarningWithLoggingService(ILoggingService loggingService,
IElementLocation
? includeLocation, BuildEventContext? buildEventContext, string? buildEventFileInfoFullPath, string filespecUnescaped)
439
private static void LogDriveEnumerationWarningWithEvaluationLoggingContext(EvaluationLoggingContext evaluationLoggingContext,
IElementLocation
? importLocation,
IElementLocation
? includeLocation,
IElementLocation
? excludeLocation, bool excludeFileSpecIsEmpty, string filespecUnescaped, string fileSpec)
470
private static void ThrowDriveEnumerationExceptionWithTargetLoggingContext(
IElementLocation
? includeLocation,
IElementLocation
? excludeLocation, bool excludeFileSpecIsEmpty, string filespecUnescaped, string fileSpec)
503
private static void ThrowDriveEnumerationExceptionWithLoggingService(
IElementLocation
? includeLocation, string filespecUnescaped)
514
private static void ThrowDriveEnumerationExceptionWithEvaluationLoggingContext(
IElementLocation
? importLocation,
IElementLocation
? includeLocation,
IElementLocation
? excludeLocation, string filespecUnescaped, string fileSpec, bool excludeFileSpecIsEmpty)
XmlUtilities.cs (1)
89
internal static void VerifyThrowProjectValidElementName(string name,
IElementLocation
location)
Microsoft.Build.Engine.UnitTests (24)
Construction\ElementLocation_Tests.cs (20)
41
IElementLocation
location = ElementLocation.Create("file", 65536, 0);
54
IElementLocation
location = ElementLocation.Create("file", 0, 65536);
67
IElementLocation
location = ElementLocation.Create("file", 65536, 65537);
80
IElementLocation
location1 = ElementLocation.Create("file", 65536, 65537);
81
IElementLocation
location2 = ElementLocation.Create("file", 0, 1);
82
IElementLocation
location3 = ElementLocation.Create("file", 0, 65537);
83
IElementLocation
location4 = ElementLocation.Create("file", 65536, 1);
84
IElementLocation
location5 = ElementLocation.Create("file", 0, 1);
85
IElementLocation
location6 = ElementLocation.Create("file", 65536, 65537);
163
IElementLocation
location = ElementLocation.Create("file", 65536, 65537);
166
IElementLocation
deserializedLocation = null;
181
IElementLocation
location = ElementLocation.EmptyLocation;
184
IElementLocation
deserializedLocation = null;
199
IElementLocation
location = ElementLocation.Create("file", 65535, 65534);
234
IElementLocation
location = ElementLocation.Create(null);
244
IElementLocation
location = ElementLocation.Create("file", 65535, 0);
257
IElementLocation
location = ElementLocation.Create("file", 0, 65535);
270
IElementLocation
location = ElementLocation.Create("file", 65535, 65534);
283
IElementLocation
location = ElementLocation.Create("file", 65535, 2);
286
IElementLocation
deserializedLocation = null;
Evaluation\ItemSpec_Tests.cs (1)
81
private ProjectInstanceItemSpec CreateItemSpecFrom(string itemSpec, ProjectInstanceExpander expander,
IElementLocation
location = null)
Evaluation\UsedUninitializedProperties_Tests.cs (3)
20
Assert.False(props.TryGetPropertyElementLocation("Hello", out
IElementLocation
? elementLocation));
25
IElementLocation
location1 = new MockElementLocation("File1");
26
IElementLocation
location2 = new MockElementLocation("File2");