コード例 #1
0
        private string ToStringFunctionStyle()
        {
            if (arg == null)
            {
                return(token.ToString());
            }
            StringBuilder builder = new StringBuilder();

            builder.Append(token.ToString());
            if (var != null)
            {
                builder.Append(' ');
                builder.Append(var.ToString());
                if (exp != null)
                {
                    builder.Append(' ');
                    builder.Append(',');
                    builder.Append(var.ToString());
                }
            }
            if (arg != null)
            {
                builder.Append(arg.ToString());
            }
            return(builder.ToString());
        }
コード例 #2
0
        public override string ToString()
        {
            if (arg == null)
            {
                return(primitive.ToString());
            }
            StringBuilder builder = new StringBuilder(primitive.ToString());

            builder.Append(arg.ToString());
            return(builder.ToString());
        }