Implement support for -Xdefault-script-extension cli option

This commit is contained in:
Ilya Chernikov
2020-11-25 21:28:07 +01:00
parent 534342a566
commit 9a7d1948a7
8 changed files with 148 additions and 22 deletions
+2
View File
@@ -23,6 +23,8 @@ where advanced options include:
default is 'disable' in language version 1.2 and below,
'enable' since language version 1.3
-Xdump-declarations-to=<path> Path to JSON file to dump Java to Kotlin declaration mappings
-Xdefault-script-extension=<script filename extension>
Compile expressions and unrecognized scripts passed with the -script argument as scripts with given filename extension
-Xdisable-standard-script Disable standard kotlin script support
-Xir-do-not-clear-binding-context
When using the IR backend, do not clear BindingContext between psi2ir and lowerings
+1 -1
View File
@@ -1,2 +1,2 @@
error: unrecognized script file: $TESTDATA_DIR$/simple.kt; Specify path to the script file as the first argument
error: unrecognized script type: simple.kt; Specify path to the script file as the first argument
COMPILATION_ERROR