public override void Visit(WUnaryExpression node) { node.Expression.Accept(this); string expr = this.dfsStack.Pop(); string nodeStr = $"{TsqlFragmentToString.UnaryExpressionType(node.ExpressionType)}{expr}"; this.dfsStack.Push(nodeStr); }
internal override string ToString(string indent) { if (OneLine()) { return(string.Format(CultureInfo.CurrentCulture, "{0}{1}{2}", indent, TsqlFragmentToString.UnaryExpressionType(ExpressionType), Expression.ToString(""))); } else { return(string.Format(CultureInfo.CurrentCulture, "{0}{1}\r\n{2}", indent, TsqlFragmentToString.UnaryExpressionType(ExpressionType), Expression.ToString(indent))); } }