Mikhail Zarechenskiy
3fed4e6dc7
Improve diagnostic for unresolved reference when function expected
...
#KT-10657 Fixed
2017-07-07 14:20:02 +03:00
Mikhail Zarechenskiy
0ae45a2835
Add test for obsolete issue
...
#KT-6502 Obsolete
2017-07-07 14:20:01 +03:00
Mikhail Zarechenskiy
c853ac95ad
Improve diagnostic message for annotations with @receiver
...
#KT-14647 Fixed
2017-07-07 14:19:59 +03:00
Mikhail Zarechenskiy
f5cd8c7e4d
Relax name shadowing warning on parameter names
...
#KT-17611 Fixed
2017-07-07 14:19:57 +03:00
Mikhail Zarechenskiy
daa8521729
Avoid getting descriptors for collection literals from built-ins scope
...
#KT-18845 Fixed
2017-07-07 14:14:30 +03:00
Dmitry Jemerov
1de685949b
Merge branch 'KT-18797' of https://github.com/nd/kotlin
2017-07-07 13:02:02 +02:00
Alexey Andreev
2f74fd6f90
Don't exit with error status when node.js tests fail
2017-07-07 11:57:32 +03:00
Vyacheslav Gerasimov
4cef8728d7
Add layout file name in completion for Android Extension properties
...
#KT-11051 Fixed
2017-07-07 03:24:19 +03:00
Vyacheslav Gerasimov
f59859842a
Fix Android extensions import rename
...
#KT-17890 Fixed
2017-07-07 03:24:10 +03:00
Vyacheslav Gerasimov
ee53e81e8e
Fix Android resource reference folding
...
Properly fold qualified expressions and handle nested references
#KT-18429 Fixed
2017-07-07 03:24:03 +03:00
Vyacheslav Gerasimov
7c6ffff198
Refactor Kotlin Gradle configurator
2017-07-07 03:23:34 +03:00
Vyacheslav Gerasimov
9810c10f8b
Implement Add Kotlin library quickfix for GSK
2017-07-07 03:23:26 +03:00
Vyacheslav Gerasimov
2ec1a4311a
Implement Kotlin configurator for GSK
...
#KT-14965 Fixed
2017-07-07 03:23:17 +03:00
Vyacheslav Gerasimov
2116877991
J2K: rename KotlinAndroidGradleModuleConfigurator .java -> kt
2017-07-07 03:22:28 +03:00
Simon Ogorodnik
9f340b40c2
Minor: Add test to check inferred types shown correctly in parameter info
...
#KT-11858 Obsolete
2017-07-06 20:40:53 +03:00
Alexander Udalov
0f15413d47
Minor, do not output stack trace on invalid contents of build file
2017-07-06 17:03:25 +03:00
Alexander Udalov
55468735df
Rename -module argument to -Xbuild-file
...
To prevent confusion with Java 9 module-related arguments
#KT-18754 Fixed
2017-07-06 17:03:25 +03:00
Alexey Sedunov
6200d07808
Minor: Fix compilation
2017-07-06 14:42:24 +03:00
Alexander Udalov
0b399fe7bb
Ignore testAutomaticModuleNames on older Java 9 builds
2017-07-06 13:01:16 +03:00
Alexander Udalov
158afdea2b
Improve sorting of compiler messages in GroupingMessageCollector
...
Ensure that messages reported on a file but with no line information are
reported before diagnostics related to code. This fixes
Java9ModulesIntegrationTest.testSeveralModulesWithTheSameName on some
machines
2017-07-06 13:01:16 +03:00
Alexander Udalov
3808ecbd1e
Minor, return a set in JavaModuleGraph.getAllDependencies
...
To prevent duplicate roots to be added
2017-07-06 13:01:15 +03:00
Alexander Udalov
ec6e4f2469
Minor, take List instead of Iterable in convertClasspathRoots
...
To emphasize that the order is important
2017-07-06 13:01:15 +03:00
Alexander Udalov
0f06140a3d
Check 'Multi-Release' manifest attribute value for multi-release jars
...
See http://openjdk.java.net/jeps/238
2017-07-06 13:01:14 +03:00
Alexander Udalov
7ab018da7b
Use ASM 6 API to read class files in IDE
...
Otherwise ASM throws exceptions trying to read module-info.class
#KT-13072 Fixed
2017-07-06 13:01:13 +03:00
Alexander Udalov
51fb02b2d5
Report warning for several modules with same name on module path
2017-07-06 13:01:13 +03:00
Alexander Udalov
e8a8bdc58e
Add test on cyclicly dependent Java 9 modules
2017-07-06 13:01:12 +03:00
Alexander Udalov
9199023952
Improve automatic module handling in module graph construction
...
Add all automatic modules to roots if at least one automatic module is
added, as per
http://cr.openjdk.java.net/~mr/jigsaw/spec/api/java/lang/module/package-summary.html
2017-07-06 13:01:12 +03:00
Alexander Udalov
c428505d4d
Load automatic module names correctly
...
Load the Automatic-Module-Name manifest entry value if it's present (see
http://mail.openjdk.java.net/pipermail/jpms-spec-observers/2017-May/000877.html ),
otherwise sanitize the name of the .jar file, throwing out all chars
except alphanumeric, duplicate dots and a version qualifier
2017-07-06 12:50:05 +03:00
Alexander Udalov
612e64d8e3
Load module-info.class from multi-release jars' META-INF/versions/
2017-07-06 12:50:04 +03:00
Alexander Udalov
5b9ee88b52
Remove --add-opens options to workaround Java 9 visibility checks
...
These options are no longer needed because the problematic code in
intellij-core that was accessing these private APIs has been dealt with
in the 171 branch.
The remaining options in "Codegen Tests" run configurations are needed
because of reflection usage on JDK internals in KtUsefulTestCase
2017-07-06 12:50:04 +03:00
Alexander Udalov
40d4eeab4f
Do not try to load jrt file system from JDK version < 9
...
The FileSystems.newFileSystem call failed if the compiler was being run
on Java 9 with -jdk-home $JDK_16
2017-07-06 12:50:03 +03:00
Alexander Udalov
0f4684da67
Fix codegen tests on JDK 9 with jdkKind = FULL_JDK
2017-07-06 11:58:03 +03:00
Alexey Andreev
4bd9866975
Remove unnecessary overriding methods, fix compilation
2017-07-06 10:34:05 +03:00
Alexey Andreev
ca63717124
Multiple fixes of JS source maps
...
- elvis expression with complex RHS
- destructuring declarations
- decomposition of `var` statement (for example, in case of
inline destructuring functions)
- `is` LHS &&/|| inline fun RHS
- argument assignment to temporary var on inline call site
- assignment of `next()` result to temporary var in `for` expression
- rethrow statement in exception handler
2017-07-06 10:20:49 +03:00
Alexey Andreev
f873834529
Fix JS source maps for objects and enums
2017-07-06 10:20:49 +03:00
Alexey Andreev
d8fe7e55db
Fix JS source maps for lambdas with captured variables
2017-07-06 10:20:48 +03:00
Alexey Andreev
ec2a5bf0ee
Fix JS source map for char boxing and unboxing
2017-07-06 10:20:47 +03:00
Alexey Andreev
be7f3a787c
Fix JS source maps for when expression
2017-07-06 10:20:46 +03:00
Alexey Andreev
d613124cb1
Generate JS source maps for temporary vars declarations and definitions
2017-07-06 10:20:46 +03:00
Alexey Andreev
64f335380f
Provide more source map info about statements in JS tests
2017-07-06 10:20:45 +03:00
Alexey Andreev
fa95f78e78
Generate JS source map for if statement got from optional argument
2017-07-06 10:20:44 +03:00
Alexey Andreev
1e74325c52
Generated source map for JS function's closing curly bracket
2017-07-06 10:20:44 +03:00
Alexey Andreev
4e18ea2d04
Fix JS source map of decomposed conditional expression
2017-07-06 10:20:43 +03:00
Alexey Andreev
b5218915f8
Fix associativity of generated comma operator in JS BE
2017-07-06 10:20:42 +03:00
Alexey Andreev
2122f57f51
Don't merge locations in JS source map test cases
...
Don't merge locations of containing if/while/do..while/for
statements with locations of conditions
2017-07-06 10:20:42 +03:00
Alexey Andreev
dea73ebecf
Refactor generator of JS source map
...
- refactor pipeline for generation of source map
- generate "empty" mappings for nodes that impossible
to map to something reasonable
- generate more accurate locations in source maps for specific
JS AST nodes
- for binary operation nodes parser now returns location
of binary operator tokens instead of location of first operand
- change completely how source map remapper works
2017-07-06 10:20:41 +03:00
Nikolay Krasko
6a2f3d8065
Minor: remove let usage
2017-07-05 20:21:13 +03:00
Nikolay Krasko
72611d1337
Fix extract refactoring for android extensions declarations (KT-11048)
...
Allow any target declarations in marking references. Otherwise conflicts
for references resolved to xml are not considered broken.
This also fix evaluate for extension fields.
#KT-11048 Fixed
2017-07-05 20:21:13 +03:00
Mikhail Glukhikh
a09b31b568
Classify all Kotlin inspections
2017-07-05 16:00:22 +03:00
Mikhael Bogdanov
2808e45b89
Enable test in js, native
2017-07-05 11:15:38 +02:00