Commit Graph

6183 Commits

Author SHA1 Message Date
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 7c17c84f0b working on syntax highlighter2 for kdoc 2012-06-18 01:42:11 +04:00
Stepan Koltsov 1cb3f3b7e6 ignore *.class 2012-06-18 01:42:11 +04:00
Stepan Koltsov e7d957436b move filtering logic to NamePredicateUtils 2012-06-17 05:55:24 +04:00
Stepan Koltsov b0f98711a0 idea: do not call prefix matcher in loop if prefix is empty 2012-06-17 05:55:24 +04:00
Stepan Koltsov 554a54bcc5 frontend: optimize DescriptorPredicate.asNamePredicate 2012-06-17 05:55:24 +04:00
Stepan Koltsov 9b13a308f8 jdr: properly fetch supertype member names
previous implementation relied on Idea PSI resolver that doesn't
work well in certain situations
2012-06-17 05:28:01 +04:00
Stepan Koltsov b33fc76c12 frontend: base class for JetScope implementations 2012-06-17 05:28:01 +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 0c73115911 getContainigDeclaration cannot be null for all descriptors except ModuleDescriptor
Get rid of lot of warnings
2012-06-17 03:53:10 +04:00
Stepan Koltsov b9c8637b47 intrinsics methods are only callables 2012-06-17 03:53:10 +04:00
Stepan Koltsov 49178e6cff remove constructor parameter of JavaNamespaceDescriptor 2012-06-17 00:40:41 +04:00
Stepan Koltsov 9ddbe4a414 JavaDescriptorSignatureResolver 2012-06-17 00:27:45 +04:00
Stepan Koltsov e01b0a3713 constant for annotation class name 2012-06-17 00:27:45 +04:00
Stepan Koltsov 9d781640af use shared constants 2012-06-17 00:27:44 +04:00
Stepan Koltsov 1ce24b10cc FqName*.equalsTo, type safe unlike equals 2012-06-17 00:27:44 +04:00
Evgeny Gerashchenko ba92ce2172 Added protected top-level class and trait into front-end tests. 2012-06-16 19:38:21 +04:00
Evgeny Gerashchenko 86c8e4bf18 Tests for KT-1714 Reference to function is generated with private getter method
#KT-1714 fixed
2012-06-16 19:38:21 +04:00
Evgeny Gerashchenko e45833b213 Test for KT-2197 Reference to function is generated with private getter method
#KT-2197 fixed
2012-06-16 19:38:21 +04:00
Evgeny Gerashchenko 6a56cf04cb Test for KT-2155 Run-time error accessing internal value from other package
#KT-2155 fixed
2012-06-16 19:38:20 +04:00
Evgeny Gerashchenko 258623cb5f Added tests cases for internal visibility in ReadKotlinBinaryClass 2012-06-16 19:38:20 +04:00
Evgeny Gerashchenko 085b9704b8 Added checking for overridden properties number in NamespaceComparator. 2012-06-16 19:38:20 +04:00
Evgeny Gerashchenko 49004aa451 Added assertion for 'inherited' visibility in codegen. 2012-06-16 19:38:20 +04:00
Evgeny Gerashchenko 7465e260b6 Disabled some test cases in lazy resolve tests until the latter supports inherited visibility (reported KT-2285). 2012-06-16 19:38:20 +04:00
Evgeny Gerashchenko 4fd520f2ea Updated test data for some of lazy resolve tests. 2012-06-16 19:38:20 +04:00
Evgeny Gerashchenko bf2a31b877 Replaced text descriptor renderer with html for types in RETURN_TYPE_MISMATCH_ON_OVERRIDE 2012-06-16 19:38:20 +04:00
Evgeny Gerashchenko 052a6f3cb9 Made Iterable.iterator() public in jdk-headers. 2012-06-16 19:38:19 +04:00
Evgeny Gerashchenko f38191682f Fixed LibrariesWithoutSourcesTest after correcting loading of 'internal' visibility from bytecode. 2012-06-16 19:38:19 +04:00
Evgeny Gerashchenko 70a8151e87 Regenerated test data for ReadJavaBinaryClassTest. 2012-06-16 19:38:19 +04:00
Evgeny Gerashchenko da1aceb090 Fixed test data for ReadJavaBinaryClassTest, avoiding "package" visibility. 2012-06-16 15:39:36 +04:00
Evgeny Gerashchenko c389264a21 Regenerated test data for ReadKotlinBinaryClassTest. 2012-06-16 15:39:36 +04:00
Evgeny Gerashchenko 07109dc8ba Modified NamespaceComparator, so it also checks for visibilities and for getter/setter visibilities. This broke a lot of tests, which will be fixed in next commits. 2012-06-16 15:39:36 +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 177d6adb30 Added reading constructor visibility from compiled code. 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 e75f9aee53 Added "flags" field to JetConstructor property. 2012-06-16 14:36:37 +04:00
Evgeny Gerashchenko 773cfbaec5 DescriptorRenderer should render visibility for constructors. 2012-06-16 14:36:37 +04:00
Evgeny Gerashchenko 075f0bb4b9 Setter should not be created for val property defined in class constructor. 2012-06-16 14:36:37 +04:00
Evgeny Gerashchenko b545aa779e JavaDescriptorResolver is processing visibility flags from annotations (so 'JVM public' members which are actually internal are loaded correctly). 2012-06-16 14:36:37 +04:00
Evgeny Gerashchenko 4f892563f7 Reformatted JavaDescriptorResolver a little bit. 2012-06-16 14:36:06 +04:00
Evgeny Gerashchenko 78393b766d Added PsiAnnotationWithFlags interface uniting JetClassAnnotation and JetMethodAnnotation. 2012-06-16 14:36:06 +04:00
Evgeny Gerashchenko e26d7fb75e Added method converting int to BitSet to BitSetUtils. 2012-06-16 14:36:06 +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 18db494bc1 Added 'flags' field to JetClass annotation. 2012-06-16 14:36:06 +04:00