Open this AST Explorer example.
The ObjectExpression returned by the function has both leadingComments defined and "parenthesizedExpression": true. When the CallExpression for goog.isDef is replaced, the pretty printer writes the leading comments inside the parentheses for the object expression.
Open this AST Explorer example.
The
ObjectExpressionreturned by the function has bothleadingCommentsdefined and"parenthesizedExpression": true. When theCallExpressionforgoog.isDefis replaced, the pretty printer writes the leading comments inside the parentheses for the object expression.