Commit Graph

21407 Commits

Author SHA1 Message Date
Valentin Kipyatkov c99f3fd106 Refactoring code to be more Kotlin 2015-04-01 23:21:24 +03:00
Valentin Kipyatkov 3ff13ccf5d Converting ElementResolver to Kotlin (step 2) 2015-04-01 23:21:23 +03:00
Valentin Kipyatkov 2637bf608a Converting ElementResolver to Kotlin (step 1) 2015-04-01 23:21:23 +03:00
Valentin Kipyatkov f7a147f236 PsiReference.resolve() uses partial body resolve 2015-04-01 23:21:23 +03:00
Valentin Kipyatkov 6dc943a739 JetReference.resolveToDescriptors() requires BindingContext 2015-04-01 23:21:23 +03:00
Valentin Kipyatkov 04a6ebf0d6 Dropped JetReference.resolveMap() 2015-04-01 23:21:23 +03:00
Valentin Kipyatkov 67de85aed1 More usages of partial body resolve 2015-04-01 23:21:23 +03:00
Valentin Kipyatkov 4d2a34cc4e "Surround with" uses partial body resolve 2015-04-01 23:21:22 +03:00
Valentin Kipyatkov ff6853f300 Added BodyResolveMode parameter to JetElement.analyze() 2015-04-01 23:21:22 +03:00
Valentin Kipyatkov a8bb0162f8 Minor code improvements 2015-04-01 23:21:22 +03:00
Valentin Kipyatkov cd18b16407 Partial body resolve: fixed for ! and parenthesis in conditions 2015-04-01 23:21:22 +03:00
Valentin Kipyatkov 698d839eee Added a test 2015-04-01 23:21:22 +03:00
Valentin Kipyatkov f3799a0ce7 Partial body resolve correctly handles elvis operator 2015-04-01 23:21:22 +03:00
Valentin Kipyatkov 176ba937ba Partial body resolve filter works more precisely for if-statements 2015-04-01 23:21:21 +03:00
Valentin Kipyatkov 7a414336c1 Do not run partial body resolve if full body resolve already cached 2015-04-01 23:21:21 +03:00
Ilya Gorbunov 6aad2b2d65 Add dependency of kotlin-js-tests to kotlin-js-tests-junit. 2015-04-01 23:10:15 +03:00
Ilya Gorbunov cac058d5a3 Fix endsWith in JS always ignored character case, regardless of the ignoreCase parameter value.
startsWith, endsWith again use native implementation when possible.
2015-04-01 23:10:14 +03:00
Ilya Gorbunov 315badd5d1 Restore native js functions: startsWith, endsWith, contains.
startsWith and endsWith implementation taken from MDN.
2015-04-01 23:05:52 +03:00
Ilya Gorbunov 0717705f15 Add requireNotNull with lazy message. 2015-04-01 22:28:47 +03:00
Ilya Ryzhenkov 2f02024c24 checkLValue for array indexing expression should resolve set method #KT-7218 Fixed 2015-04-01 21:02:05 +03:00
Pavel V. Talanov a986d913c3 Remove traces of class object constraints feature from parser, frontend, tests and psi 2015-04-01 20:09:34 +03:00
Pavel V. Talanov 5fe8bb4a92 Drop ClassifierDescriptor#getClassObjectType()
Introduce utility for ClassDescriptor to use where necessary
2015-04-01 20:09:32 +03:00
Ilya Gorbunov b930f71b79 Fix split method usage in JS: split replaced with splitWithRegex or splitBy. 2015-04-01 18:17:08 +03:00
Ilya Gorbunov 95c2a4fb29 Fix split method usage: split temporary replaced with splitBy. 2015-04-01 18:17:06 +03:00
Natalia Ukhorskaya 907f402d30 Code fragments: getResolveScope should return scope for context element 2015-04-01 18:01:24 +03:00
Valentin Kipyatkov 36fb14a3fc KT-6923 Completion shouldn't show private symbols from compiled code
#KT-6923 Fixed
2015-04-01 17:46:10 +03:00
Valentin Kipyatkov 3b110f8ef8 KT-7194 No completion for member extension function inside itself
#KT-7194 Fixed
2015-04-01 17:46:10 +03:00
Valentin Kipyatkov 7e9314bd40 More accurate import conflict detection 2015-04-01 17:10:50 +03:00
Valentin Kipyatkov e22f28c061 Fixed a fail in import insertion 2015-04-01 17:10:50 +03:00
Alexander Udalov d6ceadf769 Revert erroneous change to .idea/compiler.xml 2015-04-01 16:44:44 +03:00
Dmitry Jemerov 6d56618d17 complete KDoc tag names after @, not only at line start
#KT-7139 Fixed

code review
2015-04-01 15:14:20 +02:00
Ilya Gorbunov f87dcff723 Fixed #KT-6476. last(predicate) and lastOrNull(predicate) use reverse iteration when possible. 2015-04-01 15:51:08 +03:00
Ilya Gorbunov d81895df77 Rename and deprecate ad-hoc IsNullOrEmpty. 2015-04-01 15:40:20 +03:00
Ilya Gorbunov 850d79e61a Remove negative variants of isEmpty and isBlank (may be included later). 2015-04-01 15:40:18 +03:00
Ilya Gorbunov ac4b207413 Add isEmpty, isBlank methods and their nullable and negating couterparts. 2015-04-01 15:40:17 +03:00
Stanislav Erokhin 4efb0dbf9a Fixed CAPTURED_IN_CLOSURE marker for primary constructor argument
#KT-7131 Fixed
2015-04-01 15:28:09 +03:00
Alexey Sedunov 9247f4f096 Quick-Fixes: Fix type checking scope for type mismatch in call argument 2015-04-01 13:41:27 +03:00
Alexey Sedunov eb594a2897 Extract Function: Approximate non-resolvable types with nearest resolvable supertype when possible
#KT-7120 Fixed
2015-04-01 13:41:26 +03:00
Alexey Sedunov a90d020859 Extraction Engine: Fix extraction of labeled and non-local returns 2015-04-01 13:41:24 +03:00
Alexey Sedunov 3bea49eedd Change Signature: Fix processing of enum constructors
#KT-7170 Fixed
2015-04-01 13:41:23 +03:00
Alexey Sedunov d65b55e147 Change Signature: Fix processing of lambda arguments 2015-04-01 13:41:22 +03:00
Svetlana Isakova 61d0bcdf76 KT-7068 None of the following functions can be called with two functions with extention function parameter
#KT-7068 Fixed
2015-04-01 11:57:15 +03:00
Nikolay Krasko ca98b19aba Wrong package light file with package class 2015-04-01 02:02:07 +03:00
Nikolay Krasko 055be2850f Fix accept() in light methods elements to avoid treating them as ClsElements 2015-04-01 02:02:01 +03:00
Nikolay Krasko 9d151d2ce8 Add ability to configure set of tools with in file 2015-04-01 02:01:59 +03:00
Nikolay Krasko 4e04d9b887 Add more toString() methods and additional wrapping for Kotlin elements 2015-04-01 02:01:55 +03:00
Nikolay Krasko ad23e9159c Refactoring: remove unnecessary subclassing PsiClass in marker interface 2015-04-01 02:01:53 +03:00
Nikolay Krasko a109223a07 Minor: fix compile errors in java test data 2015-04-01 02:01:51 +03:00
Denis Zharkov a4018d9eae Run "Add 'init' keyword in whole project" quickfix 2015-03-31 20:20:23 +03:00
Denis Zharkov 99f1ab333e Report illegal modifiers and annotations on primary constructor
#KT-7057 Fixed
 #KT-6772 Fixed
2015-03-31 20:20:22 +03:00