Exemplo n.º 1
0
 public static Macro <T1, T2, T3, T4, T5, TRes> Create <T1, T2, T3, T4, T5, TRes> (
     Expression <Func <Macro <T1, T2, T3, T4, T5, TRes> > > member, Ast.Macro macro)
 {
     Add((member.Body as MemberExpression).Member, new Macro(macro));
     return(new Macro <T1, T2, T3, T4, T5, TRes> ((a1, a2, a3, a4, a5) => default(TRes)));
 }
Exemplo n.º 2
0
 internal Macro(Ast.Macro macro)
     : this(macro, null, null)
 {
 }
Exemplo n.º 3
0
 public static Macro <TRes> Create <TRes> (Expression <Func <Macro <TRes> > > member,
                                           Ast.Macro macro)
 {
     Add((member.Body as MemberExpression).Member, new Macro(macro));
     return(new Macro <TRes> (() => default(TRes)));
 }
Exemplo n.º 4
0
 internal Macro(Ast.Macro macro, Ast.Program program, HashSet <Type> typesDefined)
 {
     AstMacro     = macro;
     Program      = program;
     TypesDefined = typesDefined;
 }