예제 #1
0
        public void Compile(ref AssemblyEmitter emitter)
        {
            emitter ??= new AssemblyEmitter("__dynamic");

            m_Conditionals = new IConditional[m_Conditions.Length];

            for (var i = 0; i < m_Conditionals.Length; ++i)
            {
                m_Conditionals[i] = ConditionalCompiler.Compile(emitter, Type, m_Conditions[i], i);
            }
        }
예제 #2
0
        public void Compile(ref AssemblyEmitter emitter)
        {
            if (emitter == null)
            {
                emitter = new AssemblyEmitter("__dynamic", false);
            }

            m_Conditionals = new IConditional[m_Conditions.Length];

            for (int i = 0; i < m_Conditionals.Length; ++i)
            {
                m_Conditionals[i] = ConditionalCompiler.Compile(emitter, m_ObjectType, m_Conditions[i], i);
            }
        }