Minor: Use Kotlin reflection in usage printing and update test data
This commit is contained in:
+11
-11
@@ -1,19 +1,19 @@
|
||||
Usage: kotlinc-js <options> <source files>
|
||||
where advanced options include:
|
||||
-Xtyped-arrays Translate primitive arrays to JS typed arrays
|
||||
-Xfriend-modules-disabled Disable internal declaration export
|
||||
-Xfriend-modules=<path> Paths to friend modules
|
||||
-Xno-inline Disable method inlining
|
||||
-Xrepeat=<count> Repeat compilation (for performance analysis)
|
||||
-Xskip-metadata-version-check Load classes with bad metadata version anyway (incl. pre-release classes)
|
||||
-Xfriend-modules-disabled Disable internal declaration export
|
||||
-Xtyped-arrays Translate primitive arrays to JS typed arrays
|
||||
-Xallow-kotlin-package Allow compiling code in package 'kotlin'
|
||||
-Xreport-output-files Report source to output files mapping
|
||||
-Xplugin=<path> Load plugins from the given classpath
|
||||
-Xmulti-platform Enable experimental language support for multi-platform projects
|
||||
-Xno-check-impl Do not check presence of 'impl' modifier in multi-platform projects
|
||||
-Xintellij-plugin-root=<path> Path to the kotlin-compiler.jar or directory where IntelliJ configuration files can be found
|
||||
-Xcoroutines={enable|warn|error}
|
||||
Enable coroutines or report warnings or errors on declarations and use sites of 'suspend' modifier
|
||||
-Xintellij-plugin-root=<path> Path to the kotlin-compiler.jar or directory where IntelliJ configuration files can be found
|
||||
-Xmulti-platform Enable experimental language support for multi-platform projects
|
||||
-Xno-check-impl Do not check presence of 'impl' modifier in multi-platform projects
|
||||
-Xno-inline Disable method inlining
|
||||
-Xplugin=<path> Load plugins from the given classpath
|
||||
-Xrepeat=<count> Repeat compilation (for performance analysis)
|
||||
-Xreport-output-files Report source to output files mapping
|
||||
-Xskip-metadata-version-check Load classes with bad metadata version anyway (incl. pre-release classes)
|
||||
|
||||
Advanced options are non-standard and may be changed or removed without any notice.
|
||||
OK
|
||||
OK
|
||||
|
||||
Vendored
+15
-15
@@ -1,29 +1,29 @@
|
||||
Usage: kotlinc-js <options> <source files>
|
||||
where possible options include:
|
||||
-output <path> Output file path
|
||||
-no-stdlib Don't use bundled Kotlin stdlib
|
||||
-libraries <path> Paths to Kotlin libraries with .meta.js and .kjsm files, separated by system path separator
|
||||
-main {call,noCall} Whether a main function should be called
|
||||
-meta-info Generate .meta.js and .kjsm files with metadata. Use to create a library
|
||||
-module-kind { plain, amd, commonjs, umd }
|
||||
Kind of a module generated by compiler
|
||||
-no-stdlib Don't use bundled Kotlin stdlib
|
||||
-output <path> Output file path
|
||||
-output-postfix <path> Path to file which will be added to the end of output file
|
||||
-output-prefix <path> Path to file which will be added to the beginning of output file
|
||||
-source-map Generate source map
|
||||
-source-map-embed-sources { always, never, inlining }
|
||||
Embed source files into source map
|
||||
-source-map-prefix Prefix for paths in a source map
|
||||
-source-map-source-roots <path>
|
||||
Base directories which are used to calculate relative paths to source files in source map
|
||||
-source-map-embed-sources { always, never, inlining }
|
||||
Embed source files into source map
|
||||
-meta-info Generate .meta.js and .kjsm files with metadata. Use to create a library
|
||||
-target { v5 } Generate JS files for specific ECMA version
|
||||
-module-kind { plain, amd, commonjs, umd }
|
||||
Kind of a module generated by compiler
|
||||
-main {call,noCall} Whether a main function should be called
|
||||
-output-prefix <path> Path to file which will be added to the beginning of output file
|
||||
-output-postfix <path> Path to file which will be added to the end of output file
|
||||
-language-version <version> Provide source compatibility with specified language version
|
||||
-api-version <version> Allow to use declarations only from the specified version of bundled libraries
|
||||
-X Print a synopsis of advanced options
|
||||
-help (-h) Print a synopsis of standard options
|
||||
-kotlin-home <path> Path to Kotlin compiler home directory, used for runtime libraries discovery
|
||||
-language-version <version> Provide source compatibility with specified language version
|
||||
-P plugin:<pluginId>:<optionName>=<value>
|
||||
Pass an option to a plugin
|
||||
-help (-h) Print a synopsis of standard options
|
||||
-X Print a synopsis of advanced options
|
||||
-version Display compiler version
|
||||
-verbose Enable verbose logging output
|
||||
-nowarn Generate no warnings
|
||||
-verbose Enable verbose logging output
|
||||
-version Display compiler version
|
||||
OK
|
||||
|
||||
Reference in New Issue
Block a user