Commit Graph

14834 Commits

Author SHA1 Message Date
Mikhail Glukhikh 74ee9ce68b Fix "remove explicit type arguments" in J2K
Do not delete type arguments if intention is not applicable just befor
2017-05-31 12:47:56 +03:00
Mikhail Glukhikh 9c15db93d9 Inline: more accurate handling of type arguments
Partial revert of b8cc7c2ca6
Soften requirements in remove type arguments intention in this mode
So #KT-17622 Fixed
Related to KT-17623
2017-05-31 12:47:50 +03:00
Mikhail Glukhikh 38d6c597a3 Handle expected type more precisely in RemoveExplicitTypeArguments
So #KT-17623 Fixed
2017-05-31 12:46:59 +03:00
Mikhail Glukhikh c67f8c07d2 Minor cleanup 2017-05-31 12:46:47 +03:00
Mikhail Glukhikh 00fa7c8166 Minor cleanup: MoveReceiverAnnotationFix 2017-05-30 15:58:22 +03:00
Kirill Rakhman 08bd212d82 Add quickfix for @receiver applied to extension member instead of type
So #KT-14648 Fixed
2017-05-30 15:47:21 +03:00
Dmitry Neverov b206f6288d Convert to primary constructor preserves accessors #KT-17996 Fixed 2017-05-30 15:35:54 +03:00
Simon Ogorodnik f8914013ef Fix infinity deferred element unfolding in J2K
#KT-13146 fixed
2017-05-29 20:26:45 +03:00
Simon Ogorodnik d617b1d869 Fix IfThenToSafeAccessIntention broken by refactoring
Broken in 66c5717adc
2017-05-26 17:32:47 +03:00
Valentin Kipyatkov 87e3725306 Do not report property as unused when it is used
#KT-17062 Fixed
2017-05-26 16:37:38 +03:00
Valentin Kipyatkov 986eaeb7ea Refactoring 2017-05-26 16:37:37 +03:00
Valentin Kipyatkov d53aa28ddf Fixed expected type for setter 2017-05-26 16:37:37 +03:00
Valentin Kipyatkov db0309c39d Reorder 2017-05-26 16:37:37 +03:00
Valentin Kipyatkov 545384910c Special order of usage processing is not needed anymore 2017-05-26 16:37:37 +03:00
Valentin Kipyatkov c69375ebdc Remove redundant curly braces in string templates on inline 2017-05-26 16:37:37 +03:00
Valentin Kipyatkov ab1b985bac Inline Property supported for properties with setter
#KT-2638 Fixed
2017-05-26 16:37:36 +03:00
Valentin Kipyatkov e6bfa55534 Inline Property also supported for properties with getter 2017-05-26 16:37:36 +03:00
Valentin Kipyatkov 20686297e5 Refactored to not use too many local functions 2017-05-26 16:37:36 +03:00
Valentin Kipyatkov 940ce27925 Inline val: more correct and simple detection of write usages
#KT-17489 Fixed
2017-05-26 16:37:35 +03:00
Valentin Kipyatkov 55979aca74 Drop result value if it's not needed 2017-05-26 16:37:35 +03:00
Zalim Bashorov 13aeb171bd Provide more info for EA-89216 2017-05-26 15:06:32 +03:00
Dmitry Neverov 753b714544 Report cases when class member can be private 2017-05-26 13:29:01 +02:00
Dmitry Petrov c83b764c73 Update testData after changes in diagnostics 2017-05-26 13:58:46 +03:00
Dmitry Petrov a86fe89aae Include file name for package-level members in diagnostics 2017-05-26 13:58:46 +03:00
Dmitry Petrov 7979663e6c Update testData for changed diagnostic messages 2017-05-26 13:58:46 +03:00
Dmitry Petrov 17eab2865d Include containing declaration name in message for JVM signature clashes
#KT-9359 Fixed
2017-05-26 13:58:46 +03:00
Dmitry Petrov 7518119bff Fix diagnostic message for abstract member not implemented
Diagnostic messages should describe a problem,
and should not suggest taking actions.
That's a prerogative of quick fixes in IDE.

 #KT-5066 Fixed
2017-05-26 13:58:46 +03:00
Ilya Zorin 5e265b3d17 Convert intention "a..b-1 -> a until b" into weak warning inspection
So #KT-17895 Fixed
2017-05-26 09:48:04 +03:00
Dmitry Neverov 0fd42bc747 Don't suggest cast when !! is possible #KT-18033 Fixed 2017-05-26 09:47:57 +03:00
Mikhail Zarechenskiy 400ecd5e13 Support destructuring declarations in scripts and REPL
#KT-5620 In Progress
 #KT-15810 In Progress
2017-05-25 16:46:04 +03:00
Valentin Kipyatkov 40bbf82a41 Hint action to update usages on cut/paste of top-level declarations 2017-05-24 16:49:37 +03:00
nd cb5459b7d7 Don't suggest adding replaceWith in DeprecationLevel.HIDDEN (#1094)
#KT-17917 Fixed
2017-05-24 15:06:51 +02:00
nd 8d6d228bb8 Move property to constructor preserves vararg keyword (#1095)
#KT-18035 Fixed
2017-05-24 14:58:30 +02:00
Alexander Udalov 965b4199f4 Fix compilation against JRE 9 on JPS
Write the modular JDK (9+) path to the module.xml file passed to the
compiler from the JPS plugin. This path is then recorded in the compiler
configuration in KotlinToJVMBytecodeCompiler.configureSourceRoots. This
is needed because in JPS plugin, we pass "-no-jdk" and thus no JDK home
path was recorded in the compiler configuration in
K2JVMCompiler.setupJdkClasspathRoots. Presence of JDK home path in the
configuration is crucial for JDK 9 support (see
KotlinCoreEnvironment.Companion.createApplicationEnvironment), because
classes there can only be loaded with the special "jrt" file system, not
as .class files in .jar files

 #KT-17801 Fixed
2017-05-24 15:46:57 +03:00
shiraji c8e58ce9ab Fix WrapWithSafeLetCallFix ignore extension method
Related to KT-17726
2017-05-24 14:02:01 +03:00
Mikhail Glukhikh bd73916d99 Minor cleanup 2017-05-24 14:01:59 +03:00
Dmitry Neverov 46aaee5d05 Fix nullability quick-fixes with implicit receiver #KT-17726 Fixed 2017-05-24 14:01:58 +03:00
Dmitry Jemerov 4f08d2b16a Remove incorrect argument count check from TODO searcher 2017-05-23 18:36:17 +02:00
Nikolay Krasko d717da5413 Add language to formatting blocks to fetch indent settings propertly 2017-05-23 18:28:13 +03:00
Nikolay Krasko 8f964978da Minor: activate copy actual to expected file 2017-05-23 18:28:06 +03:00
Nikolay Krasko 287443cab9 Add not-null annotation to avoid warnings on getProjectDescriptor() 2017-05-23 18:26:21 +03:00
Pavel V. Talanov f701f8f590 Cache GSScope by dependencies in ScriptDependencyModuleInfo
Removing state in previous commit led to 'toVfsRoots' being called to often
2017-05-22 19:12:09 +03:00
Pavel V. Talanov 4f3b68f8e9 Avoid caching state in ScriptModuleInfos
This led to caching stale dependencies

 #KT-17770 Fixed
2017-05-22 18:37:00 +03:00
qx 152c8b521e Missed file 2017-05-22 18:34:27 +03:00
qx bc14ce740a KT-15309 Don't apply "Fix with 'asDynamic'" to member extension funcitons 2017-05-22 18:34:27 +03:00
Alexander Udalov f8e82f148a Drop TypeLazinessToken and LazyResolveToken 2017-05-22 18:15:19 +03:00
Pavel V. Talanov 8fc953f529 Modules with different language levels can't be analyzed together
"Supports additional builtIn members" setting
    is basically adding members to some types
If we analyze them toghether other modules would leak types
    that have those members (or don't) into other modules scopes
    leading to code that has erroneous highlighting

See KT-17357

#KT-17357 Fixed
2017-05-22 17:42:21 +03:00
fitermay d0991fffd2 Fix keyword completion in 'if' blocks
#KT-17914 fixed
2017-05-22 13:54:25 +03:00
Alexey Sedunov 75b73ecbcb Copy: Disable CopyKotlinDeclarationsHandler on non-source files 2017-05-22 13:51:08 +03:00
Alexey Sedunov 151b512a6c Kotlin Facet: Do not rewrite v2 configuration to latest version
This causes unwanted changes in configuration files
after plugin update
2017-05-22 13:51:07 +03:00