Commit Graph

597 Commits

Author SHA1 Message Date
Nikolay Krasko f8371c1aa5 Check all files have same package 2012-06-20 16:23:37 +04:00
Evgeny Gerashchenko 9e727623c2 Fixed accessing namespace private members from inner classes. Added test. 2012-06-19 22:47:58 +04:00
Evgeny Gerashchenko 8cc0d96430 KT-1727 Supported private namespace members in compiled Kotlin code. 2012-06-19 22:47:58 +04:00
Evgeny Gerashchenko 5ecfd71611 Private outer functions are now accessed via bridge methods. Added tests. 2012-06-19 22:36:03 +04:00
Evgeny Gerashchenko 993aecbc94 Replaced duplicating code with CodegenUtil.getFlagsForVisibility() invocation. 2012-06-19 22:22:35 +04:00
Stepan Koltsov 11f2a98032 revert "DescriptorMatcher" 2012-06-18 20:53:55 +04:00
Stepan Koltsov 7deeb354a2 Revert "use the power of DescriptorPredicate in completion"
This reverts commit 65b74a19b4.
2012-06-18 20:49:47 +04:00
Nikolay Krasko 7b4fda4345 Don't create namespace class for file if codegen won't do so 2012-06-18 16:08:05 +04:00
Stepan Koltsov 955369988f fix compilation 2012-06-17 03:59:17 +04:00
Stepan Koltsov a95cc798a2 remove JetStandardLibrary dependency from jvm backend 2012-06-17 03:53:12 +04:00
Stepan Koltsov 30a097bbad jvm backend: remove unused code 2012-06-17 03:53:11 +04:00
Stepan Koltsov bd77fd3bdd string intrinsics without JetStandardLibrary 2012-06-17 03:53:11 +04:00
Stepan Koltsov f73f5b5074 implement (most) intrinsics without reference to standard library 2012-06-17 03:53:11 +04:00
Stepan Koltsov b9c8637b47 intrinsics methods are only callables 2012-06-17 03:53:10 +04:00
Stepan Koltsov e01b0a3713 constant for annotation class name 2012-06-17 00:27:45 +04:00
Evgeny Gerashchenko 49004aa451 Added assertion for 'inherited' visibility in codegen. 2012-06-16 19:38:20 +04:00
Evgeny Gerashchenko 4ed7404714 Since primary constructor is always present in class, generating "hidden" mark by backend is removed. 2012-06-16 15:39:36 +04:00
Evgeny Gerashchenko b027e260a9 Backend now generates constructor visibility properly. Kotlin flags generation is added, too. 2012-06-16 14:36:38 +04:00
Evgeny Gerashchenko 1e7be51d49 Minor: added @NotNull annotation. 2012-06-16 14:36:38 +04:00
Evgeny Gerashchenko 5541488ca0 Added BitSetUtils and method converting BitSet to int. 2012-06-16 14:36:06 +04:00
Evgeny Gerashchenko cfd56b4c2a Fixed backend visibility modifiers for internal classes. They still are public in JVM, but have special flag. 2012-06-16 14:36:06 +04:00
Evgeny Gerashchenko 769d4ad2f0 Renamed JET_METHOD_FLAG* to FLAG* since they will be used not only in JetMethod annotation, but in JetClass, too. 2012-06-16 14:36:06 +04:00
Evgeny Gerashchenko 9f45e7cc08 Fixed visibility generated by backend for internal members. Now they are public in JVM, but have special flag in annotation. 2012-06-16 14:36:06 +04:00
Evgeny Gerashchenko 370f648140 Made JetMethodAnnotationWriter.writeFlags(BitSet) back public, since it is more convenient. 2012-06-16 14:36:05 +04:00
Stepan Koltsov 65b74a19b4 use the power of DescriptorPredicate in completion 2012-06-16 06:44:17 +04:00
Stepan Koltsov 3a9f6c0928 DescriptorMatcher 2012-06-16 06:44:15 +04:00
Stepan Koltsov 7116beb95a JetScope.get* return Collection, not Set 2012-06-16 06:44:12 +04:00
Stepan Koltsov 0b697847b2 ClassDescriptorFromSoruce
getUnsubstitutedPrimaryConstructor is needed only when analyzing source.
Primary constructor only exists in source code.
2012-06-16 00:22:22 +04:00
Stepan Koltsov f11767319a repl: fix two anonymous functions 2012-06-09 23:25:40 +04:00
Dmitry Jemerov ba76e1467c correct argument index for object that has outer this and closure arguments
#KT-1737 Fixed
2012-06-09 16:20:11 +02:00
Dmitry Jemerov 198c7c1bd2 correct qualified name for namespace$src class
#KT-2236 Fixed
2012-06-09 15:33:51 +02:00
Evgeny Gerashchenko d5b32ba70e KT-2206 ClassFormatError on loading class with property inherited from trait
#KT-2206 fixed
2012-06-09 17:13:38 +04:00
Evgeny Gerashchenko 64d1d3eda6 KT-2193 Nullability information lost for functions inherited from traits
#KT-2193 fixed
2012-06-09 17:13:38 +04:00
Evgeny Gerashchenko 208dd4e35d Revert commit because two commits fixing separate bugs were accidentally stuck together. Will recommit bugfixes separately.
Revert "KT-2193 Nullability information lost for functions inherited from traits".

This reverts commit d60818fd3e.
2012-06-09 17:13:38 +04:00
Dmitry Jemerov 0a05197454 remove attempt to optimize using 'if' statement as the last one in a loop which created far more problems that it fixed
#KT-1978 Fixed
2012-06-09 15:14:33 +02:00
Evgeny Gerashchenko d60818fd3e KT-2193 Nullability information lost for functions inherited from traits
#KT-2193 fixed
2012-06-09 16:46:37 +04:00
Evgeny Gerashchenko f83defaa7f KT-2228 Open and final trait members are loaded as abstract from binary Kotlin classes.
Added storing modality for trait members in @JetMethod annotations.

 #KT-2228 Fixed
2012-06-09 16:46:37 +04:00
Evgeny Gerashchenko ef856c5888 Replaced JetMethodAnnotationWriter.writeFlags(BitSet) method with method taking indices of bits which should be set. 2012-06-09 16:46:37 +04:00
Evgeny Gerashchenko c446fa3fc9 Replaced int flags with BitSet in internal API. 2012-06-09 16:46:37 +04:00
Evgeny Gerashchenko 12893cec54 Added JetMethod.flags() to replace kind(), with adding extra functionality (modality and visibility marking). 2012-06-09 16:46:37 +04:00
Dmitry Jemerov c9125d3f59 correctly call properties on annotation classes
#KT-1932 Fixed
2012-06-09 14:48:04 +02:00
Stepan Koltsov acac0eddc7 formatting 2012-06-08 21:36:49 +04:00
Stepan Koltsov 321c781c90 some documentation of jvm backend 2012-06-08 21:36:48 +04:00
Dmitry Jemerov 102f5c60be generating the body of the finally clause _four_ times is one time too many
#KT-1688 Fixed
2012-06-08 19:21:41 +02:00
Dmitry Jemerov f945ec6a27 return value of try/catch/finally changed according to frontend changes
#KT-910 Fixed
2012-06-08 18:45:41 +02:00
Dmitry Jemerov 8baae95531 if a shared variable is a result of the block, release it only after it has been put
#KT-2151 Fixed
2012-06-08 18:45:41 +02:00
Dmitry Jemerov 56310599a5 for completely empty if statement, put on stack the Tuple0 instance, not its condition (KT-2062)
#KT-2062 Fixed
2012-06-08 18:45:40 +02:00
Stepan Koltsov 2ac6a7c928 fix message order in namespace codegen 2012-06-08 17:57:03 +04:00
Stepan Koltsov 671634c7c2 rename poison to used 2012-06-08 17:57:03 +04:00
Stepan Koltsov 5580016fd2 fix compilation 2012-06-08 04:32:47 +04:00