Mikhail Glukhikh
1d2017b0fc
Cleanup: apply "cascade if..." inspection (+ some others)
2017-07-07 18:15:32 +03:00
Mikhail Glukhikh
9c06739594
Cleanup: apply "lift out..." inspection (+ some others)
2017-07-07 18:15:30 +03:00
takahirom
fe9d3f16d3
KT-18501: Fix to find KDoc even if KDoc is in ModifierList
2017-07-07 18:12:19 +03:00
Mikhail Zarechenskiy
039729908d
Minor, remove field that never used
2017-07-07 14:20:03 +03:00
Mikhail Zarechenskiy
3fed4e6dc7
Improve diagnostic for unresolved reference when function expected
...
#KT-10657 Fixed
2017-07-07 14:20:02 +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
Vyacheslav Gerasimov
2ec1a4311a
Implement Kotlin configurator for GSK
...
#KT-14965 Fixed
2017-07-07 03:23:17 +03:00
Nikolay Krasko
6a2f3d8065
Minor: remove let usage
2017-07-05 20:21:13 +03:00
Valentin Kipyatkov
8fabb6945e
Allow slice rewrite in trace when in IDE
2017-06-30 11:21:16 +03:00
Alexey Sedunov
50a38df8b1
Remove Parentheses: Forbid on call inside a call without argument list
...
#KT-18699 Fixed
2017-06-29 17:42:17 +03:00
Alexey Sedunov
20969f161c
Introduce Parameter: Fix NPE on invalid parameter name or type
...
EA-95189 Fixed
2017-06-29 17:42:16 +03:00
Mikhail Glukhikh
840847e47c
Code cleanup: several inspections applied
2017-06-29 16:25:57 +03:00
Nikolay Krasko
9eefbc2036
Perform 'all import resolve' once and protect it with lock (EA-79696)
...
Binding context and diagnostic structures are not thread-safe now and
need to be protected with the lock.
Fix flacky test testRemoveDuplicateImport
This also probably fixes some traces in EA-79696
2017-06-28 18:57:13 +03:00
Nikolay Krasko
9f873f869a
Print all diagnostics if null diagnostic found (EA-79696)
...
Diagnostics collection shouldn't contain nulls, but may do so when there
were unprotected simultaneous writes from several threads.
2017-06-28 18:57:12 +03:00
Toshiaki Kameyama
ed04b4debd
Add quick-fix for empty brackets after primary constructor
...
So #KT-18534 Fixed
2017-06-28 15:28:21 +03:00
Alexander Udalov
288c2b5dc9
Minor, remove some obsolete usages of ResolutionContext#replaceScope
2017-06-27 14:53:39 +03:00
Alexander Udalov
59b932a815
Optimize away unneeded FqName computation in KotlinBuiltIns
...
Before computing the FqName, check the simple class name first. This
code was responsible for about 20% of FqNameUnsafe instances created
during compilation of "core" modules
2017-06-27 14:53:39 +03:00
vitaly.khudobakhshov
d165ea9ea7
Add expression type string to the REPL API
...
PR-1131
2017-06-27 11:28:40 +02:00
Mikhail Zarechenskiy
87a41293e8
Improve diagnostics on callable reference of unresolved class
...
#KT-10839 Fixed
2017-06-22 15:02:13 +03:00
Mikhail Zarechenskiy
0579604653
Do not propose to specify constructor invocation in diagnostics
...
#KT-17188 Fixed
2017-06-22 15:02:10 +03:00
Mikhail Zarechenskiy
0f350f5db8
Don't report error on member that overrides open member from final class
...
#KT-14598 Fixed
2017-06-22 15:02:09 +03:00
Mikhail Zarechenskiy
9847278699
Report error about invalid if as expression on the if keyword
...
#KT-14633 Fixed
2017-06-22 14:18:11 +03:00
Mikhail Zarechenskiy
e40c8fff05
Make resolution status name more precise
2017-06-22 13:50:01 +03:00
Mikhail Zarechenskiy
7a9e1b2b1d
Improve diagnostic on overload resolution ambiguity
...
Report type mismatch on argument when a nullable argument is passed to non-null parameter.
Note that this affects only functions with simple types without generics
#KT-2007 Fixed
#KT-9282 Fixed
2017-06-22 13:41:31 +03:00
Mikhail Zarechenskiy
4b3ffd9418
If all candidates are invisible then don't report ambiguity
...
#KT-10045 Fixed
2017-06-22 13:41:28 +03:00
Mikhail Zarechenskiy
cd1ae7f0f2
Add resolution status to report about unsuccessful smartcast
...
#KT-10248 Fixed
#KT-11119 Fixed
2017-06-22 13:41:27 +03:00
Mikhail Zarechenskiy
0f4497256b
Report about wrong number of type arguments instead of ambiguity
...
#KT-7975 Fixed
#KT-1809 Fixed
2017-06-22 13:05:10 +03:00
Alexander Udalov
1f34dfabd5
Use kotlin.Lazy for script definition computation, add test for no definition
2017-06-22 10:19:06 +03:00
Ilya Chernikov
4178188e15
Fix name retrieval on exception reporting during analysis
2017-06-22 10:19:05 +03:00
Alexander Udalov
aed5b934f8
Introduce KotlinBuiltIns.isUnderKotlinPackage
...
Semantics is the same as in the former
FunctionDescriptor.hasSubpackageOfKotlin, but it doesn't compute the FQ
name of the descriptor
2017-06-21 15:42:57 +03:00
Mikhail Zarechenskiy
1e020644e1
Fix getting right bracket element for collection literal
2017-06-21 01:22:08 +03:00
Mikhail Zarechenskiy
837df66c19
Register reference contributor for collection literals
...
#KT-18551 Fixed
2017-06-21 00:16:28 +03:00
Alexander Udalov
9471f33c38
Refactor getDefaultSupertype, drop obsolete diagnostic
2017-06-20 14:39:47 +03:00
Mikhail Zarechenskiy
b53a3b324f
Fix 'infix call' diagnostic for in operation
...
#KT-8845 Fixed
2017-06-19 17:36:08 +03:00
Mikhail Zarechenskiy
d17f31c8b0
Refactoring: move several utils from js module to frontend
2017-06-19 17:36:07 +03:00
Mikhail Zarechenskiy
dbfea9b787
Fix TCE for invalid code with wrong callee expression
...
#KT-14927 Fixed
2017-06-19 17:36:06 +03:00
Mikhail Zarechenskiy
011231f2ab
Collect sam adapters for constructors in synthetic scope
...
Also place computation of synthetic constructors under one function
2017-06-16 16:44:52 +03:00
Derek Alexander
1f5cc059f9
Fix compiler failure related NO_EXPECTED_TYPE
...
Changes to turn KT-16016 into a compiler diagnostic error rather than a
stack trace
#KT-16016 Fixed
2017-06-16 15:52:09 +03:00
Dimach
d369fa094a
Add Boolean? == const to elvis conversion and vice versa #KT-15368 Fixed
...
Convert elvis to equality check implemented as inspection due
code style guide
2017-06-15 15:01:39 +03:00
Toshiaki Kameyama
2afe8989df
Make <modifier> intention handle sealed correctly #KT-18425 Fixed
2017-06-13 15:02:36 +03:00
Toshiaki Kameyama
ac03c91dcc
Make <modifier> intention inserts modifier between annotation and class keywords #KT-14092 Fixed
2017-06-12 18:32:35 +02:00
Alexey Sedunov
ea7d535ae7
Analyze Data Flow: Support properties with custom accessors
...
#KT-11994 In Progress
2017-06-09 17:19:20 +03:00
Alexey Sedunov
858b454138
Analyze Data Flow: Initial implementation
...
#KT-11994 In Progress
2017-06-09 17:19:15 +03:00
Valentin Kipyatkov
c08d862e9e
More correct algorithm for redundant type arguments detection
2017-06-08 23:26:38 +03:00
Toshiaki Kameyama
d90cc6f4cf
Intention Make private and friends should respect modifier order #KT-17823 Fixed
2017-06-08 10:41:07 +02: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
7febd846e8
Export 'intellij-core' in module 'frontend'
...
Remove intellij-core from dependencies of modules which already depend
on frontend or any module that exports frontend (such as frontend.java)
2017-06-06 14:29:26 +03:00
Alexander Udalov
2ed027219c
Remove dependency of module 'frontend' on 'plugin-api'
...
This breaks the circular dependency between them
2017-06-06 14:29:25 +03:00