internal AggregateElement(IEnumerable <Declaration> declarations, Type resultType, string name, ExpressionMap expressionMap, IAggregatorFactory factory,
                           PatternElement source)
     : base(declarations, resultType)
 {
     _name          = name;
     _expressionMap = expressionMap;
     _factory       = factory;
     _source        = source;
 }
 protected internal virtual void VisitPattern(TContext context, PatternElement element)
 {
     foreach (ConditionElement condition in element.Conditions)
     {
         condition.Accept(context, this);
     }
     if (element.Source != null)
     {
         element.Source.Accept(context, this);
     }
 }
Example #3
0
 internal ForAllElement(IEnumerable <Declaration> declarations, PatternElement source, IEnumerable <PatternElement> patterns)
     : base(declarations)
 {
     _basePattern = source;
     _patterns    = new List <PatternElement>(patterns);
 }