hegemonic / catharsis

A JavaScript parser for Google Closure Compiler and JSDoc type expressions.
MIT License
54 stars 14 forks source link

Allow type applications without a period, even if JSDoc mode is not enabled #36

Closed hegemonic closed 9 years ago

hegemonic commented 9 years ago

Closure Compiler now allows type applications that do not contain a period (for example, Array<string> instead of Array.<string>), and it omits the period when converting a type application to a string. See google/closure-compiler#640.

Catharsis currently requires the period unless JSDoc mode is enabled, and it includes the period when converting a type application to a string. Catharsis should be updated to match Closure Compiler.

hegemonic commented 9 years ago

On second thought, I'm not going to change the stringify behavior for now. The Closure Compiler docs still use the period.