Explicit Api mode: prototype with check for missing explicit visibility

Add cli flag with 3-state switch
This commit is contained in:
Leonid Startsev
2019-05-24 15:18:23 +03:00
parent a7d60fbf2d
commit 7058492b55
10 changed files with 109 additions and 0 deletions
+3
View File
@@ -11,6 +11,9 @@ where advanced options include:
-Xtyped-arrays Translate primitive arrays to JS typed arrays
-Xallow-kotlin-package Allow compiling code in package 'kotlin' and allow not requiring kotlin.stdlib in module-info
-Xallow-result-return-type Allow compiling code when `kotlin.Result` is used as a return type
-Xapi-mode={enable|disable|migration}
Enable api mode, force compiler to report errors an all public API declarations without explicit visibility.
Use 'migration' level to issue warnings instead of errors.
-Xcheck-phase-conditions Check pre- and postconditions on phases
-Xcheck-sticky-phase-conditions
Run sticky condition checks on subsequent phases as well. Implies -Xcheck-phase-conditions