2 instantiations of ProjectOnErrorInstance
Microsoft.Build (1)
Evaluation\Evaluator.cs (1)
487ProjectOnErrorInstance onError = new ProjectOnErrorInstance(projectOnErrorElement.ExecuteTargetsAttribute, projectOnErrorElement.Condition, projectOnErrorElement.Location, projectOnErrorElement.ExecuteTargetsLocation, projectOnErrorElement.ConditionLocation);
Microsoft.Build.Engine.UnitTests (1)
TestData\ProjectInstanceTestObjects.cs (1)
99return new ProjectOnErrorInstance(
42 references to ProjectOnErrorInstance
Microsoft.Build (18)
BackEnd\Components\RequestBuilder\TargetEntry.cs (1)
704foreach (ProjectOnErrorInstance errorTargetInstance in _target.OnErrorChildren)
Evaluation\Evaluator.cs (6)
485private static ProjectOnErrorInstance ReadOnErrorElement(ProjectOnErrorElement projectOnErrorElement) 487ProjectOnErrorInstance onError = new ProjectOnErrorInstance(projectOnErrorElement.ExecuteTargetsAttribute, projectOnErrorElement.Condition, projectOnErrorElement.Location, projectOnErrorElement.ExecuteTargetsLocation, projectOnErrorElement.ConditionLocation); 550List<ProjectOnErrorInstance> targetOnErrorChildren = new List<ProjectOnErrorInstance>(); 581ObjectModel.ReadOnlyCollection<ProjectOnErrorInstance> readOnlyTargetOnErrorChildren = new ObjectModel.ReadOnlyCollection<ProjectOnErrorInstance>(targetOnErrorChildren);
Instance\ProjectInstance.cs (2)
2834new ObjectModel.ReadOnlyCollection<ProjectOnErrorInstance>(new List<ProjectOnErrorInstance>()),
Instance\ProjectOnErrorInstance.cs (2)
130internal static new ProjectOnErrorInstance FactoryForDeserialization(ITranslator translator) 132return translator.FactoryForDeserializingTypeWithName<ProjectOnErrorInstance>();
Instance\ProjectTargetInstance.cs (7)
76private ObjectModel.ReadOnlyCollection<ProjectOnErrorInstance> _onErrorChildren; 162ObjectModel.ReadOnlyCollection<ProjectOnErrorInstance> onErrorChildren, 320public IList<ProjectOnErrorInstance> OnErrorChildren 575IList<ProjectOnErrorInstance> onErrorChildren = _onErrorChildren; 576translator.Translate(ref onErrorChildren, ProjectOnErrorInstance.FactoryForDeserialization, count => new List<ProjectOnErrorInstance>(count)); 581_onErrorChildren = new ObjectModel.ReadOnlyCollection<ProjectOnErrorInstance>(onErrorChildren);
Microsoft.Build.Engine.OM.UnitTests (4)
Instance\ProjectOnErrorInstance_Tests.cs (4)
26var onError = GetSampleOnErrorInstance(); 35private static ProjectOnErrorInstance GetSampleOnErrorInstance() 49ProjectOnErrorInstance onError = (ProjectOnErrorInstance)instance.Targets["t"].OnErrorChildren[0];
Microsoft.Build.Engine.UnitTests (20)
BackEnd\MockTaskBuilder.cs (4)
52public List<ProjectOnErrorInstance> ErrorTasks 72ErrorTasks = new List<ProjectOnErrorInstance>(); 90ProjectOnErrorInstance errorTask = task as ProjectOnErrorInstance;
Instance\ProjectTargetInstance_Internal_Tests.cs (5)
32new ReadOnlyCollection<ProjectOnErrorInstance>(System.Array.Empty<ProjectOnErrorInstance>()) 45new ReadOnlyCollection<ProjectOnErrorInstance>(new[] {CreateTargetOnError() }) 62new ReadOnlyCollection<ProjectOnErrorInstance>(new[] 75ReadOnlyCollection<ProjectOnErrorInstance> errorChildren)
TestComparers\ProjectInstanceModelTestComparers.cs (7)
130if (x is ProjectOnErrorInstance) 132return new TargetOnErrorComparer().Equals((ProjectOnErrorInstance)x, (ProjectOnErrorInstance)y); 295public class TargetOnErrorComparer : IEqualityComparer<ProjectOnErrorInstance> 297public bool Equals(ProjectOnErrorInstance x, ProjectOnErrorInstance y) 308public int GetHashCode(ProjectOnErrorInstance obj)
TestData\ProjectInstanceTestObjects.cs (4)
95public static ProjectOnErrorInstance CreateTargetOnError(int? counter = null) 166System.Collections.ObjectModel.ReadOnlyCollection<ProjectOnErrorInstance> errorChildren) 169errorChildren ??= new System.Collections.ObjectModel.ReadOnlyCollection<ProjectOnErrorInstance>(new List<ProjectOnErrorInstance>());