Esempio n. 1
0
        protected override IEnumerable <LessNode> EvaluateCore(EvaluationContext context)
        {
            var call = new RulesetCall(Selector.EvaluateSingle <Selector>(context), Important);

            foreach (var rulesetResult in context.CurrentScope.ResolveMatchingRulesets(call))
            {
                foreach (var evaluationResult in rulesetResult.Evaluate(context).Cast <Statement>())
                {
                    if (Important)
                    {
                        yield return(evaluationResult.ForceImportant());
                    }
                    else
                    {
                        yield return(evaluationResult);
                    }
                }
            }
        }
Esempio n. 2
0
 public RulesetEvaluationResult(Ruleset ruleset, RulesetCall call, Scope closure)
 {
     this.ruleset = ruleset;
     this.call    = call;
     this.closure = closure;
 }