Ejemplo n.º 1
0
        /// <summary>
        /// Provides code to load address of given field onto the evaluation stack.
        /// </summary>
        /// <param name="field">field to load address.</param>
        /// <returns>Array of instructions (code) to perform the operation.</returns>
        public IEnumerable <IInstruction> GetFieldPtr(IField field)
        {
            var code = new AbcCode(_abc);

            code.GetFieldPtr(field);
            _body.Flags |= AbcBodyFlags.HasFieldPointers;
            return(code);
        }