48 references to ParserOptions
Microsoft.Build (48)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (4)
70
ParserOptions
.AllowAll,
177
ParserOptions
.AllowAll,
213
ParserOptions
.AllowAll,
331
ParserOptions
.AllowAll,
BackEnd\Components\RequestBuilder\IntrinsicTasks\PropertyGroupIntrinsicTask.cs (1)
66
ParserOptions
.AllowAll,
BackEnd\Components\RequestBuilder\TargetEntry.cs (3)
354
ParserOptions
.AllowPropertiesAndItemLists,
616
ParserOptions
.AllowPropertiesAndItemLists,
708
ParserOptions
.AllowPropertiesAndItemLists,
BackEnd\Components\RequestBuilder\TaskBuilder.cs (4)
398
ParserOptions
parserOptions = (_taskNode == null) ?
ParserOptions
.AllowPropertiesAndItemLists :
ParserOptions
.AllowAll;
1115
ParserOptions
.AllowAll,
Evaluation\Conditionals\Parser.cs (3)
46
private
ParserOptions
_options;
98
internal GenericExpressionNode Parse(string expression,
ParserOptions
optionSettings, ElementLocation elementLocation)
102
Assumed.True((optionSettings &
ParserOptions
.AllowProperties) != 0, "Properties should always be allowed.");
Evaluation\Conditionals\Scanner.cs (9)
35
private
ParserOptions
_options;
59
internal Scanner(string expressionToParse,
ParserOptions
options)
63
Assumed.True((options &
ParserOptions
.AllowProperties) != 0, "Properties should always be allowed.");
187
if ((_options &
ParserOptions
.AllowItemLists) == 0)
459
if ((_options &
ParserOptions
.AllowItemMetadata) ==
ParserOptions
.AllowItemMetadata)
479
if (((_options &
ParserOptions
.AllowBuiltInMetadata) == 0) &&
489
if (((_options &
ParserOptions
.AllowCustomMetadata) == 0) &&
615
if ((_options &
ParserOptions
.AllowItemLists) == 0)
Evaluation\ConditionEvaluator.cs (3)
182
ParserOptions
options,
215
ParserOptions
options,
309
ParserOptions
options,
Evaluation\Evaluator.cs (15)
992
if (EvaluateConditionCollectingConditionedProperties(propertyGroupElement, ExpanderOptions.ExpandProperties,
ParserOptions
.AllowProperties))
1007
if (EvaluateCondition(itemDefinitionGroupElement, ExpanderOptions.ExpandProperties,
ParserOptions
.AllowProperties))
1024
bool itemGroupConditionResult = lazyEvaluator.EvaluateConditionWithCurrentState(itemGroupElement, ExpanderOptions.ExpandPropertiesAndItems,
ParserOptions
.AllowPropertiesAndItemLists);
1310
if (!EvaluateConditionCollectingConditionedProperties(propertyElement, ExpanderOptions.ExpandProperties,
ParserOptions
.AllowProperties))
1331
bool itemConditionResult = lazyEvaluator.EvaluateConditionWithCurrentState(itemElement, ExpanderOptions.ExpandPropertiesAndItems,
ParserOptions
.AllowPropertiesAndItemLists);
1367
if (EvaluateCondition(itemDefinitionElement, ExpanderOptions.ExpandPropertiesAndMetadata,
ParserOptions
.AllowPropertiesAndCustomMetadata))
1377
if (EvaluateCondition(metadataElement, ExpanderOptions.ExpandPropertiesAndMetadata,
ParserOptions
.AllowPropertiesAndCustomMetadata))
1433
if (EvaluateConditionCollectingConditionedProperties(importGroupElement, ExpanderOptions.ExpandProperties,
ParserOptions
.AllowProperties, _projectRootElementCache))
1457
if (EvaluateConditionCollectingConditionedProperties(whenElement, ExpanderOptions.ExpandProperties,
ParserOptions
.AllowProperties))
1607
if (!EvaluateConditionCollectingConditionedProperties(importElement, newExpandedCondition, ExpanderOptions.ExpandProperties,
ParserOptions
.AllowProperties,
1705
ParserOptions
.AllowProperties, _projectRootElementCache))
2427
private bool EvaluateCondition(ProjectElement element, ExpanderOptions expanderOptions,
ParserOptions
parserOptions)
2432
private bool EvaluateCondition(ProjectElement element, string condition, ExpanderOptions expanderOptions,
ParserOptions
parserOptions)
2455
private bool EvaluateConditionCollectingConditionedProperties(ProjectElement element, ExpanderOptions expanderOptions,
ParserOptions
parserOptions, ProjectRootElementCacheBase projectRootElementCache = null)
2463
private bool EvaluateConditionCollectingConditionedProperties(ProjectElement element, string condition, ExpanderOptions expanderOptions,
ParserOptions
parserOptions, ProjectRootElementCacheBase projectRootElementCache = null)
Evaluation\LazyItemEvaluator.cs (2)
65
public bool EvaluateConditionWithCurrentState(ProjectElement element, ExpanderOptions expanderOptions,
ParserOptions
parserOptions)
74
ParserOptions
parserOptions,
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (2)
207
if (!EvaluateCondition(metadataElement.Condition, metadataElement, metadataExpansionOptions,
ParserOptions
.AllowAll, _expander, _lazyEvaluator))
243
ParserOptions
.AllowAll,
Instance\ProjectInstance.cs (1)
2353
ParserOptions
.AllowPropertiesAndItemLists,
Instance\TaskRegistry.cs (1)
293
ParserOptions
.AllowPropertiesAndItemLists,