Andrey Breslav
cab263d7d1
Abstract for-loop generator class extracted
2012-08-24 19:49:31 +04:00
Andrey Breslav
2bdf631b6d
Unnecesary fields removed
2012-08-24 19:49:31 +04:00
Andrey Breslav
e57e61ac68
For-loop generation rewritten for the case of explicit iterator usage
...
This implementation includes multi-declarations already, but tests are coming in the next commits.
Old ForLoopgenerator renamed to IntrinsicForLoopGenerator, and will be unified with the newly introduced interface soon.
Side-effect:
KT-2668 Codegen doesn't handle member extensions in for
#KT-2668 Fixed
2012-08-24 19:49:31 +04:00
Andrey Breslav
4870b92d11
makeFakeCall() uses a fake expression
2012-08-24 19:49:31 +04:00
Andrey Breslav
e13fa067cc
Proper resolved calls in loop ranges
2012-08-24 19:49:31 +04:00
Andrey Breslav
784bf31a3e
Store resolved calls for loop range's iterator(), next(), hasNext()
...
+ code duplication removed from expression typing visitor
2012-08-24 19:49:30 +04:00
Andrey Breslav
b1ba3e1260
Using invokeFunction() instead of invokeFunctionWithNoParams() when generating in-expressions
2012-08-24 19:49:30 +04:00
Andrey Breslav
9ca49b50b8
Using invokeFunction() instead of invokeFunctionWithNoParams() when generating when() conditions
2012-08-24 19:49:30 +04:00
Svetlana Isakova
0dcdaccad1
KT-2640 Provide jet.MutableIterator and jet.MutableIterable
...
#KT-2640 fixed
2012-08-24 15:07:24 +04:00
Andrey Breslav
422b938728
Reverting the change from c8b6ef9c81
2012-08-24 12:47:22 +04:00
Andrey Breslav
017a097094
Fixing compilation (thank you, IDEA's make)
2012-08-24 12:41:43 +04:00
Andrey Breslav
c09ca287ea
Ignore .DS_Store
2012-08-24 12:18:18 +04:00
Andrey Breslav
08bb390820
Project is available in codegen
2012-08-24 12:18:18 +04:00
Nikolay Krasko
607a502fd7
Capture indicator value before moving to another thread
2012-08-24 11:17:28 +04:00
Alex Tkachman
719234b802
codegen contexts work in terms of descriptors in oppose to asm.type
2012-08-23 23:26:03 +03:00
Nikolay Krasko
1a12ef9e07
Recover on EOL for imports
2012-08-24 00:13:16 +04:00
Alex Tkachman
7419b237ba
unneeded parameter inlined
2012-08-23 21:06:08 +03:00
Alex Tkachman
b2d9e02b2c
@NotNull CodegenContext.getThisDescriptor()
2012-08-23 20:05:11 +03:00
Alex Tkachman
05c7f80a14
a bit of nullability cleanup
2012-08-23 19:26:40 +03:00
Alex Tkachman
49c19cd7ed
abstraction issue: HashMap -> Map, ArrayList -> List in parameters
2012-08-23 18:07:22 +03:00
Alex Tkachman
69f5ef2862
always successful asserts removed
2012-08-23 18:05:33 +03:00
Alex Tkachman
08c5032734
nullability tweaks
2012-08-23 18:03:36 +03:00
Alex Tkachman
a11511eaf6
extracted several methods to make code analizable by IDEA
2012-08-23 17:37:20 +03:00
Alex Tkachman
dd8335dcf4
revert auto-applied IDEA fix from generated files
2012-08-23 17:00:47 +03:00
Alex Tkachman
c8b6ef9c81
few method extracted from too complex method
2012-08-23 16:49:04 +03:00
Alex Tkachman
850a00a372
rewrite of too complex method
2012-08-23 16:05:12 +03:00
Alex Tkachman
83e1f6bfdf
methods extracted to decrease method complexity
2012-08-23 15:25:16 +03:00
Alex Tkachman
a2ff62ecf5
condition always true
2012-08-23 15:15:30 +03:00
Alex Tkachman
8fb449660d
redundant cast removed
2012-08-23 15:12:50 +03:00
Alex Tkachman
cb03d6c92b
parameters marked as Nullable
2012-08-23 15:11:31 +03:00
Alex Tkachman
03eb9c1e70
useless code removed
2012-08-23 15:10:24 +03:00
Alex Tkachman
a42842889e
final modifiers added as suggested by IDEA
2012-08-23 14:57:21 +03:00
Alex Tkachman
179597156f
weaken declaration access as suggested by IDEA
2012-08-23 14:57:21 +03:00
Alex Tkachman
0fad8a66f4
weaken access as suggested by IDEA
2012-08-23 14:57:21 +03:00
Alex Tkachman
80d6de381f
correctly sized arrays
2012-08-23 14:57:21 +03:00
Nikolay Krasko
57d4a28a94
Remove duplicates and speeding-up PluginJetFilesProvider.allInScope
2012-08-23 15:53:41 +04:00
Pavel V. Talanov
3da2cd8f2f
Try to fix build.
...
Expect files to start with lowercase letter in LoadJavaCustomTest#doSimpleTest().
2012-08-23 15:48:50 +04:00
Alex Tkachman
94593fd08f
method extracted to avoid duplicates
2012-08-23 14:30:13 +03:00
Pavel V. Talanov
fbb78e47b0
Rename: *extract* -> *load* in LoadDescriptorUtil.
2012-08-23 15:24:40 +04:00
Pavel V. Talanov
baca087a02
Rename test data folder according to the new test naming convention.
2012-08-23 15:24:39 +04:00
Pavel V. Talanov
4bf2b9054a
Rename tests loading descriptors so that they have consistent naming.
...
Add comments clarifying each test purpose.
2012-08-23 15:24:38 +04:00
Pavel V. Talanov
9dc611c4fe
Get rid of LoadJavaDescriptorsTest.
...
Implement the same test via existing LoadJavaDescriptorsTest.
Move test data.
2012-08-23 15:24:37 +04:00
Pavel V. Talanov
971b27fe61
Refactor CompileJavaAgainstKotlinTest.
...
Avoid duplication.
2012-08-23 15:24:36 +04:00
Pavel V. Talanov
b6c9790b2c
Refactor CompileKotlinAgainstKotlinTest.
...
Avoid duplication.
2012-08-23 15:24:35 +04:00
Pavel V. Talanov
f3dd54e70f
Refactor some of the tests for loading descriptors.
...
Move most of the logic to LoadDescriptorUtil and refactor to avoid duplication.
More descriptive names for LoadDescriptorUtil methods.
Minor code improvements.
2012-08-23 15:24:35 +04:00
Svetlana Isakova
4457c7b6ba
removed 'private' modifier for local function
2012-08-23 14:55:17 +04:00
Svetlana Isakova
ac39daace6
KT-2667 Support multi-declarations in for-loops in control flow analysis
...
#KT-2667 fixed
2012-08-23 14:25:13 +04:00
Alex Tkachman
21774f5288
final modifiers added
2012-08-23 08:33:13 +03:00
Svetlana Isakova
f8edaad420
make modality 'FINAL' for non-class members
...
not depend on actual modifier since it's not legal there
2012-08-22 20:42:35 +04:00
Svetlana Isakova
bac0078646
check modifiers for package declarations
...
removed specific errors for illegal 'abstract' modifier
2012-08-22 20:42:35 +04:00