Converts the given AST or AST subtree into a JS literal.
The returned literal will be a literal representation of the given AST. However, assertions maybe converted to
builtin JS RegExp assertions (e.g \b, $) instead of using the literal lookahead/lookbehind form.
Converts the given AST or AST subtree into a JS literal.
The returned literal will be a literal representation of the given AST. However, assertions maybe converted to builtin JS RegExp assertions (e.g
\b
,$
) instead of using the literal lookahead/lookbehind form.