Ejemplo n.º 1
0
 public static void AssemblyOperandEmit(ILWriter il, IOperand op, INamespace ns, TypeMapper m, Dictionary <LabelCode, string> labels, GenericsMapper g)
 {
     il.WriteLine();
     if (op is IReturnBind prop && prop.Return is { } && m[prop.Return].Type == VariableType.Property)
Ejemplo n.º 2
0
        public static void CallToAddEmitFunctionList(TypeMapper m, AnonymousFunctionBody anon, List <FunctionSpecialization> fss)
        {
            var g = new GenericsMapper();

            fss.Add(new FunctionSpecialization(anon, g));
        }
Ejemplo n.º 3
0
 public static bool EqualsFunctionCaller(FunctionSpecialization left, IFunctionName right, GenericsMapper right_g)
 {
     if (left.Body != right)
     {
         return(false);
     }
     return(left.GenericsMapper.Keys.And(x => left.GenericsMapper[x] == right_g[x]));
 }
Ejemplo n.º 4
0
 public FunctionSpecialization(IFunctionName body, GenericsMapper gen_map)
 {
     Body           = body;
     GenericsMapper = gen_map;
 }