hacks for some examples added

tests added
kotlin lib clean up
This commit is contained in:
Pavel Talanov
2011-12-14 19:01:16 +04:00
parent ceeb8305f1
commit 0b714ad548
20 changed files with 467 additions and 782 deletions
@@ -339,4 +339,8 @@ public class AstUtil {
public static JsPrefixOperation not(JsExpression expression) {
return new JsPrefixOperation(JsUnaryOperator.NOT, expression);
}
public static JsBinaryOperation typeof(JsExpression expression, JsStringLiteral string) {
return equals(new JsPrefixOperation(JsUnaryOperator.TYPEOF, expression), string);
}
}