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
Alexey Andreev
b70c52e41f
Fix JS source maps for optional arguments
...
Also, when function has expression body, use expression instead
of function declaration to mark return statement.
2017-06-07 11:13:46 +03:00
Alexey Andreev
6f0e4c4deb
Fix JS source maps for data class synthetic methods
2017-06-07 11:13:46 +03:00
Alexey Andreev
5bc6c07f9e
Fix JS source maps for companion objects of enum
2017-06-07 11:13:45 +03:00
Alexey Andreev
c9545f291a
Fix JS source maps for properties without initializer
2017-06-07 11:13:44 +03:00
Vyacheslav Gerasimov
fdf098d65c
Add gutter icon with navigation to related files for Android components
2017-06-06 20:47:30 +03:00
Vyacheslav Gerasimov
3f03b05bd3
Fix Android gutterIcon test, use findGuttersAtCaret method
2017-06-06 20:47:21 +03:00
Vyacheslav Gerasimov
643e3587cc
Kotlin UAST should visit property delegate expression
...
#KT-15164 Fixed
2017-06-06 20:47:01 +03:00
Vyacheslav Gerasimov
15bfd4439a
Fix AddTargetVersionCheckQuickFix, generate else branch with TODO
...
when surrounded statement used as expression
#KT-17786 Fixed
#KT-17788 Fixed
2017-06-06 20:46:53 +03:00
Vyacheslav Gerasimov
33c3ba815f
Fix Android SuppressLint and Api quickfixes: proper annotation placing
...
#KT-17783 Fixed
#KT-17787 Fixed
2017-06-06 20:46:40 +03:00
Alexander Udalov
e6001f57fa
Remove dependency of module 'backend' on 'backend.jvm' and 'ir.tree'
...
This breaks the circular dependency between 'backend' and 'backend.jvm'
2017-06-06 19:55:06 +03:00
Alexander Udalov
cf04157ec8
Ignore gradle build directories in the root module
2017-06-06 19:52:43 +03:00