Skip to content

Documentation missing default language_in and language_out modes #3679

Open
@juj

Description

@juj

In wiki page https://github.com/google/closure-compiler/wiki/Flags-and-Options, the docs

--language_in VAL
Sets the language spec to which input sources should conform. Options: ECMASCRIPT3, ECMASCRIPT5, ECMASCRIPT5_STRICT, ECMASCRIPT6_TYPED (experimental), ECMASCRIPT_2015, ECMASCRIPT_2016, ECMASCRIPT_2017, ECMASCRIPT_2018, ECMASCRIPT_2019, STABLE, ECMASCRIPT_NEXT

--language_out VAL
Sets the language spec to which output should conform. Options: ECMASCRIPT3, ECMASCRIPT5, ECMASCRIPT5_STRICT, ECMASCRIPT_2015, ECMASCRIPT_2016, ECMASCRIPT_2017, ECMASCRIPT_2018, ECMASCRIPT_2019, STABLE

do not say what are the default options for these settings. That would be good to add?

Also, it would be good to describe the behavior of what happens if one passes only one of --language_in, or --language_out, but not the other? (e.g. does --language_in ECMASCRIPT_2018 without an explicitly specified --language_out directive imply --language_out ECMASCRIPT_2018? Or does e.g. --language_out ECMASCRIPT_2018 without an explicitly specified --language_in directive imply --language_in ECMASCRIPT_2018?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    featFeature Request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions