Nikolay Krasko
dfecf24b80
Small refactoring to remove warning
2012-08-27 18:57:07 +04:00
Alex Tkachman
10a47ea86f
big codegen rewrite
2012-08-27 17:43:03 +03:00
Svetlana Isakova
52386e5294
fixes after merge
...
rename JetTypeMapper constants
removed JetStandardLibraryNames class
check Nothing on equals (removed mapping from Nothing to Nothing)
2012-08-27 17:20:05 +04:00
Svetlana Isakova
440adfb54b
types mapping refactoring
...
(rename, methods reorder)
2012-08-27 17:09:23 +04:00
Svetlana Isakova
298cc82ba0
removed senseless mapping from jet/Nothing to jet/Nothing
2012-08-27 17:09:23 +04:00
Svetlana Isakova
30d3144434
invoke register on java class, not on name
2012-08-27 17:09:20 +04:00
Svetlana Isakova
12aea75b02
removed JetStandardLibraryNames
2012-08-27 17:09:19 +04:00
Svetlana Isakova
35c276be18
removed constants from JetStandardLibraryNames, JetTypeMapper
...
that are used only in KotlinToJavaTypesMapper
2012-08-27 17:09:07 +04:00
Svetlana Isakova
e63ed754f1
rename JetTypeMapper constants
2012-08-27 17:09:07 +04:00
Svetlana Isakova
65ea9dddea
KotlinToJavaTypesMap refactoring
...
removed repeating type names from 'isForceReal'
removed class SpecialTypeKey (added map for nullable types)
moved mapping Any-Object from JetTypeMapper
2012-08-27 17:08:37 +04:00
Svetlana Isakova
a386a5eb1e
KotlinToJavaTypesMap, JavaToKotlinTypesMap added
2012-08-27 17:08:37 +04:00
Evgeny Gerashchenko
a503d53a1e
Got rid of open/closed icon concept, since it is removed from IDEA.
2012-08-27 16:20:01 +04:00
Pavel V. Talanov
6132946ced
Introduce ClassKind#CLASS_OBJECT and ClassKind#isObject and usages.
...
Rename LazyClassDescriptor#onlyEnumEntries -> enumClassObjectInfo.
Determine ClassKind in JetClassInfo and JetObjectInfo constructor.
Remove complex constructor for enum entry in enum test.
Logic simplified in LazyClassMemberScope.
Minor refactorings.
2012-08-27 15:52:36 +04:00
Pavel V. Talanov
b228fd66e0
Enum entry has final modality when loaded from binaries.
2012-08-27 15:52:34 +04:00
Andrey Breslav
c0c2ca0ac2
Report errors when iterator() returns a nullable type
2012-08-24 19:49:33 +04:00
Andrey Breslav
b6f15b518a
Generate JetPsiChecker tests
2012-08-24 19:49:33 +04:00
Andrey Breslav
a110340d31
JDK annotations added to mock project
2012-08-24 19:49:33 +04:00
Andrey Breslav
66faa0c03a
For-loop range expression (collection) can not be null
2012-08-24 19:49:33 +04:00
Andrey Breslav
b315bee7b2
hasNext can't be a property. Corresponding error removed
2012-08-24 19:49:32 +04:00
Andrey Breslav
1d01e66fc8
Tests for multi-decl for-loops over arrays of primitives
2012-08-24 19:49:32 +04:00
Andrey Breslav
707408b241
For loops over arrays generated with multi-decl support
2012-08-24 19:49:32 +04:00
Andrey Breslav
d5c44c3dd8
Test data moved
2012-08-24 19:49:32 +04:00
Andrey Breslav
c822ce0d67
There is only one way to know element types
2012-08-24 19:49:32 +04:00
Andrey Breslav
edbc832861
Multi-decl for loops fixed
2012-08-24 19:49:32 +04:00
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