Nikolay Krasko
726471d98e
Avoid loading psi for compiled kotlin file if it's possible to get declaration by name from stubs
2016-12-05 17:22:42 +03:00
Mikhail Glukhikh
299f477a1b
Call method references search in UnusedSymbolInspection.hasReferences to fix secondary constructor search
...
Makes #KT-12500 Fixed
Makes #KT-12501 Fixed
2016-12-05 10:58:21 +03:00
Alexey Andreev
784fe31053
JS: fix translation of calls with aliased labeled lambda arguments. Fix KT-14999
2016-12-05 09:19:06 +03:00
Ilya Gorbunov
a6fb61f5c3
Fix various maven pom problems:
...
- Add relativePath to samples pom.
- Specify versions of plugins
2016-12-04 14:15:34 +03:00
Alexey Andreev
df88ebb1b3
KT-12877: don't throw exception when @JsModule annotation is improperly used
2016-12-03 17:15:11 +03:00
Alexey Andreev
d40e923722
KT-12877: minor fixes and cleanup
2016-12-03 17:15:10 +03:00
Alexey Andreev
d1820b42ef
KT-12877: fix code formatting in tests
2016-12-03 17:15:10 +03:00
Alexey Andreev
d63a727474
KT-12877: support plain reference to declaration in UMD wrapper, support plain reference to package
2016-12-03 17:15:09 +03:00
Alexey Andreev
495c876b3b
KT-12877: add tests for UMD modules
2016-12-03 17:15:09 +03:00
Alexey Andreev
31a1d6ca66
KT-12877: add diagnostics on JsModule/JsNonModule:
...
1) for all cases of misusing of JsModule report on JsNonModule as well
2) report about non-top-level declarations with JsModule/JsNonModule
3) report about JsModule/JsNonModule declarations inside file marked with JsModule/JsNonModule
4) report about usages of declarations not marked with both JsModule and JsNonModule from UMD module
2016-12-03 17:15:08 +03:00
Alexey Andreev
08a7f9c298
KT-12877: reorganize JS module tests to support different module systems. Test JsModule in conjunction with JsNonModule and plain module type
2016-12-03 17:15:08 +03:00
Alexey Andreev
0238b182cc
KT-12877: add JsNonModule with support on front-end
2016-12-03 17:15:07 +03:00
Alexey Andreev
3f2ec6871d
KT-12877: add some front-end diagnostics for JsModule
2016-12-03 17:14:30 +03:00
Alexey Andreev
7be872ebca
KT-12877: modify tests to check whether mutable top-level properties of JsModule files are supported
2016-12-03 17:14:29 +03:00
Alexey Andreev
b1d8f91212
KT-12877: fix how native calls and property references are translated to be make them work with JsModule annotation
2016-12-03 17:14:29 +03:00
Alexey Andreev
ac703dfda6
KT-12877: serialize information about file annotations. For each top-level declaration store containing file. Use this information to properly handle file-targeted JsModule.
2016-12-03 17:14:29 +03:00
Alexey Andreev
6df40559f0
KT-12877: initial simple implementation of JsModule. Remove unnecessary ModuleDescriptor from several classes in pipeline
2016-12-03 17:14:28 +03:00
Ilya Gorbunov
75d80acac9
Rework existing unit tests used as samples.
2016-12-02 22:41:25 +03:00
Ilya Gorbunov
57cef391ac
Create a separate project for stdlib samples.
2016-12-02 22:41:25 +03:00
Mikhail Zarechenskiy
160d43fe2e
Introduce new feature: division by zero in constant expressions
2016-12-02 17:42:56 +03:00
Anton Bannykh
3e4376f4ba
JS: don't omit guard for catch with Throwable type (KT-13616); don't generate guard for catch with dynamic type (KT-13615)
2016-12-02 17:13:02 +03:00
Alexey Sedunov
475ae0d638
Rename: Suggest respective parameter name for the local variable passed to function
...
#KT-14792 Fixed
2016-12-02 14:14:10 +03:00
Alexey Sedunov
b6d4bb4921
Create from Usage: Support adding type parameters to the referenced type
...
#KT-11760 Fixed
2016-12-02 14:14:09 +03:00
Alexey Sedunov
c773afdbfa
Intentions: Implement "Add names to call arguments" intention
...
#KT-14729 Fixed
2016-12-02 14:14:08 +03:00
Alexey Sedunov
890578a6a0
Introduce Type Alias: Forbid unchecking of required type arguments
2016-12-02 14:14:06 +03:00
Alexey Sedunov
2a594a5bcc
Create from Usage: Support generation of abstract members for superclasses. Skip non-abstract superclasses when generating abstract member
...
#KT-14019 Fixed
2016-12-02 14:14:05 +03:00
Alexey Sedunov
25cebbab4b
Extraction Engine: Do not wrap companion member references inside of the with call if it's disabled in extraction options
...
#KT-13781 Fixed
2016-12-02 14:14:04 +03:00
Alexey Sedunov
61210d6ba2
Move: Fix callable reference processing when moving to another package
...
#KT-14197 Fixed
2016-12-02 14:14:03 +03:00
Mikhail Glukhikh
0e9b024720
Plugin fix: intention description ConvertFinallyToUseCallIntention --> ConvertTryFinallyToUseCallIntention
2016-12-02 14:04:55 +03:00
Anton Bannykh
6301e3ec30
JS: Fix capturing class construction function for lambdas inside inline functions with reified type parameters (KT-13522).
2016-12-02 13:42:42 +03:00
Mikhail Glukhikh
729a3a34b8
Cleanup: remove empty primary constructor applied
2016-12-02 13:38:47 +03:00
Mikhail Glukhikh
f71ea8858b
Cleanup: remove empty constructor body applied
2016-12-02 13:38:42 +03:00
Mikhail Glukhikh
d5638dffaa
Cleanup: redundant if statement applied
2016-12-02 13:38:37 +03:00
Mikhail Glukhikh
96ae881c16
Cleanup: join declaration & assignment applied
2016-12-02 13:38:32 +03:00
Dmitry Petrov
e63abff7e8
Recognize possible generic property call chain ('a.b<T>.c') on '::' LHS.
2016-12-02 10:20:05 +03:00
Mikhail Glukhikh
4af9b274a1
KT-12100 convert try / finally to use: select use parameter after application
2016-12-01 20:39:19 +03:00
Mikhail Glukhikh
9ea326870d
KT-12100 convert try / finally to use: report intention only at try {
2016-12-01 20:39:14 +03:00
Mikhail Glukhikh
0cc52e2ff8
KT-12100 convert try / finally to use: safe close() is allowed in finally + correct new lines
2016-12-01 20:39:08 +03:00
Mikhail Glukhikh
0ac443066e
KT-12100 convert try / finally to use: 'this' receiver is now left as is
2016-12-01 20:39:03 +03:00
Mikhail Glukhikh
f513514c53
KT-12100 convert try / finally to use: 'this' cases, implementation via resolved call
2016-12-01 20:38:57 +03:00
Mikhail Glukhikh
468e975580
KT-12100 related: convert try / finally to use() call inspection introduced
2016-12-01 20:38:52 +03:00
Mikhail Glukhikh
59b2608354
"Convert try / finally to .use { } call intention introduced" #KT-12100 Fixed
2016-12-01 20:38:46 +03:00
Ilya Gorbunov
1f1403d31d
Minor: run configuration for binary-compatibility-validator uses maven build instead of JPS
2016-12-01 17:46:15 +03:00
Nikolay Krasko
6ea2526af8
Fix multiplatform tests on Windows
2016-12-01 17:38:07 +03:00
Mikhail Zarechenskiy
25c3b43858
Support Infinity and NaN in constant evaluator
...
This allows to store infinities and NaNs inside const vals
2016-12-01 16:08:53 +03:00
Nikolay Krasko
57964845ad
Check no runtime markers are misused in quick fix tests
...
(cherry picked from commit bab26d4)
2016-12-01 14:33:37 +03:00
Nikolay Krasko
dbe32b98ef
Filter also by kind to avoid getting enum descriptors from compiled code
2016-12-01 14:33:37 +03:00
Nikolay Krasko
6a9c368532
Auto-import does not suggest enum constant (KT-14100)
...
#KT-14100 Fixed
(cherry picked from commit 61730ee)
2016-12-01 14:33:37 +03:00
Denis Zharkov
cbebb06574
Do not return star-projections during approximation
...
See comment in test for clarification
#KT-14453 Fixed
2016-12-01 13:39:38 +03:00
Denis Zharkov
b8e1ce7a05
Report error on non-tail suspend-calls
...
It only concerns calls inside another suspend function
#KT-14924 In Progress
2016-12-01 10:11:37 +03:00