Example #1
0
        protected override IEnumerable <LessNode> EvaluateCore(EvaluationContext context)
        {
            var extend = Extend?.EvaluateSingle <Extend>(context);

            var result = new Selector(CombineSequentialConstantIdentifiers(Elements.Select(e => e.EvaluateSingle <SelectorElement>(context))), extend);

            yield return(result);
        }
Example #2
0
        protected override IEnumerable <LessNode> EvaluateCore(EvaluationContext context)
        {
            var extension = extend.EvaluateSingle <Extend>(context);

            foreach (var extender in extension.Extenders)
            {
                foreach (var selector in context.CurrentScope.Selectors.Selectors)
                {
                    context.Extensions.Add(extender, selector, context.IsReference);
                }
            }

            yield break;
        }