Commit Graph

35010 Commits

Author SHA1 Message Date
Alexey Tsvetkov 151cf7d073 Gradle IC: support multifile classes 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov f25d948b3f Gradle IC should fail if duplicating class is added
#KT-14554 fixed
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 67b3d54b37 In case of IC failure rebuild all files since last build
Before this change only files from last iteration were rebuilt.
It is correct and optimal, but there are many diffs with JPS/Gradle
logs.
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 7c16d086aa Groundwork for using IC without Gradle 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 7c1ebba57a Minor: do not print index in parametrized test name 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 6191fd87ec Minor: shorten references after move 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 68a7d88673 Refactoring: reorder IncrementalJvmCompilerRunner constructor parameters 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 3fabe6e4a7 Minor: update copyright in Gradle plugin 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 4a48c30f02 Cleanup: optimize imports in Gradle plugin 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 4ea9216672 Minor: replace File::isFile with File::exists 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov b0411de5c6 Minor: make Rebuild object 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 417f4f821b Minor: remove duplicated logger utils 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 368e48780e Refactoring: move IC classes into separate package 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 3bcd6e9a93 Refactoring: do not pass properties as parameters 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov c283515922 Refactoring: pass classpath and destination in K2JVMCompilerArguments 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 90dbf6c5fc Refactoring: delegate IC files management to IncrementalJvmCompilerRunner 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov d569651099 Refactoring: split GradleMessageCollector and remove Gradle Logger from IncrementalJvmCompilerRunner 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 78c115523c Refactoring: move all IC logic to IncrementalJvmCompilerRunner 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 0d1c803f71 Rebuild on cache corrupted exception
#KT-14055 fixed
2016-10-28 17:58:10 +03:00
Alexey Tsvetkov fafde1e948 Refactoring: introduce IncReporter to report IC progress 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov e32c19ce4e Refactoring: extract calculateSourcesToCompile 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 388dd9c2a6 Refactoring: return removed dirty files from calculateSourcesToCompile 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov b4c17dabf4 Refactoring: introduce class ChangedFiles 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov e9d4d85af2 Refactoring: extract parts of IC 2016-10-28 17:58:10 +03:00
Alexey Tsvetkov 26373d4952 Refactoring: pass incremental compilation state explicitly 2016-10-28 17:58:10 +03:00
Dmitry Jemerov 35130e7e5f Don't calculate property name if we aren't going to search for property accessors in Kotlin sources (KT-14508) 2016-10-28 16:47:35 +02:00
Dmitry Jemerov 127db98bbc Fix Kotlin definitions search for classes which can only be used in a local search scope (KT-13753) 2016-10-28 16:47:35 +02:00
Dmitry Jemerov e93f6e97cb KotlinDefinitionsSearcher: cleanup after J2K 2016-10-28 16:47:34 +02:00
Dmitry Jemerov 2fc601832c KotlinDefinitionsSearcher: J2K 2016-10-28 16:47:34 +02:00
Dmitry Jemerov 4281c13c28 KotlinDefinitionsSearcher: rename to .kt 2016-10-28 16:47:33 +02:00
Dmitry Jemerov 237504c3c7 Classes with no parent are top-level (EA-90570 - assert: KtPsiUtil.getOutermostClassOrObject) 2016-10-28 16:47:33 +02:00
Dmitry Jemerov 395bdf47e6 Use correct FQ name for running inner classes (KT-14153) 2016-10-28 16:47:27 +02:00
Dmitry Jemerov f783ba7573 Exclude local variables from file structure grouping (KT-14363) 2016-10-28 16:40:27 +02:00
Dmitry Jemerov 5d6f1cf3fa Fix handling of underscores in Markdown links (KT-14452) 2016-10-28 16:40:27 +02:00
Dmitry Jemerov 25c7dccd3b Don't consider function names as candidates for "Show expression type" (KT-14384) 2016-10-28 16:40:27 +02:00
Dmitry Jemerov 4246fcf256 "Show expression type" no longer shows elements which enclose the element at caret (KT-14436) 2016-10-28 16:40:27 +02:00
Dmitry Jemerov 57680ae003 Don't show literals in "show expression type" popup 2016-10-28 16:40:27 +02:00
Dmitry Jemerov e6c05c3a19 Don't show type for reference expressions inside KtCallableReference (KT-14530) 2016-10-28 16:40:27 +02:00
Mikhail Glukhikh 4f82958309 If then to elvis: do not report inspection if not used as expression
(cherry picked from commit 2adcb27)
2016-10-28 17:21:12 +03:00
Mikhail Glukhikh d1554217d3 Minor: if then to elvis
(cherry picked from commit 7703994)
2016-10-28 17:20:59 +03:00
Dmitry Jemerov be13aa0a3b Separate targets for writing compiler version and plugin version to template files 2016-10-28 15:14:08 +02:00
Vyacheslav Gerasimov 3ce1703ced Extract string resource intention action for android (KT-11715)
#KT-11715 Fixed
2016-10-28 15:30:22 +03:00
Mikhail Glukhikh 53ea5a2dbb Minor refactoring: if then to elvis 2016-10-28 15:00:55 +03:00
Mikhail Glukhikh f3c25c728e If then to elvis: no more allowed for if expressions with Unit result 2016-10-28 15:00:50 +03:00
Mikhail Glukhikh 8edd33ee92 If then to elvis: applied in IDEA, front-end & J2K modules 2016-10-28 15:00:21 +03:00
Mikhail Glukhikh e7cef79709 If then to elvis: now not applicable for is with type unrelated to original #KT-14520 Fixed 2016-10-28 15:00:09 +03:00
Mikhail Glukhikh 87d265dc1b If then to elvis: now not applicable for is with nullable type #KT-14545 Fixed 2016-10-28 15:00:04 +03:00
Mikhail Glukhikh 89e908dab5 If then to elvis: now not applicable for calls with nullable result #KT-14542 Fixed 2016-10-28 14:59:58 +03:00
Mikhail Glukhikh f390b9159a Minor refactoring: if then to elvis 2016-10-28 14:59:53 +03:00
Mikhail Glukhikh 7b316f72dc Lambda to reference: correct handling of named arguments using resolved call #KT-14550 Fixed 2016-10-28 14:59:48 +03:00