Commit Graph

24714 Commits

Author SHA1 Message Date
Valentin Kipyatkov 9e26d0eacf Graying members from smart cast receiver types that require explicit receiver cast
+ changed immediate member criteria (override member is not counted as immediate anymore)
+ fixed a bug in graying members
2015-08-14 17:38:29 +03:00
Valentin Kipyatkov b21226ac1c More correct calculation of smart casts in smart completion 2015-08-14 17:38:29 +03:00
Valentin Kipyatkov f3e7560593 Enabled test 2015-08-14 17:38:29 +03:00
Valentin Kipyatkov 7b149c10c1 UsePropertyAccessSyntaxIntention: handled case when property type is more specific 2015-08-13 17:29:03 +03:00
Valentin Kipyatkov 6fcb75cfb5 One more test added 2015-08-13 17:29:03 +03:00
Valentin Kipyatkov 1fd4d4fe11 More efficient and correct implementation of conflicts checking in UsePropertyAccessSyntaxIntention 2015-08-13 17:29:02 +03:00
Valentin Kipyatkov a5306d9e4b Minor optimization 2015-08-13 17:29:02 +03:00
Valentin Kipyatkov 0d27e7a259 Faster replacement of get/set to synthetic extensions in converter - don't search for extension property again 2015-08-13 17:29:01 +03:00
Valentin Kipyatkov 21639c4785 J2k post-processings based on diagnostics are included into the common scheme 2015-08-13 17:29:01 +03:00
Valentin Kipyatkov e66d0f71ac Implemented more general scheme of post-processing with intentions in J2K + added replacement of get/set with property access there 2015-08-13 17:29:00 +03:00
Valentin Kipyatkov 671b9f5d56 Finally fixed KT-8751 2015-08-13 15:02:52 +03:00
Sergey Mashkov 2f7193064f #KT-8708 migrate tests to new trimIdent() and prependIndent 2015-08-13 14:40:07 +03:00
Sergey Mashkov 84ef068f5d #KT-8708 refactor trimIndent, trimMargin, replaceIndent, replaceIndentByMargin, prependIndent 2015-08-12 18:45:10 +03:00
Sergey Mashkov b146b0eda9 Remove deprecated function usage 2015-08-12 18:45:10 +03:00
Sergey Mashkov c0078a53e6 Temporary move trimIndent implementations to tests as private members to avoid resolution ambiguity 2015-08-12 18:45:10 +03:00
Sergey Mashkov 7afa40590d KT-8708 Function to strip leading whitespace (stripMargin, trimMargin, stripIndent?) 2015-08-12 18:45:10 +03:00
Valentin Kipyatkov 468919f5d9 Fixed codegen crash on use of protected synthetic extension property 2015-08-12 18:17:09 +03:00
ligee d75bece6d0 Minor: moving a pom autogenerated by maven shade plugin to ignored targets dir 2015-08-12 17:03:09 +02:00
Ilya Ryzhenkov a717afd9db Fix NPE in checkLValue when selector is absent. Add test for incomplete syntax. 2015-08-12 17:08:16 +03:00
Valentin Kipyatkov 8104a78746 Fixed completion for type parameters broken recently 2015-08-12 13:34:28 +03:00
Dmitry Petrov b59bf6227f unqualified super: should be able to invoke methods of Any without extra hassle
when Any is an implicit immediate superclass
2015-08-12 12:14:14 +03:00
Ilya Chernikov 3b03cfaf4f Merge pull request #739 from JetBrains/rr/gradle-plugin-classloading-M13-2
merging gradle plugin classloading changes
2015-08-11 17:26:11 +02:00
ligee 0c84648b6a Minor: style fixes after review 2015-08-11 17:22:50 +02:00
ligee 961905a8da Disabling gradle daemon test as unsafe, adding gradle wrapper 2.4, fixing maven build test
(cherry picked after edit from commit 703d71d)
2015-08-11 13:19:03 +02:00
ligee 43aaacaa06 Fixing source build script search, attempt to fix KT-8705
(cherry picked from commit 89c5885)
2015-08-11 13:18:19 +02:00
ligee 05e8a080a9 Refactoring test base class to support gradle options and daemon stopping, implementing daemon build test with memory check
(cherry picked from commit a28ce9e)
2015-08-11 13:17:28 +02:00
ligee 97bc3005f4 Some more minor fixes after review
(cherry picked from commit 1ffdeff)
2015-08-11 13:16:08 +02:00
ligee c2c1fb2d0a moving embeddable compiler jar creation to libraries/maven, using maven-shade-plugin instead of jarjar; configuring more relocations of 3-party libs
(cherry picked from commit c905770)
2015-08-11 13:16:07 +02:00
ligee 5b9094301c Fixing minor issues after review
(cherry picked from commit 928769e)
2015-08-11 13:16:07 +02:00
ligee 0a9f98545b Dropping custom classloading again, now without creating a transparent one, restoring cleanup for gradle <2.4 to minimize leaks under daemon, adding diagnostics
(cherry picked from commit a3b7be4)
2015-08-11 13:16:00 +02:00
ligee 3b322520bd Using isolated classloader again, but as a singleton; regular compiler jar instead of embeddable; more logging
(cherry picked from commit 6801d8a)
2015-08-11 13:15:24 +02:00
ligee ee73373441 Implementing simple classloading for plugin core, since embeddable compiler allows it 2015-08-11 13:15:23 +02:00
ligee d08570b8a8 Adding new target - embeddable compiler (after jarjar), using it in the gradle plugin
(cherry picked from commit bf4b26f)
2015-08-11 13:15:23 +02:00
Valentin Kipyatkov 41f80cde9e Checked that "KT-6898 References to type arguments of unresolved class name are not resolved" has been fixed 2015-08-11 13:51:29 +03:00
Valentin Kipyatkov ae552f49a7 Added test for KT-8471 2015-08-11 13:35:32 +03:00
Valentin Kipyatkov 209281fbab More correct suppression of error 2015-08-11 13:21:57 +03:00
Valentin Kipyatkov bce691bf8c Moved resolve of type arguments into other place 2015-08-11 13:21:57 +03:00
Valentin Kipyatkov e3bca3010c Fixed infinite recursion 2015-08-11 13:21:57 +03:00
Valentin Kipyatkov 7f42c8b482 No report of wrong class literal for unresolved 2015-08-11 13:21:57 +03:00
Valentin Kipyatkov ceae7eda39 Fixed test data 2015-08-11 13:21:56 +03:00
Valentin Kipyatkov 98c970d394 Fixed resolving class name before dot and nothing else 2015-08-11 13:21:56 +03:00
Valentin Kipyatkov 8b749ee76d KT-6891 Type argument of generic type before dot is not resolved
KT-7373 Type parameter names are not suggested
KT-6838 Class declared in same file is not suggested in completion

 #KT-6891 Fixed
 #KT-7373 Fixed
 #KT-6838 Fixed
2015-08-11 13:21:56 +03:00
Valentin Kipyatkov f658cce1f1 KT-8176 References to type arguments are not resolved when number of them does not match type parameters
KT-8078 FQ-name inserted on class name completion in type arguments

 #KT-8176 Fixed
 #KT-8078 Fixed
2015-08-11 13:21:56 +03:00
Mikhail Glukhikh de78ab6fe6 Some psi factory functions are dropped 2015-08-11 10:38:23 +03:00
Mikhail Glukhikh adf43519d6 Code mover fix: correct commas / semicolons after enum entries, relevant test fixes, extra tests 2015-08-11 10:38:20 +03:00
Mikhail Glukhikh 3f14e74b08 Drop old enum syntax. Comma / semicolon are now a syntactic part of enum entry.
Comma must present now between enum entries, semicolon between last entry & first member, constructor calls must be without colons / specifiers.
A swarm of tests fixed accordingly.
2015-08-11 10:38:10 +03:00
Mikhail Glukhikh e5ab7de870 Enum entry stub name fixed 2015-08-11 10:38:02 +03:00
Mikhail Glukhikh 3793d99b00 Decompiler fix: enum entries are now separated by , and have ; at the end, relevant tests fixed 2015-08-11 10:37:48 +03:00
Ilya Gorbunov 15d69499d0 Stop matching after the end of the input sequence was reached.
#KT-8763 Fixed
2015-08-11 05:11:32 +03:00
Michael Nedzelsky c74577951e minor fix in idea/testData: ImplementFunctionType.kt -> implementFunctionType.kt 2015-08-11 04:23:18 +03:00