Evgeny Gerashchenko
ad8affe07c
Renamed and refactored test.
2014-06-04 11:36:42 +04:00
max-kammerer
010776fe08
Merge pull request #480 from nskvortsov/master
...
fix DSL in Android plugin
2014-06-04 10:16:22 +04:00
Alexey Sedunov
4463c67e28
Extract Function: Fix replacement of type references and constructor references
2014-06-03 18:17:14 +04:00
Alexey Sedunov
3d6fc6e015
Extract Function: Fix replacement of references with class receivers (objects, class objects, enum classes)
2014-06-03 18:17:13 +04:00
Alexey Sedunov
240f033f4f
Extract Function: Fix NPE caused by unmatched offset-to-reference maps
...
#KT-5001 Fixed
2014-06-03 18:17:12 +04:00
Alexey Sedunov
f4c21d3a28
Extract Function: Treat multi declarations as local variables
...
#KT-5054 Fixed
2014-06-03 18:17:10 +04:00
Alexey Sedunov
3a75aa27f0
Extract Function: Fix extraction of reference to class object property
...
#KT-5053 Fixed
2014-06-03 18:17:10 +04:00
Alexey Sedunov
1a7e6eab61
Extract Function: Utilize pseudo-value usage for return type inference
2014-06-03 18:17:09 +04:00
Alexey Sedunov
164338d6f5
Remove unused field
2014-06-03 18:17:08 +04:00
Alexey Sedunov
4a5d2e6728
Add tests for element -> pseudo-value mapping
2014-06-03 18:17:07 +04:00
Alexey Sedunov
d2c055e9da
Pseudocode: Introduce pseudo-value analysis
2014-06-03 18:17:05 +04:00
Valentin Kipyatkov
3ce96671d9
Java to Kotlin conversion: minor
2014-06-03 17:29:01 +04:00
Valentin Kipyatkov
b47c5975b2
Java to Kotlin conversion: fixed test data
2014-06-03 17:29:01 +04:00
Valentin Kipyatkov
6604af0bdf
Java to Kotlin conversion: dropped "NOT_OPEN" pseudo-modifier
2014-06-03 17:29:01 +04:00
Valentin Kipyatkov
66a83a4322
Java to Kotlin conversion: artificial constructors (when no primary detected) use var/val parameters
2014-06-03 17:29:01 +04:00
Valentin Kipyatkov
1be836a956
Java to Kotlin conversion: artificial constructor (when no primary detected) is generated private
2014-06-03 17:29:00 +04:00
Valentin Kipyatkov
ebcb04b73b
Java to Kotlin conversion: keep constructor access modifier
2014-06-03 17:29:00 +04:00
Valentin Kipyatkov
ffa3ff3bbd
Generating test output when file is missing: removing trailing whitespaces
2014-06-03 17:29:00 +04:00
Valentin Kipyatkov
86d718de29
Java to Kotlin convertor: no empty class body
2014-06-03 17:29:00 +04:00
Valentin Kipyatkov
abfd2d68b9
Java to Kotlin convertor: generating of val/var constructor parameters when possible
2014-06-03 17:29:00 +04:00
Valentin Kipyatkov
846f2d9954
Java to Kotlin convertor: more code improvements
2014-06-03 17:29:00 +04:00
Valentin Kipyatkov
aa8b968756
Java to Kotlin convertor: improving code related to primary constructors
2014-06-03 17:29:00 +04:00
Valentin Kipyatkov
1e39021bd3
Java to Kotlin convertor: making code more "Kolin-like" + numerous micro refactorings
2014-06-03 17:29:00 +04:00
Nikita Skvortsov
6df803ce2f
fix DSL in Android plugin
2014-06-03 16:09:30 +04:00
Andrey Breslav
37532e8d02
Compare return types when structurally comparing callables
2014-06-02 22:05:34 +04:00
Andrey Breslav
7f60ccf663
Support equalityAxioms in isSubtypeOf()
2014-06-02 22:05:33 +04:00
Andrey Breslav
9cfbfd2806
Overridability and overloadability checks separated
2014-06-02 22:05:33 +04:00
Andrey Breslav
3f151a022e
Checking return value supported in OverridingUtil
2014-06-02 22:05:32 +04:00
Andrey Breslav
e50a17e668
Do not compare local classes by FqNames
2014-06-02 22:05:32 +04:00
Andrey Breslav
93031c1245
OverridingUtil parameterized with equalityAxioms
2014-06-02 22:05:30 +04:00
Andrey Breslav
f54e2bc498
OverridingUtil turned into a singleton
2014-06-02 22:05:30 +04:00
Andrey Breslav
67b8d3a875
Minor. Methods reordered
2014-06-02 22:05:29 +04:00
Andrey Breslav
b022395cb8
Using strategy instead of BiMap
2014-06-02 22:05:29 +04:00
Andrey Breslav
a0d8cefe16
Minor. If's with the same condition merged
2014-06-02 22:05:28 +04:00
Andrey Breslav
204fa76691
When checking overrides, compare methods structurally
...
Because they may come from different copies of the same class from different modules
2014-06-02 22:05:28 +04:00
Andrey Breslav
5a864dbc62
Fix "rewrite at slice" problems with resolving same Java class many times over the same trace
2014-06-02 21:49:20 +04:00
Nikolay Krasko
848863ef93
Completion fails with exception "Toplevel class has no fqName" (KT-5119)
...
Groovy scripts files can create PsiClasses with null qualfied names (getQualifiedName()) and names (getName()).
#KT-5119 Fixed
2014-06-02 20:36:42 +04:00
Alexey Sedunov
1c0d1630e5
Extract Function: Replace IDEA "Extract Method..." action with "Extract Function..."
2014-06-02 19:48:40 +04:00
Alexey Sedunov
07c19b1c9b
Extract Function: Create separate action for extraction to arbitrary code block
2014-06-02 19:48:39 +04:00
Alexey Sedunov
ee52073488
Extract Function: Limit the set of allowed containers for the default action
2014-06-02 19:48:38 +04:00
Alexey Sedunov
966def6c77
Replace accessor functions with property
2014-06-02 19:48:37 +04:00
Alexey Sedunov
6ce0ac8187
Move skipVisibility check to createTempCopy()
2014-06-02 19:48:36 +04:00
Alexey Sedunov
3c5c0248a7
Extract Function: In case of top-level and member declarations place extracted function after the original container
2014-06-02 19:48:35 +04:00
Alexander Udalov
ae7ad6d61c
Regenerate tests
2014-06-02 18:52:37 +04:00
Alexander Udalov
69dd2bbf10
Fix StringBuilder.append generation
...
append(StringBuilder) is private and should not be called
2014-06-02 18:29:39 +04:00
Laszlo Hornyak
9dec0fb779
Correct the argument types of the StringBuilder.append
...
Modified AsmUtil to generate calls to more specific append methods
in the StringBuilder class in order to save computation time and make
less temporary objects.
Also adds unit-test to verify that the append(Object) method was
invoked 0 times while the append(String) 3 times
Signed-off-by: Laszlo Hornyak <laszlo.hornyak@gmail.com >
2014-06-02 16:34:44 +04:00
Mikhael Bogdanov
34e8cae89e
KT-5112 - test file update
2014-06-02 15:21:28 +04:00
Mikhael Bogdanov
c80901bafa
KT-5112 Generic signature lost for a field copied from class object to containing class
...
#KT-5112 Fixed
2014-06-02 13:12:25 +04:00
Valentin Kipyatkov
4a7d4dffdf
Fixed KT-5142 Code completion of parameter type inserts FQ-name
...
#KT-5142 Fixed
2014-05-30 19:28:06 +04:00
Pavel V. Talanov
7973c9bfca
Do not load Icon in LightVariableBuilder constructor
2014-05-30 14:58:50 +04:00