diff --git a/rewrite-javascript/src/main/java/org/openrewrite/javascript/JavaScriptValidator.java b/rewrite-javascript/src/main/java/org/openrewrite/javascript/JavaScriptValidator.java index 1cb5b82d..25aac2df 100644 --- a/rewrite-javascript/src/main/java/org/openrewrite/javascript/JavaScriptValidator.java +++ b/rewrite-javascript/src/main/java/org/openrewrite/javascript/JavaScriptValidator.java @@ -543,11 +543,13 @@ public J.ParameterizedType visitParameterizedType(J.ParameterizedType parameteri @Override public J.Parentheses visitParentheses(J.Parentheses parentheses, P p) { + visitAndValidate(parentheses.getTree(), J.class, p); return parentheses; } @Override public J.ControlParentheses visitControlParentheses(J.ControlParentheses controlParentheses, P p) { + visitAndValidate(controlParentheses.getTree(), J.class, p); return controlParentheses; }