CreateStackParameter() public static method

Creates the stack parameter.
public static CreateStackParameter ( MosaType type, int index, string name ) : Operand
type MosaType The type.
index int The index.
name string The name.
return Operand
Esempio n. 1
0
        /// <summary>
        /// Sets the stack parameter.
        /// </summary>
        /// <param name="index">The index.</param>
        /// <param name="type">The type.</param>
        /// <param name="name">The name.</param>
        /// <param name="isThis">if set to <c>true</c> [is this].</param>
        /// <param name="offset">The offset.</param>
        /// <returns></returns>
        private Operand SetStackParameter(int index, MosaType type, string name, bool isThis, int offset)
        {
            var param = Operand.CreateStackParameter(type, index, name, isThis, offset);

            Parameters[index] = param;
            return(param);
        }
Esempio n. 2
0
        private Operand SetStackParameter(int index, MosaType type, string name)
        {
            var param = Operand.CreateStackParameter(type, index, name);

            Parameters[index] = param;
            return(param);
        }