Alexander Udalov
6eb5567895
REPL: fix open parenthesis not triggering "incomplete"
...
Check if all of the syntax errors are at EOF, not that there's a single one.
In case of open parenthesis two syntax errors are reported for some reason
2014-08-13 15:13:25 +04:00
Alexander Udalov
4213ce318e
REPL: don't fail on a callable reference
...
There should probably be a special kind of property, but at least it won't
throw an exception for now
2014-08-13 15:13:24 +04:00
Alexander Udalov
8d2ab0fd52
REPL: disable event expansion
...
Fixes problems with exclamation marks inside string literals. No tests added
because it's tedious to test REPL as it is (via ConsoleReader)
#KT-3940 Fixed
2014-08-13 15:13:24 +04:00
Alexander Udalov
d54871746e
REPL: minor refactoring & reformat, fix warnings
2014-08-13 15:13:23 +04:00
Alexander Udalov
a83d9a7dce
CLI: introduce alias "-cp" for "-classpath"
2014-08-13 11:10:42 +04:00
Alexander Udalov
b54d2ac0c5
CLI: don't fail on a wrong "-script" usage
2014-08-13 11:10:42 +04:00
Alexander Udalov
d3f201dd45
CLI: drop "-pp" flag for preloader profiling
...
It was never documented and was never supposed to be used. In the rare case
when someone must profile preloader, he can temporarily change "notime" to
"time" in the kotlinc-jvm bash/batch script
2014-08-13 11:10:41 +04:00
Alexander Udalov
5a792ca11f
CLI: output relative paths in diagnostic messages
2014-08-13 11:10:41 +04:00
Alexander Udalov
75db407208
Minor, reuse existing constant
2014-08-13 11:10:41 +04:00
Alexander Udalov
850fc25ee0
CLI: drop "-tags" argument
...
It was only used for the compiler inside the IDE, and there we already invoke a
special method which outputs HTML only
2014-08-13 11:10:41 +04:00
Alexander Udalov
4a7dc25406
CLI: add an extra MessageRenderer parameter to compiler exec
...
Is supposed to be used instead of the "-tags" CLI argument
2014-08-13 11:10:41 +04:00
Alexander Udalov
1d2dbca27a
Minor, move utility method out of an interface
2014-08-13 11:10:40 +04:00
Alexander Udalov
97e57e3e3d
CLI: change "-suppress warnings" option to "-nowarn"
...
Following the rule of the least surprise: this option is named "-nowarn" in
other JVM language compilers. Besides, having an option with an argument which
can take exactly one predefined value is sort of confusing
2014-08-13 11:10:40 +04:00
Alexander Udalov
cf431ffab0
CLI: change argument naming convention
...
As in all other Unix/POSIX tools and JVM language compilers, multiple words
comprising the argument name should be lowercase, separated by dashes
2014-08-13 11:10:40 +04:00
Alexander Udalov
6da95e2cea
Maven plugin: support additional arguments, drop inline/optimize
2014-08-13 11:10:39 +04:00
Alexander Udalov
9442724821
Ant task: support additional arguments, drop inline/optimize
...
Only "-X" options are now supported as additional command line arguments
2014-08-13 11:10:38 +04:00
Alexander Udalov
45a57011d8
Simplify and enable by default inline/optimize/assertions
...
Inline, optimize, call assertions, param assertions are turned on by default
now almost everywhere; invert their meaning
2014-08-13 11:10:37 +04:00
Alexander Udalov
160cde09d6
CLI: Support "-X" advanced options, simplify some boolean options
2014-08-13 11:10:37 +04:00
Alexey Kudravtsev
55470737bd
update idea to 138.1510, introduce module "analysis"
2014-08-11 16:45:23 +04:00
Pavel V. Talanov
8496c535aa
Replace ModuleDescriptorImpl implementation
...
Change the way modules are configured:
Add dependencies on other modules instead of adding additional package fragment providers
Refactor related code
Drop DependencyKind
Hide common new module creation in CliLightClassGenerationSupport
2014-07-31 21:25:49 +04:00
Nikolay Krasko
bc07f6db06
Temp workaround for dependency in FileManagerImpl to Registry properties
...
Should be reverted after new EAP
2014-07-29 16:32:38 +04:00
Alexander Udalov
99025de748
Drop "-jar" and "-output" kotlinc-jvm CLI arguments
...
In favor of a brand new "-d" option
2014-07-26 00:32:28 +04:00
Alexander Udalov
de0f751207
Replace object$ -> OBJECT$, instance$ -> INSTANCE$ in the project
2014-07-26 00:21:05 +04:00
Zalim Bashorov
a811de9bbd
Minor: Unit.VALUE -> Unit in Java code.
2014-07-25 21:03:10 +04:00
Alexander Udalov
19b80f57cf
Support "-d" option in kotlinc-jvm
...
The intent is to unify "-output" and "-jar" options into the one "-d"
(destination)
2014-07-23 21:24:40 +04:00
Alexander Udalov
de0fd3818c
Drop "-src" in kotlinc-jvm
...
Free arguments should be used instead
2014-07-23 21:24:39 +04:00
Alexander Udalov
917938e57b
Update copyrights
2014-07-23 21:24:39 +04:00
Alexander Udalov
87439b8e0b
Drop "-sourceFiles" in kotlinc-js
...
Use free arguments instead, as is done in kotlinc-jvm and all sensible
compilers everywhere
Also fix some cases of AntTaskTest to be able to run them locally
2014-07-23 21:24:38 +04:00
Alexander Udalov
125c5e2942
Drop "-printArgs"
2014-07-23 16:01:12 +04:00
Alexander Udalov
cb80f95cab
Don't output "exec() finished with..." error message
...
It's useless because the result of the compiler is always evident (it outputs
either diagnostics or an exception stack trace)
2014-07-23 16:01:11 +04:00
Alexander Udalov
5003a2f570
Send compiler output to stderr instead of stdout
...
Test only stderr in kotlinc test now and move the '-script' test to integration
tests where both stdout and stderr is tested
2014-07-23 16:01:11 +04:00
Evgeny Gerashchenko
7e6b05554e
Always closing IncrementalCache after using. Fixed KannotatorJpsTest.
2014-07-22 21:18:16 +04:00
Denis Zharkov
0e683b0b99
Added "optimize" flag to settings everywhere
2014-07-15 21:34:32 +04:00
Alexander Udalov
35385fdd75
Minor, swap parameters of AnalyzerWithCompilerReport#analyzeAndReport
...
#KT-5459 Fixed
2014-07-14 21:39:26 +04:00
Alexander Udalov
9194b5d532
Minor, add NotNull to JetCoreEnvironment#getConfiguration
...
#KT-5460 Fixed
2014-07-14 20:44:39 +04:00
Evgeny Gerashchenko
c4573b8c5a
Got rid of ModuleDescription intermediate entity.
2014-07-10 15:05:19 +04:00
Pavel V. Talanov
16aefae602
Move descriptorToDeclaration utilities family to a separate util class DescriptorToSourceUtils
2014-07-09 19:07:26 +04:00
Pavel V. Talanov
d988256831
Refactor: Remove context parameter from BindingContextUtils.descriptorToDeclaration utilities family
2014-07-09 18:19:36 +04:00
Alexander Udalov
b9fd52739f
Move around some descriptor implementations
...
- mutable class, mutable package fragment and their dependencies go to module
'frontend'
- ModuleDescriptorImpl and PackageFragmentDescriptorImpl are moved to the
package "impl" in their module
2014-07-07 18:15:31 +04:00
Evgeny Gerashchenko
6501066274
Added hacky checks for accessing compiled functions from our module via package part instead of facade.
...
#KT-4590 fixed
2014-07-07 17:41:34 +04:00
Alexey Kudravtsev
5489ae08da
Make Kotlin accessible for UpSource.
...
Extracted some initialization of JetCoreEnvironment.
2014-07-04 17:12:29 +04:00
Pavel V. Talanov
0f5de48157
Drop JetFilesProvider service
2014-07-03 20:46:51 +04:00
Pavel V. Talanov
0a43c38bae
Change AnalyzerFacade#createSetup to accept a list of synthetic files and a scope for physical source files
...
Make DeclarationProviderFactory a project service
2014-07-03 20:46:50 +04:00
Pavel V. Talanov
9b5f349e61
Drop JetFilesProvider#allPackageFiles() and sampleToAllFilesInModule()
2014-07-03 20:46:47 +04:00
Alexander Udalov
d4c792d0ee
Fix errorlevel returned by kotlinc-*.bat scripts
...
Propagate errorlevel returned as an exit code from the compiler to the outside
world.
This may not work on Windows XP or earlier, but is required for Windows 7+
2014-07-02 00:38:49 +04:00
Alexander Udalov
e04f7c24fa
Alias 'kotlinc' for 'kotlinc-jvm'
2014-06-26 22:02:58 +04:00
Alexander Udalov
760fd73a0a
Don't launch REPL on "kotlinc-jvm -version"
...
#KT-3169 Fixed
2014-06-26 22:02:58 +04:00
Alexander Udalov
71262bdf14
Output to the current directory by default ("-output .")
2014-06-25 22:32:16 +04:00
Alexander Udalov
ca219f9880
Beautify kotlinc -help output
2014-06-25 22:32:16 +04:00
Alexander Udalov
ebec9e961c
Use hand-written usage information printer
...
Copy-pasted from com.sampullara.cli.Args
2014-06-25 22:32:15 +04:00