Beispiel #1
0
 public MethodCompiler(Configuration configuration, TypeCompiler type, MethodDefinition method)
 {
     Configuration = configuration;
     Type          = type;
     Method        = method;
     MethodLabel   = CreateLabel();
 }
Beispiel #2
0
        public MethodCompiler GetMethodCompiler(MethodDefinition method, TypeCompiler caller = null)
        {
            foreach (var type in Types)
            {
                if (type != caller)
                {
                    var compiler = type.GetMethodCompiler(method, false);

                    if (compiler != null)
                    {
                        return(compiler);
                    }
                }
            }

            return(null);
        }