internal CodeGen(ICodeGenContext context)
		{
			this.context = context;
			this.cg = context as ConstructorGen;

			if (cg != null && cg.IsStatic)
				// #14 - cg is relevant for instance constructors - it wreaks havoc in a static constructor
				cg = null;

			il = context.GetILGenerator();
		}
Ejemplo n.º 2
0
        internal CodeGen(ICodeGenContext context)
        {
            this.context = context;
            this.cg      = context as ConstructorGen;

            if (cg != null && cg.IsStatic)
            {
                // #14 - cg is relevant for instance constructors - it wreaks havoc in a static constructor
                cg = null;
            }

            il = context.GetILGenerator();
        }
Ejemplo n.º 3
0
        public CodeGen(ICodeGenContext context, bool isOwner = true)
        {
            _isOwner = isOwner;
            Context  = context;
#if !PHONE8
            _cg = context as ConstructorGen;

            if (_cg != null && _cg.IsStatic)
            {
                // #14 - cg is relevant for instance constructors - it wreaks havoc in a static constructor
                _cg = null;
            }
#endif
            IL = context.GetILGenerator();
        }
Ejemplo n.º 4
0
        public CodeGen(ICodeGenContext context, bool isOwner = true)
		{
	        _isOwner = isOwner;
	        Context = context;
#if !PHONE8

            _cg = context as ConstructorGen;

			if (_cg != null && _cg.IsStatic)
				// #14 - cg is relevant for instance constructors - it wreaks havoc in a static constructor
				_cg = null;
            
#endif
            IL = context.GetILGenerator();
		}
Ejemplo n.º 5
0
 public CodeGen(ICodeGenContext context)
 {
     this.context = context;
     this.cg      = context as ConstructorGen;
     il           = context.GetILGenerator();
 }
 internal CodeGen(ICodeGenContext context)
 {
     this.context = context;
     this.cg = context as ConstructorGen;
     il = context.GetILGenerator();
 }