3 instantiations of ProjectChooseElement
Microsoft.Build (3)
Construction\ProjectChooseElement.cs (1)
98
return new
ProjectChooseElement
(element, containingProject);
Evaluation\ProjectParser.cs (1)
773
ProjectChooseElement choose = new
ProjectChooseElement
(element, parent, _project);
ObjectModelRemoting\LinkedObjectFactory.cs (1)
135
return new
ProjectChooseElement
(link);
58 references to ProjectChooseElement
Microsoft.Build (22)
Construction\ProjectChooseElement.cs (1)
93
internal static
ProjectChooseElement
CreateDisconnected(ProjectRootElement containingProject)
Construction\ProjectOtherwiseElement.cs (3)
68
public ICollection<
ProjectChooseElement
> ChooseElements => GetChildrenOfType<
ProjectChooseElement
>();
101
ErrorUtilities.VerifyThrowInvalidOperation(parent is
ProjectChooseElement
, "OM_CannotAcceptParent");
Construction\ProjectRootElement.cs (4)
290
public ICollection<
ProjectChooseElement
> ChooseElements => GetChildrenOfType<
ProjectChooseElement
>();
1239
public
ProjectChooseElement
CreateChooseElement()
1241
return Link != null ? RootLink.CreateChooseElement() :
ProjectChooseElement
.CreateDisconnected(this);
Construction\ProjectWhenElement.cs (4)
31
internal ProjectWhenElement(XmlElement xmlElement,
ProjectChooseElement
parent, ProjectRootElement containingProject)
49
public ICollection<
ProjectChooseElement
> ChooseElements => GetChildrenOfType<
ProjectChooseElement
>();
82
ErrorUtilities.VerifyThrowInvalidOperation(parent is
ProjectChooseElement
, "OM_CannotAcceptParent");
Evaluation\Evaluator.cs (3)
920
case
ProjectChooseElement
choose:
1432
private void EvaluateChooseElement(
ProjectChooseElement
chooseElement)
1472
case
ProjectChooseElement
choose:
Evaluation\ProjectParser.cs (4)
769
private
ProjectChooseElement
ParseProjectChooseElement(XmlElementWithLocation element, ProjectElementContainer parent, int nestingDepth)
773
ProjectChooseElement
choose = new ProjectChooseElement(element, parent, _project);
815
private ProjectWhenElement ParseProjectWhenElement(XmlElementWithLocation element,
ProjectChooseElement
parent, int nestingDepth)
829
private ProjectOtherwiseElement ParseProjectOtherwiseElement(XmlElementWithLocation element,
ProjectChooseElement
parent, int nestingDepth)
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementContainerLink.cs (1)
68
/// Allow for creating a local representation to external object of type <see cref="
ProjectChooseElement
"/>
ObjectModelRemoting\ConstructionObjectLinks\ProjectRootElementLink.cs (1)
73
public abstract
ProjectChooseElement
CreateChooseElement();
ObjectModelRemoting\LinkedObjectFactory.cs (1)
133
public
ProjectChooseElement
Create(ProjectChooseElementLink link)
Microsoft.Build.Engine.OM.UnitTests (36)
Construction\ConstructionEditing_Tests.cs (14)
167
ProjectChooseElement
choose = project.CreateChooseElement();
181
ProjectChooseElement
choose = project.CreateChooseElement();
197
ProjectChooseElement
choose = project.CreateChooseElement();
213
ProjectChooseElement
choose1 = project.CreateChooseElement();
215
ProjectChooseElement
choose2 = project.CreateChooseElement();
231
ProjectChooseElement
choose1 = project.CreateChooseElement();
233
ProjectChooseElement
choose2 = project.CreateChooseElement();
1240
ProjectChooseElement
choose = project.CreateChooseElement();
1258
ProjectChooseElement
choose = project.CreateChooseElement();
1274
ProjectChooseElement
choose = project.CreateChooseElement();
1290
ProjectChooseElement
choose = project.CreateChooseElement();
1306
ProjectChooseElement
choose = project.CreateChooseElement();
1930
ProjectChooseElement
choose = project.CreateChooseElement();
2300
ProjectChooseElement
choose = project.CreateChooseElement();
Construction\ProjectChooseElement_Tests.cs (7)
178
ProjectChooseElement
choose = (
ProjectChooseElement
)Helpers.GetFirst(project.Children);
198
ProjectChooseElement
choose = (
ProjectChooseElement
)Helpers.GetFirst(project.Children);
222
ProjectChooseElement
choose = (
ProjectChooseElement
)Helpers.GetFirst(project.Children);
276
ProjectChooseElement
choose = Helpers.GetFirst(project.Xml.ChooseElements);
Construction\ProjectRootElement_Tests.cs (1)
1188
var
choose = pre.CreateChooseElement();
ObjectModelRemoting\Helpers\ViewValidation.construction.cs (2)
563
public static void Verify(
ProjectChooseElement
viewXml,
ProjectChooseElement
realXml, ValidationContext context = null)
ObjectModelRemoting\Helpers\ViewValidation.cs (1)
139
if (VerifyCheckType<
ProjectChooseElement
>(view, real, context, Verify))
ObjectModelRemoting\LinkedConstructionModify_Tests.cs (8)
103
xmlPair.CreateWithVerify<
ProjectChooseElement
>((p) => p.CreateChooseElement());
370
var chooseCreataed = xmlPair.CreateWithVerify<
ProjectChooseElement
>((p) => p.CreateChooseElement());
371
xmlPair.QueryChildrenWithValidation<
ProjectChooseElement
>((pc) => true, 0);
374
var choose = xmlPair.QuerySingleChildrenWithValidation<
ProjectChooseElement
>((pc) => true);
413
var choose = xmlPair.AppendNewChaildWithVerify<
ProjectChooseElement
>(ObjectType.View, "choose", (p, s) => p.CreateChooseElement(), (p, s) => true);
418
when.Append2NewLabeledChildrenWithVerify<
ProjectChooseElement
>("choose", (p, l) => p.CreateChooseElement(), out var choose1, out var choose2);
452
var choose = xmlPair.AppendNewChaildWithVerify<
ProjectChooseElement
>(ObjectType.View, "choose", (p, s) => p.CreateChooseElement(), (p, s) => true);
456
otherwise.Append2NewLabeledChildrenWithVerify<
ProjectChooseElement
>("choose", (p, l) => p.CreateChooseElement(), out var choose1, out var choose2);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\MockProjectRootElementLink.cs (2)
207
public override
ProjectChooseElement
CreateChooseElement()
209
return (
ProjectChooseElement
)this.Proxy.CreateChooseElement().Import(this.Linker);
ObjectModelRemoting\RemoteProjectsProviderMock\ConstructionLinkMocks\ProjectElemetExportHelper.cs (1)
52
ElementInfo.New<
ProjectChooseElement
, MockProjectChooseElementLinkRemoter>(),