Commit Graph

39483 Commits

Author SHA1 Message Date
Alexey Sedunov 566e701131 Rename: Disable Java member rename by reference to import alias
#KT-18076 Fixed
2017-06-08 14:37:32 +03:00
Alexey Sedunov 9c11c42ec2 Rename: Fix inplace refactoring for declarations with backticked names
#KT-15859 Fixed
2017-06-08 14:37:31 +03:00
Alexey Sedunov 2f88b6ef9b Copy: Rename only self-usages of the copied class
#KT-18034 Fixed
2017-06-08 14:37:30 +03:00
Alexey Andreev 4252d9786b Fix translation of interface with non-abstract methods in JS BE
Fix additional case of generic interfaces in KT-18187
2017-06-08 13:51:18 +03:00
Alexander Udalov 09e4775a10 REPL: display configuration-related messages after start
Previously these messages (e.g. non-existing jar path in classpath,
invalid language version, etc.) were shown after the user exited from
the REPL
2017-06-08 12:28:07 +03:00
Alexander Udalov cbb6269391 REPL: do not report warnings when there are errors
#KT-18349 Fixed
2017-06-08 12:28:06 +03:00
Alexander Udalov ed922deb93 REPL: do not output additional newline after compiler and runtime errors 2017-06-08 12:28:05 +03:00
Alexander Udalov bd9dd90649 REPL: print newline before exit
No tests added because the only way to test this seems to be to launch a
new process and send "Ctrl+D" into it, which seems cumbersome for such
small change
2017-06-08 12:28:04 +03:00
Alexander Udalov 6f22baa0f6 REPL: improve "are all errors at EOF" detection
Also ignore whitespaces and comments that appear after the last error in
a REPL line

 #KT-15172 Fixed
2017-06-08 12:26:54 +03:00
Dmitry Jemerov 2326b5faf3 Update testdata according to behavior changes 2017-06-08 10:43:19 +02:00
Toshiaki Kameyama d90cc6f4cf Intention Make private and friends should respect modifier order #KT-17823 Fixed 2017-06-08 10:41:07 +02:00
Mikhael Bogdanov 5dfe77b7c3 Fix array element processing 2017-06-08 09:23:50 +02:00
Mikhael Bogdanov 5bba5b2fb7 Bind annotation methods via primary constructor 2017-06-08 09:23:45 +02:00
Mikhael Bogdanov 514d25bdd4 Fix FAKE_OVERRIDE processing 2017-06-08 09:23:39 +02:00
imknown J. Kimu 317e24ce69 Fix Git CLI typo. (#1119)
No soft-wrapped words.
2017-06-08 08:28:06 +02:00
Simon Ogorodnik a6e153312c Prevent early deleting of not-null assertions
Before val to var conversion applied, smart-cast can cause
dropping not-null assertion, which will be required when val will
become var
2017-06-07 21:21:37 +03:00
Simon Ogorodnik e41c027c9a Add IDEA data-flow analysis to guess nullability
Add "if return..." folding to "return if"
2017-06-07 21:21:36 +03:00
Simon Ogorodnik 1f26353de4 Add measureTimeMillisWithResult function to addToStdlib 2017-06-07 21:21:34 +03:00
Simon Ogorodnik 682a278cb8 Fix deleting of semicolon when it required to mark statement empty
#KT-18142 fixed
#KT-18141 fixed
2017-06-07 21:08:08 +03:00
Dmitry Jemerov 558203e2bb Rename "Remove no constructor" to "Remove constructor call"; fix test 2017-06-07 19:49:45 +02:00
Toshiaki Kameyama bb5681fdb5 Add quick-fix for NO_CONSTRUCTOR error #KT-17842 Fixed 2017-06-07 19:47:36 +02:00
Ilya Zorin 862631b2ec Handle spaces around dot in type references and before type argument list 2017-06-07 19:43:14 +02:00
Andrius Semionovas 4acb95acb5 Fix KT-16725; Remove spaces between array indices 2017-06-07 19:39:55 +02:00
Zoltan Polgar 46ce9a6946 JS: Avoid declaration skeleton body generation in case of external class or object 2017-06-07 19:22:24 +02:00
Alexander Udalov 15e392bbd1 Fix compilation on Windows
JDK_16 environment variable may have spaces in it ("C:\Program
Files\..."), so it should be passed as a separate argument explicitly to
the kotlinc ant task
2017-06-07 16:26:09 +03:00
Alexander Udalov c851e9d206 CLI: use JDK 1.6 to compile the "kotlin" launcher script
"kotlin" is used to run programs compiled by "kotlinc" which supports
emitting JVM bytecode 1.6, so it should also be runnable on JDK 1.6
2017-06-07 14:57:44 +03:00
Alexander Udalov 96bd8cb3c2 Minor, move PluginCliParser and PluginURLClassLoader to subpackage 2017-06-07 14:56:58 +03:00
Alexander Udalov 534e8a5c50 Do not pack useless files into the compiler jar
Do not pack META-INF/services to compiler-quick from out directories
because they're packed from sources anyway in the pack-compiler target.
Also do not pack the "META-INF/jb/$$size$$" and "META-INF/LICENSE" files
found in some IntelliJ libraries. Licenses are not required in binaries,
and previously only the first of them was packed anyway
2017-06-07 14:41:13 +03:00
Alexander Udalov a614419b43 Fix KotlinJpsBuildTest.testHelp on Windows 2017-06-07 14:17:35 +03:00
Alexander Udalov 4844d720cc Remove dependency of module 'java-model-wrappers' on 'annotation-processing'
This breaks the circular dependency between them
2017-06-07 14:06:01 +03:00
Nikolay Krasko 0e693c39a3 Don't remove else block if it participate in other expression (KT-18309)
#KT-18309 Fixed
2017-06-07 13:49:34 +03:00
Dmitry Jemerov 5c993ce83f Fix Slack link 2017-06-07 11:58:00 +02:00
Pavel V. Talanov 2b153d5c10 Improve search for facade light class by kotlin file
LightClassUtil#getWrappingClass works for clashing facade fq names

 #KT-17855 Fixed
2017-06-07 11:19:23 +03:00
Mikhail Glukhikh 417b430033 Test reproducing KT-17855 2017-06-07 11:19:23 +03:00
Alexey Andreev 59240a4bd9 Report errors in JS source maps as compiler warnings 2017-06-07 11:13:55 +03:00
Alexey Andreev bf21cfd6e0 Use source map remapper in JS inliner 2017-06-07 11:13:55 +03:00
Alexey Andreev 9c4ec902b0 Fix test broken by changes in JS source maps 2017-06-07 11:13:54 +03:00
Alexey Andreev e43cc65702 Fix location reported by JS parser in case of long lines 2017-06-07 11:13:54 +03:00
Alexey Andreev 1dae687e7d Fix support of - and + prefix operators in JS parser
Treat number literal that represents minimum integer as integer node in
JS AST.

Treat +<number_literal> JS AST as unary node (+) containing single
number literal
2017-06-07 11:13:53 +03:00
Alexey Andreev 590954e9a8 Add processor that removes location from ambiguous JS AST nodes
There are cases when it's impossible to distinguish which JS node
owns location denoted by source map. Consider example:

a + b

Both root JsBinaryNode and its arg1 point to the same start location.
Out translator provides full information, though parser can't
produce the same AST. The second AST will miss some of the locations
available on the first one. This processor gets AST node produced
by translator and removes locations from there so that both ASTs
become equal.
2017-06-07 11:13:53 +03:00
Alexey Andreev c5bf76578a Add test infrastructure for JS source map parser and generator 2017-06-07 11:13:52 +03:00
Alexey Andreev ca738a9536 Prevent JS source map builder from inserting overlapping mappings
Check if newly inserted mapping is in the same position within
JS line and in this case omit the mapping
2017-06-07 11:13:51 +03:00
Alexey Andreev 174068c462 Add JS source map parser and remapper
JS source map remapper takes parsed source maps
together with JS AST with correct JS positioning information
and converts the latter into Kotlin positioning information
2017-06-07 11:13:51 +03:00
Alexey Andreev e784d1846e Fix warning in BasicBoxTest (JS) 2017-06-07 11:13:50 +03:00
Alexey Andreev 93ec81d2eb Add source information to parsed JS AST 2017-06-07 11:13:50 +03:00
Alexey Andreev 1d1da326be Refactor JS parser 2017-06-07 11:13:49 +03:00
Alexey Andreev 3a3720db8d Reformat JS parser for conformance with project's style settings 2017-06-07 11:13:49 +03:00
Alexey Andreev 41ad637bad Fix warnings in JS parser 2017-06-07 11:13:48 +03:00
Alexey Andreev 9d186cfc66 Fix JS source maps for temporary variables 2017-06-07 11:13:47 +03:00
Alexey Andreev 27a44f3282 Fix JS source maps for complex enum entry 2017-06-07 11:13:47 +03:00