Exemple #1
0
        private static bool Class_desiredAssertionStatus(DynamicTypeWrapper.FinishContext context, CodeEmitter ilgen, MethodWrapper method, MethodAnalyzer ma, int opcodeIndex, MethodWrapper caller, ClassFile classFile, Instruction[] code, InstructionFlags[] flags)
        {
            TypeWrapper classLiteral = ilgen.PeekLazyClassLiteral();

            if (classLiteral != null && classLiteral.GetClassLoader().RemoveAsserts)
            {
                ilgen.LazyEmitPop();
                ilgen.LazyEmitLdc_I4(0);
                return(true);
            }
            else
            {
                return(false);
            }
        }