예제 #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)
예제 #2
0
        public static void CallToAddEmitFunctionList(TypeMapper m, AnonymousFunctionBody anon, List <FunctionSpecialization> fss)
        {
            var g = new GenericsMapper();

            fss.Add(new FunctionSpecialization(anon, g));
        }
예제 #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]));
 }
예제 #4
0
 public FunctionSpecialization(IFunctionName body, GenericsMapper gen_map)
 {
     Body           = body;
     GenericsMapper = gen_map;
 }