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