Exemple #1
0
        public string ObjToString()
        {
            var boundExpression = _obj as BoundExpression;

            if (boundExpression != null)
            {
                return("BoundExpression {Instance=" + boundExpression.Instance +
                       ", Definition=" + boundExpression.Definition +
                       ", Type=" + boundExpression.Type + "}");
            }
            else
            {
                var astFormatter = new AstFormatter();
                //var objToString = astFormatter.Format(_obj);
                string objToString = _obj.ToString();
                if (objToString != _obj.GetType().FullName)
                {
                    return(objToString);
                }
                else
                {
                    return(_obj.GetType().Name);
                }
            }
        }
Exemple #2
0
 public FormattingVisitor(AstFormatter astFormatter)
 {
     _astFormatter = astFormatter;
 }