Пример #1
0
        public override string ToString()
        {
            var sb = new StringBuilder();

            sb.Append(OpCode.ToString());

            var prefix = " ";

            if (_sourceRegister.IsUsed)
            {
                sb.Append(prefix); prefix = ", ";
                sb.Append(_sourceRegister.ToString());
            }
            if (_functor != null)
            {
                sb.Append(prefix); prefix = ", ";
                sb.Append(_functor);
            }
            if (_index >= 0)
            {
                sb.Append(prefix); prefix = ", ";
                sb.Append(_index.ToString(CultureInfo.InvariantCulture));
            }
            if (_referenceTarget != null)
            {
                sb.Append(prefix); prefix = ", ";
                sb.Append(_referenceTarget);
            }
            if (_targetRegister.IsUsed)
            {
                sb.Append(prefix); prefix = ", ";
                sb.Append(_targetRegister);
            }
            return(sb.ToString());
        }
Пример #2
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder();

            sb.Append(OpCode.ToString());

            string prefix = " ";

            if (m_sourceRegister.IsUsed)
            {
                sb.Append(prefix); prefix = ", ";
                sb.Append(m_sourceRegister.ToString());
            }

            if (m_functor != null)
            {
                sb.Append(prefix); prefix = ", ";
                sb.Append(m_functor.ToString());
            }

            if (m_index >= 0)
            {
                sb.Append(prefix); prefix = ", ";
                sb.Append(m_index.ToString());
            }

            if (m_referenceTarget != null)
            {
                sb.Append(prefix); prefix = ", ";
                sb.Append(m_referenceTarget.ToString());
            }

            if (m_targetRegister.IsUsed)
            {
                sb.Append(prefix); prefix = ", ";
                sb.Append(m_targetRegister.ToString());
            }

            return(sb.ToString());
        }