2 implementations of IElementLocation
Microsoft.Build (2)
ElementLocation\ElementLocation.cs (1)
25public abstract class ElementLocation : IElementLocation, IImmutable
ElementLocation\RegistryLocation.cs (1)
21internal class RegistryLocation : IElementLocation, ITranslatable
205 references to IElementLocation
Microsoft.Build (205)
BackEnd\Components\Logging\BuildLoggingContext.cs (1)
58internal void LogFatalTaskError(Exception exception, IElementLocation location, string taskName)
BackEnd\Components\Logging\ILoggingService.cs (9)
417void LogError(BuildEventContext buildEventContext, IElementLocation location, string messageResourceName, params object[] messageArgs); 427void LogError(BuildEventContext buildEventContext, DiagnosticSubcategory subcategory, IElementLocation location, string messageResourceName, params object[] messageArgs); 438void LogErrorFromText(BuildEventContext buildEventContext, DiagnosticSubcategory subcategory, string errorCode, string helpKeyword, IElementLocation location, string message); 453void LogFatalBuildError(BuildEventContext buildEventContext, Exception exception, IElementLocation location); 462void LogFatalTaskError(BuildEventContext buildEventContext, Exception exception, IElementLocation location, string taskName); 472void LogFatalError(BuildEventContext buildEventContext, Exception exception, IElementLocation location, string messageResourceName, params object[] messageArgs); 483void LogTaskWarningFromException(BuildEventContext buildEventContext, Exception exception, IElementLocation location, string taskName); 493void LogWarning(BuildEventContext buildEventContext, DiagnosticSubcategory subcategory, IElementLocation location, string messageResourceName, params object[] messageArgs); 504void LogWarningFromText(BuildEventContext buildEventContext, DiagnosticSubcategory subcategory, string warningCode, string helpKeyword, IElementLocation location, string message);
BackEnd\Components\Logging\LoggingContext.cs (8)
140internal void LogComment(MessageImportance importance, IElementLocation location, string messageResourceName, params object?[]? messageArgs) 192internal void LogError(IElementLocation location, string messageResourceName, params object[] messageArgs) 206internal void LogErrorWithSubcategory(DiagnosticSubcategory subcategory, IElementLocation location, string messageResourceName, params object[] messageArgs) 221internal void LogErrorFromText(DiagnosticSubcategory subcategory, string? errorCode, string? helpKeyword, IElementLocation location, string message) 246internal void LogFatalError(Exception exception, IElementLocation location, string messageResourceName, params object?[]? messageArgs) 266internal void LogWarning(DiagnosticSubcategory subcategory, IElementLocation location, string messageResourceName, params object?[]? messageArgs) 280internal void LogWarningFromText(DiagnosticSubcategory subcategory, string warningCode, string helpKeyword, IElementLocation location, string message) 301internal void LogFatalBuildError(Exception exception, IElementLocation location)
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (9)
99public void LogError(BuildEventContext buildEventContext, IElementLocation location, string messageResourceName, params object[] messageArgs) 113public void LogError(BuildEventContext buildEventContext, DiagnosticSubcategory subcategory, IElementLocation location, string messageResourceName, params object[] messageArgs) 133public void LogErrorFromText(BuildEventContext buildEventContext, DiagnosticSubcategory subcategory, string errorCode, string helpKeyword, IElementLocation location, string message) 196public void LogFatalBuildError(BuildEventContext buildEventContext, Exception exception, IElementLocation location) 210public void LogFatalTaskError(BuildEventContext buildEventContext, Exception exception, IElementLocation location, string taskName) 227public void LogFatalError(BuildEventContext buildEventContext, Exception exception, IElementLocation location, string messageResourceName, params object[] messageArgs) 261public void LogTaskWarningFromException(BuildEventContext buildEventContext, Exception exception, IElementLocation location, string taskName) 286public void LogWarning(BuildEventContext buildEventContext, DiagnosticSubcategory subcategory, IElementLocation location, string messageResourceName, params object[] messageArgs) 303public void LogWarningFromText(BuildEventContext buildEventContext, DiagnosticSubcategory subcategory, string warningCode, string helpKeyword, IElementLocation location, string message)
BackEnd\Components\Logging\TaskLoggingContext.cs (1)
148internal void LogTaskWarningFromException(Exception exception, IElementLocation location, string taskName)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (6)
208IElementLocation elementLocation = ElementLocation.Empty; 956IElementLocation elementLocation = ElementLocation.Empty; 1052private readonly IElementLocation _elementLocation; 1059IElementLocation elementLocation) 1107private readonly IElementLocation _elementLocation; 1114IElementLocation elementLocation)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
272IElementLocation location = null)
BackEnd\Shared\EventsCreatorHelper.cs (2)
39IElementLocation location, 67IElementLocation location,
BackEnd\Shared\TargetResult.cs (1)
233internal IElementLocation TargetLocation { get; set; }
BuildCheck\Infrastructure\BuildEventsProcessor.cs (1)
107internal void ProcessEnvironmentVariableReadEventArgs(ICheckContext checkContext, string projectPath, string envVarKey, string envVarValue, IElementLocation elementLocation)
BuildCheck\Infrastructure\CheckContext\CheckDispatchingContext.cs (2)
55public void DispatchAsErrorFromText(DiagnosticSubcategory subcategory, string? errorCode, string? helpKeyword, IElementLocation location, string message) 62public void DispatchAsWarningFromText(DiagnosticSubcategory subcategory, string? warningCode, string? helpKeyword, IElementLocation location, string message)
BuildCheck\Infrastructure\CheckContext\CheckLoggingContext.cs (2)
38public void DispatchAsErrorFromText(DiagnosticSubcategory subcategory, string? errorCode, string? helpKeyword, IElementLocation location, string message) 42public void DispatchAsWarningFromText(DiagnosticSubcategory subcategory, string? warningCode, string? helpKeyword, IElementLocation location, string message)
BuildCheck\Infrastructure\CheckContext\ICheckContext.cs (2)
39void DispatchAsErrorFromText(DiagnosticSubcategory subcategory, string? errorCode, string? helpKeyword, IElementLocation location, string message); 54void DispatchAsWarningFromText(DiagnosticSubcategory subcategory, string? warningCode, string? helpKeyword, IElementLocation location, string message);
Construction\ProjectMetadataElement.cs (1)
150internal 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)
2675ProvenanceResult 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
Errors\ProjectErrorUtilities.cs (50)
27public static void ThrowInvalidProject(IElementLocation location, string resourceName) 38public static void ThrowInvalidProject(IElementLocation location, string resourceName, object? arg0) 50public static void ThrowInvalidProject(IElementLocation location, string resourceName, object? arg0, object? arg1) 63public static void ThrowInvalidProject(IElementLocation location, string resourceName, object? arg0, object? arg1, object? arg2) 74public static void ThrowInvalidProject(IElementLocation location, string resourceName, params object?[] args) 86public static void ThrowInvalidProject(IElementLocation location, Exception? innerException, string resourceName) 99public static void ThrowInvalidProject(IElementLocation location, Exception? innerException, string resourceName, object? arg0) 114IElementLocation location, 134IElementLocation location, 152IElementLocation location, 166public static void ThrowInvalidProject(DiagnosticSubcategory subcategory, IElementLocation location, string resourceName) 178public static void ThrowInvalidProject(DiagnosticSubcategory subcategory, IElementLocation location, string resourceName, object? arg0) 193IElementLocation location, 212IElementLocation location, 230IElementLocation location, 247IElementLocation location, 265IElementLocation location, 285IElementLocation location, 307IElementLocation location, 328IElementLocation location, 342public static void VerifyThrowInvalidProject([DoesNotReturnIf(false)] bool condition, IElementLocation location, string resourceName) 357IElementLocation location, 376IElementLocation location, 398IElementLocation location, 423IElementLocation location, 442IElementLocation location, 463IElementLocation location, 481IElementLocation location, 502IElementLocation location, 526IElementLocation location, 554IElementLocation location, 576IElementLocation location, 599IElementLocation location, 622IElementLocation location, 648IElementLocation location, 677IElementLocation location, 709IElementLocation location, 735IElementLocation location, 758IElementLocation location, 783IElementLocation location, 811IElementLocation location, 842IElementLocation location, 876IElementLocation location, 904IElementLocation location, 926IElementLocation location, 951IElementLocation location, 978IElementLocation location, 1007IElementLocation location, 1035IElementLocation location, 1062IElementLocation location,
Evaluation\Evaluator.cs (2)
1921static string EvaluateProperty(string value, IElementLocation location, 1945IElementLocation sdkReferenceOrigin = importElement.SdkLocation;
Evaluation\Expander.cs (10)
234internal string ExpandIntoStringAndUnescape(string expression, ExpanderOptions options, IElementLocation elementLocation) 248internal string ExpandIntoStringLeaveEscaped(string expression, ExpanderOptions options, IElementLocation elementLocation) 271internal SemiColonTokenizer ExpandIntoStringListLeaveEscaped(string expression, ExpanderOptions options, IElementLocation elementLocation) 284internal IList<TaskItem> ExpandIntoTaskItemsLeaveEscaped(string expression, ExpanderOptions options, IElementLocation elementLocation) 299internal IList<T> ExpandIntoItemsLeaveEscaped<T>(string expression, IItemFactory<I, T> itemFactory, ExpanderOptions options, IElementLocation elementLocation) 372internal IList<T> ExpandSingleItemVectorExpressionIntoItems<T>(string expression, IItemFactory<I, T> itemFactory, ExpanderOptions options, bool includeNullItems, out bool isTransformExpression, IElementLocation elementLocation) 389IElementLocation elementLocation, 395ExpanderOptions options, bool includeNullEntries, out bool isTransformExpression, IElementLocation elementLocation) 404IElementLocation elementLocation, 583private static string[] ExtractFunctionArguments(IElementLocation elementLocation, string expressionFunction, ReadOnlyMemory<char> argumentsMemory)
Evaluation\Expander.Function.cs (4)
210IElementLocation elementLocation, 369internal object Execute(object objectInstance, IPropertyProvider<P> properties, ExpanderOptions options, IElementLocation elementLocation) 850private static void ConstructIndexerFunction(string expressionFunction, IElementLocation elementLocation, object propertyValue, int methodStartIndex, int indexerEndIndex, ref FunctionBuilder functionBuilder) 892private 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)
102IElementLocation elementLocation) 157IElementLocation elementLocation) 211IElementLocation elementLocation) 240IElementLocation elementLocation) 324IElementLocation elementLocation) 399IElementLocation elementLocation) 458IElementLocation elementLocation) 470IElementLocation elementLocation) 483IElementLocation elementLocation) 507IElementLocation elementLocation) 526IElementLocation elementLocation) 538IElementLocation elementLocation) 579IElementLocation elementLocation) 599IElementLocation elementLocation) 641IElementLocation elementLocation) 690private static OneOrMultipleMetadataMatches GetQuotedExpressionMatches(string text, IElementLocation elementLocation) 813IElementLocation elementLocation) 856IElementLocation elementLocation) 878IElementLocation elementLocation) 917IElementLocation elementLocation) 955IElementLocation elementLocation) 993IElementLocation elementLocation) 1046IElementLocation elementLocation)
Evaluation\Expander.MetadataExpander.cs (3)
26private readonly IElementLocation _elementLocation; 34IElementLocation elementLocation, 62IElementLocation elementLocation,
Evaluation\Expander.PropertyExpander.cs (6)
47private readonly IElementLocation _elementLocation; 55IElementLocation elementLocation, 87IElementLocation elementLocation, 142IElementLocation elementLocation, 170IElementLocation elementLocation, 430IElementLocation 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)
39private Dictionary<string, IElementLocation>? _properties; 41internal void TrackRead(string propertyName, int startIndex, int length, IElementLocation elementLocation, bool isUninitialized) 89internal void TryAdd(string propertyName, IElementLocation elementLocation) 103internal bool TryGetPropertyElementLocation(string propertyName, [NotNullWhen(returnValue: true)] out IElementLocation? elementLocation) 135IElementLocation? 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)
115string IProperty.GetEvaluatedValueEscaped(IElementLocation location)
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
530private static void VerifyThrowIdentityParametersValid(in TaskHostParameters identityParameters, IElementLocation errorLocation, string taskName, string runtimeName, string architectureName)
Instance\TaskFactories\TaskHostTask.cs (4)
52private IElementLocation _taskLocation; 181IElementLocation Location); 187IElementLocation taskLocation, 343IElementLocation location)
Instance\TaskRegistry.UsingTaskInfo.cs (2)
464private string GetValidAttributeValue(string attributeName, string attributeValue, IElementLocation location) 488private string Expand(string text, IElementLocation location)
Utilities\EngineFileUtilities.cs (19)
63IElementLocation? excludeLocation = null) 109IElementLocation? includeLocation = null, 110IElementLocation? excludeLocation = null, 111IElementLocation? importLocation = null, 181IElementLocation? includeLocation = null, 182IElementLocation? excludeLocation = null, 183IElementLocation? importLocation = null, 396private static void LogDriveEnumerationWarningWithTargetLoggingContext(TargetLoggingContext targetLoggingContext, IElementLocation? includeLocation, IElementLocation? excludeLocation, bool excludeFileSpecIsEmpty, bool disableExcludeDriveEnumerationWarning, string fileSpec) 429private static void LogDriveEnumerationWarningWithLoggingService(ILoggingService loggingService, IElementLocation? includeLocation, BuildEventContext? buildEventContext, string? projectFilePath, string filespecUnescaped) 445private static void LogDriveEnumerationWarningWithEvaluationLoggingContext(EvaluationLoggingContext evaluationLoggingContext, IElementLocation? importLocation, IElementLocation? includeLocation, IElementLocation? excludeLocation, bool excludeFileSpecIsEmpty, string filespecUnescaped, string fileSpec) 476private static void ThrowDriveEnumerationExceptionWithTargetLoggingContext(IElementLocation? includeLocation, IElementLocation? excludeLocation, bool excludeFileSpecIsEmpty, string filespecUnescaped, string fileSpec) 509private static void ThrowDriveEnumerationExceptionWithLoggingService(IElementLocation? includeLocation, string filespecUnescaped) 520private static void ThrowDriveEnumerationExceptionWithEvaluationLoggingContext(IElementLocation? importLocation, IElementLocation? includeLocation, IElementLocation? excludeLocation, string filespecUnescaped, string fileSpec, bool excludeFileSpecIsEmpty)
Utilities\XmlUtilities.cs (1)
90internal static void VerifyThrowProjectValidElementName(string name, IElementLocation location)