public static JsExpression AddNullChecks(JsExpression expression) { var visitor = new JavascriptNullCheckAdder(expression.Parent); expression.AcceptVisitor(visitor); return((JsExpression)visitor.NewExpression ?? expression); }