I’m playing around with the Google Closure JS parser, because I’m considering replacing the JS parser in Cursive with it. However doing some tests with it it seems like it doesn’t support ES6 decorators - does anyone know if that’s the case? I’d be surprised since AFAICT the idea is that it should be able to parse/handle anything, but I might be wrong about that.
aren't decorators still just a proposal? don't think they ever actually made it into es6?
otherwise the parser is updated fairly regularly with most features as long as they are on some standard level
I’m not sure, I must admit.
Ok, thanks.
most recent thing they implement is the optional chaining stuff
foo?.bar
etc
Ah, ok. So presumably they’ll implement things like decorators if they become standard?
I'd assume so yes
https://github.com/tc39/proposal-decorators looks like its still just a proposal
typescript has them I believe but typescript support is limited in gcc
I think they have some support for parsing, and also converting TS types to Closure ones - presumably so they can use type definition files for third party libs.
Indeed, tsickle is quite cool
Not sure what the status of actual native support for TS is in GCC