Example #1
0
        public override void Compile(ByteCode bc)
        {
            bc.Emit_NewTable(_shared);

            foreach (var kvp in _ctorArgs)
            {
                kvp.Key.Compile(bc);
                kvp.Value.Compile(bc);
                bc.Emit_TblInitN();
            }

            for (int i = 0; i < _positionalValues.Count; i++)
            {
                _positionalValues[i].Compile(bc);
                bc.Emit_TblInitI(i == _positionalValues.Count - 1);
            }
        }