NotImplementedException UnsupportedOperatorException() { string msg = String.Format("Unsupported binary operator: '{0}' ({1}).", JSTokenizer.Explain(Expr.BinaryOperatorToken), (int)Expr.BinaryOperatorToken); return(new NotImplementedException(msg)); }
public override string ToString() { return(JSTokenizer.Explain(TokenType) + Expression.ToString()); }
/// <summary> /// This is just to ease debugging. /// </summary> /// <returns>Readable expression.</returns> public override string ToString() { return(Left.ToString() + JSTokenizer.Explain(BinaryOperatorToken) + Right.ToString()); }
NotSupportedException UnsupportedOperatorException() { string msg = String.Format("Unsupported unary operator: '{0}' ({1}).", JSTokenizer.Explain(Expr.TokenType), (int)Expr.TokenType); return(new NotSupportedException(msg)); }