2 implementations of IElementLocation
Microsoft.Build (2)
ElementLocation\ElementLocation.cs (1)
23public abstract class ElementLocation : IElementLocation, ITranslatable, IImmutable
ElementLocation\RegistryLocation.cs (1)
21internal class RegistryLocation : IElementLocation, ITranslatable
144 references to IElementLocation
Microsoft.Build (144)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
272IElementLocation location = null)
BackEnd\Shared\TargetResult.cs (1)
233internal IElementLocation TargetLocation { get; set; }
BuildCheck\Infrastructure\BuildEventsProcessor.cs (1)
106internal void ProcessEnvironmentVariableReadEventArgs(ICheckContext checkContext, string projectPath, string envVarKey, string envVarValue, IElementLocation elementLocation)
Construction\ProjectMetadataElement.cs (1)
149internal static void ValidateValidMetadataAsAttributeName(string name, string parentName, IElementLocation parentLocation)
Construction\ProjectRootElement.cs (1)
1938private static IEnumerable<SdkReference> ParseSdks(string sdks, IElementLocation sdkLocation)
Definition\Project.cs (1)
2674ProvenanceResult SingleItemSpecProvenance(string itemSpec, IElementLocation elementLocation, Operation operation)
Definition\ProjectProperty.cs (1)
123string IProperty.GetEvaluatedValueEscaped(IElementLocation location)
Definition\ToolsetLocalReader.cs (1)
14private readonly IElementLocation _sourceLocation = new RegistryLocation("ToolsetLocalReader");
Definition\ToolsetPropertyDefinition.cs (3)
29private IElementLocation _source; 37public ToolsetPropertyDefinition(string name, string value, IElementLocation source) 83public IElementLocation Source
ElementLocation\ElementLocation.cs (2)
108IElementLocation that = obj as IElementLocation;
Evaluation\Evaluator.cs (2)
1849static string EvaluateProperty(string value, IElementLocation location, 1873IElementLocation sdkReferenceOrigin = importElement.SdkLocation;
Evaluation\Expander.cs (11)
233internal string ExpandIntoStringAndUnescape(string expression, ExpanderOptions options, IElementLocation elementLocation) 247internal string ExpandIntoStringLeaveEscaped(string expression, ExpanderOptions options, IElementLocation elementLocation) 268internal object ExpandPropertiesLeaveTypedAndEscaped(string expression, ExpanderOptions options, IElementLocation elementLocation) 287internal SemiColonTokenizer ExpandIntoStringListLeaveEscaped(string expression, ExpanderOptions options, IElementLocation elementLocation) 300internal IList<TaskItem> ExpandIntoTaskItemsLeaveEscaped(string expression, ExpanderOptions options, IElementLocation elementLocation) 315internal IList<T> ExpandIntoItemsLeaveEscaped<T>(string expression, IItemFactory<I, T> itemFactory, ExpanderOptions options, IElementLocation elementLocation) 388internal IList<T> ExpandSingleItemVectorExpressionIntoItems<T>(string expression, IItemFactory<I, T> itemFactory, ExpanderOptions options, bool includeNullItems, out bool isTransformExpression, IElementLocation elementLocation) 405IElementLocation elementLocation, 411ExpanderOptions options, bool includeNullEntries, out bool isTransformExpression, IElementLocation elementLocation) 420IElementLocation elementLocation, 581private static string[] ExtractFunctionArguments(IElementLocation elementLocation, string expressionFunction, ReadOnlyMemory<char> argumentsMemory)
Evaluation\Expander.Function.cs (4)
208IElementLocation elementLocation, 367internal object Execute(object objectInstance, IPropertyProvider<P> properties, ExpanderOptions options, IElementLocation elementLocation) 846private static void ConstructIndexerFunction(string expressionFunction, IElementLocation elementLocation, object propertyValue, int methodStartIndex, int indexerEndIndex, ref FunctionBuilder functionBuilder) 888private static void ConstructFunction(IElementLocation elementLocation, string expressionFunction, int argumentStartIndex, int methodStartIndex, ref FunctionBuilder functionBuilder)
Evaluation\Expander.ItemExpander.cs (8)
102/// <see cref="Transforms.ExpandQuotedExpressionFunction(List{TransformEntry}, List{TransformEntry}, string, bool, IElementLocation)"/>. 111IElementLocation elementLocation, 310IElementLocation elementLocation) 331IElementLocation elementLocation, 360ExpanderOptions options, bool includeNullEntries, out bool isTransformExpression, IElementLocation elementLocation) 472IElementLocation elementLocation, 667internal static string ExpandItemVectorsIntoString(Expander<P, I> expander, string expression, IItemProvider<I> items, ExpanderOptions options, IElementLocation elementLocation) 723IElementLocation elementLocation,
Evaluation\Expander.ItemExpander.Transforms.cs (23)
100IElementLocation elementLocation) 155IElementLocation elementLocation) 209IElementLocation elementLocation) 238IElementLocation elementLocation) 322IElementLocation elementLocation) 397IElementLocation elementLocation) 456IElementLocation elementLocation) 468IElementLocation elementLocation) 481IElementLocation elementLocation) 505IElementLocation elementLocation) 524IElementLocation elementLocation) 536IElementLocation elementLocation) 577IElementLocation elementLocation) 597IElementLocation elementLocation) 639IElementLocation elementLocation) 688private static OneOrMultipleMetadataMatches GetQuotedExpressionMatches(string text, IElementLocation elementLocation) 811IElementLocation elementLocation) 854IElementLocation elementLocation) 876IElementLocation elementLocation) 915IElementLocation elementLocation) 953IElementLocation elementLocation) 991IElementLocation elementLocation) 1044IElementLocation elementLocation)
Evaluation\Expander.MetadataExpander.cs (3)
25private readonly IElementLocation _elementLocation; 33IElementLocation elementLocation, 61IElementLocation elementLocation,
Evaluation\Expander.PropertyExpander.cs (5)
52private readonly IElementLocation _elementLocation; 60IElementLocation elementLocation, 93IElementLocation elementLocation, 129IElementLocation elementLocation, 374IElementLocation elementLocation,
Evaluation\IntrinsicFunctions.cs (1)
364/// Searches upward for the specified file, beginning in the specified <see cref="IElementLocation"/>.
Evaluation\IProperty.cs (1)
43string GetEvaluatedValueEscaped(IElementLocation location);
Evaluation\ItemSpec.cs (4)
153public IElementLocation ItemSpecLocation { get; } 163IElementLocation itemSpecLocation, 174private List<ItemSpecFragment> BuildItemFragments(IElementLocation itemSpecLocation, string projectDirectory, bool expandProperties) 259IElementLocation elementLocation,
Evaluation\LazyItemEvaluator.cs (2)
615private void ProcessItemSpec(string rootDirectory, string itemSpec, IElementLocation itemSpecLocation, OperationBuilder builder) 667private void AddItemReferences(string expression, OperationBuilder operationBuilder, IElementLocation elementLocation)
Evaluation\Profiler\EvaluationProfiler.cs (1)
77public IDisposable TrackCondition(IElementLocation location, string condition)
Evaluation\PropertiesUseTracker.cs (5)
38private Dictionary<string, IElementLocation>? _properties; 40internal void TrackRead(string propertyName, int startIndex, int endIndex, IElementLocation elementLocation, bool isUninitialized, bool isArtificial) 90internal void TryAdd(string propertyName, IElementLocation elementLocation) 104internal bool TryGetPropertyElementLocation(string propertyName, [NotNullWhen(returnValue: true)] out IElementLocation? elementLocation) 136IElementLocation? elementWhichUsedProperty;
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (4)
266IElementLocation? location, 298private void TrackPropertyInitialValueSet(P property, PropertySource source, IElementLocation? location) 326private void TrackPropertyReassignment(P? predecessor, P property, IElementLocation? location) 459IElementLocation location,
Instance\ProjectPropertyInstance.cs (1)
114string IProperty.GetEvaluatedValueEscaped(IElementLocation location)
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
511private static void VerifyThrowIdentityParametersValid(in TaskHostParameters identityParameters, IElementLocation errorLocation, string taskName, string runtimeName, string architectureName)
Instance\TaskFactories\TaskHostTask.cs (2)
52private IElementLocation _taskLocation; 164IElementLocation taskLocation,
parent\Shared\BuildEventFileInfo.cs (1)
41internal BuildEventFileInfo(IElementLocation location)
parent\Shared\ProjectErrorUtilities.cs (32)
26/// <param name="elementLocation">The <see cref="IElementLocation"/> of the element.</param> 28internal static void VerifyThrowInvalidProject(bool condition, IElementLocation elementLocation, string resourceName) 36/// <param name="elementLocation">The <see cref="IElementLocation"/> of the element.</param> 39internal static void ThrowInvalidProject<T1>(IElementLocation elementLocation, string resourceName, T1 arg0) 48/// <param name="elementLocation">The <see cref="IElementLocation"/> of the element.</param> 51internal static void VerifyThrowInvalidProject<T1>(bool condition, IElementLocation elementLocation, string resourceName, T1 arg0) 59/// <param name="elementLocation">The <see cref="IElementLocation"/> of the element.</param> 63internal 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> 76internal 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> 90internal 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> 101internal static void ThrowInvalidProject(IElementLocation elementLocation, string resourceName, params object[] args) 110/// <param name="elementLocation">The <see cref="IElementLocation"/> of the element.</param> 114internal 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> 128internal 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> 143internal 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> 158internal static void VerifyThrowInvalidProject(bool condition, string errorSubCategoryResourceName, IElementLocation elementLocation, string resourceName) 172/// <param name="elementLocation">The <see cref="IElementLocation"/> of the element.</param> 175internal 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> 193internal 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> 212internal 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> 232internal 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> 253private static void ThrowInvalidProject(string errorSubCategoryResourceName, IElementLocation elementLocation, string resourceName, params object[] args)
Utilities\EngineFileUtilities.cs (19)
62IElementLocation? excludeLocation = null) 108IElementLocation? includeLocation = null, 109IElementLocation? excludeLocation = null, 110IElementLocation? importLocation = null, 180IElementLocation? includeLocation = null, 181IElementLocation? excludeLocation = null, 182IElementLocation? importLocation = null, 395private static void LogDriveEnumerationWarningWithTargetLoggingContext(TargetLoggingContext targetLoggingContext, IElementLocation? includeLocation, IElementLocation? excludeLocation, bool excludeFileSpecIsEmpty, bool disableExcludeDriveEnumerationWarning, string fileSpec) 428private static void LogDriveEnumerationWarningWithLoggingService(ILoggingService loggingService, IElementLocation? includeLocation, BuildEventContext? buildEventContext, string? buildEventFileInfoFullPath, string filespecUnescaped) 444private static void LogDriveEnumerationWarningWithEvaluationLoggingContext(EvaluationLoggingContext evaluationLoggingContext, IElementLocation? importLocation, IElementLocation? includeLocation, IElementLocation? excludeLocation, bool excludeFileSpecIsEmpty, string filespecUnescaped, string fileSpec) 475private static void ThrowDriveEnumerationExceptionWithTargetLoggingContext(IElementLocation? includeLocation, IElementLocation? excludeLocation, bool excludeFileSpecIsEmpty, string filespecUnescaped, string fileSpec) 508private static void ThrowDriveEnumerationExceptionWithLoggingService(IElementLocation? includeLocation, string filespecUnescaped) 519private static void ThrowDriveEnumerationExceptionWithEvaluationLoggingContext(IElementLocation? importLocation, IElementLocation? includeLocation, IElementLocation? excludeLocation, string filespecUnescaped, string fileSpec, bool excludeFileSpecIsEmpty)
Utilities\XmlUtilities.cs (1)
89internal static void VerifyThrowProjectValidElementName(string name, IElementLocation location)