clojure.lang.CljCompiler.Ast.GenContext.CreateWithInternalAssembly C# (CSharp) Method

CreateWithInternalAssembly() public static method

public static CreateWithInternalAssembly ( string assyName, bool createDynInitHelper ) : GenContext
assyName string
createDynInitHelper bool
return GenContext
        public static GenContext CreateWithInternalAssembly(string assyName, bool createDynInitHelper)
        {
            GenContext ctx = CreateGenContext(assyName, assyName, ".dll", null, createDynInitHelper);
            AddInternalAssembly(ctx.AssemblyBuilder);

            #if CLR2
            // Massive kludge for .net 3.5 -- the RuntimeAssemblyBuilder yielded by reflection is not the same as AssemblyBuilder.
            Type t = CreateDummyType(ctx.ModuleBuilder);
            MethodInfo m = t.GetMethod("test");
            if (m != null && m.DeclaringType.Assembly != ctx.AssemblyBuilder)
                AddInternalAssembly(m.DeclaringType.Assembly);
            #endif

            return ctx;
        }