Commit Graph

441 Commits

Author SHA1 Message Date
Evgeny Gerashchenko fa3e3ee104 Registered annotations provider as a service instead of static class to avoid problems with projects disposal. 2012-07-03 13:35:53 +04:00
Evgeny Gerashchenko f11ecdc07b Added workaround for CoreLocalVirtualFile.getInputStream() throwing assertion error. 2012-07-03 13:35:52 +04:00
Evgeny Gerashchenko 9d90f96573 Loading external annotations in JavaDescriptorResolver. 2012-07-03 13:35:52 +04:00
Evgeny Gerashchenko d64a7397b3 Added default implementation for ExternalAnnotationsProvider to be used in compiler. 2012-07-03 13:35:52 +04:00
Evgeny Gerashchenko cf1756aad3 Added extension point-like class ExternalAnnotationsProvider. 2012-07-03 13:35:52 +04:00
Evgeny Gerashchenko ee1f1f3d56 Added check for extra and missing upper bounds in alternative signatures. 2012-06-27 00:44:14 +04:00
Evgeny Gerashchenko e59120f002 Got rid of warnings in AlternativeSignatureData. 2012-06-27 00:44:13 +04:00
Evgeny Gerashchenko 9044ec775f Minor reformatting. 2012-06-27 00:44:13 +04:00
Evgeny Gerashchenko 6f8f62cc9a Introduced AlternativeSignatureData.fail() method throwing exception. 2012-06-27 00:44:12 +04:00
Evgeny Gerashchenko 572f66a2a1 Changed some static methods of AlternativeSignatureData to non-static, got rid of some unnecessary method parameters. 2012-06-27 00:44:12 +04:00
Evgeny Gerashchenko 5ae461b5ac Made AlternativeSignatureMismatchException unchecked to make code simpler. Got rid of catching and rethrowings. 2012-06-27 00:44:12 +04:00
Evgeny Gerashchenko 2066fd19c2 Moved AlternativeSignatureMismatchException since it is the internal part of it now. 2012-06-27 00:44:11 +04:00
Evgeny Gerashchenko 4141015472 Converted AlternativeSignatureParsing static class into AlternativeSignatureData stateful class which contains result of all alternative signature parsing. This is needed to simplify JavaDescriptorResolver. 2012-06-27 00:44:11 +04:00
Evgeny Gerashchenko c427a3b7aa Renamed methods in AlternativeSignatureParsing, simplifying them. 2012-06-27 00:44:10 +04:00
Evgeny Gerashchenko 2840f6d3ba Added checking for function name in alternative signature. 2012-06-27 00:44:10 +04:00
Evgeny Gerashchenko d897ba754d Added checking for missing return type in alternative signature. 2012-06-27 00:44:09 +04:00
Evgeny Gerashchenko f0857d0081 Added checking type parameters count in alternative signatures. 2012-06-27 00:44:09 +04:00
Evgeny Gerashchenko d9127fc34b Added prohibiting adding of nullability in alternative signatures. 2012-06-27 00:44:09 +04:00
Evgeny Gerashchenko a02ab2b348 Added checking for same variance in alternative signatures. 2012-06-27 00:44:08 +04:00
Evgeny Gerashchenko 178a10716b Added checking vararg/not vararg in alternative signatures. 2012-06-27 00:44:08 +04:00
Evgeny Gerashchenko a2066ab0ab Added checking for FQ name prefixes in alternative signatures. Added tests. 2012-06-27 00:44:07 +04:00
Evgeny Gerashchenko de83e93f28 Added checks for type arguments numbers in alternative signatures. Added tests. 2012-06-27 00:44:07 +04:00
Evgeny Gerashchenko 1649b208cb Added check for value parameters number in alternative signatures loading. 2012-06-27 00:44:06 +04:00
Nikolay Krasko 8a11a885d0 An attempt to fix constant overwriting in function slice (EA-36390). 2012-06-26 19:33:26 +04:00
Alex Tkachman c1802e2360 breakpoints for multi-file namespaces 2012-06-22 11:55:16 +03:00
Stepan Koltsov 11f2a98032 revert "DescriptorMatcher" 2012-06-18 20:53:55 +04:00
Stepan Koltsov ea0c68929a Revert "jdr: merge resolveMethod* methods, use DescriptorPredicate"
This reverts commit a87f3e2a45.
2012-06-18 20:50:05 +04:00
Stepan Koltsov fbab0b742c Revert "smarter JavaClassOrPackageScope#getAllDescriptors"
This reverts commit 010db0495b.
2012-06-18 20:49:55 +04:00
Stepan Koltsov 5e1e685d69 Revert "jdr: properly fetch supertype member names"
This reverts commit 9b13a308f8.
2012-06-18 20:42:33 +04:00
Stepan Koltsov 3533107cfe Revert "move filtering logic to NamePredicateUtils"
This reverts commit e7d957436b.
2012-06-18 20:41:58 +04:00
Stepan Koltsov e7d957436b move filtering logic to NamePredicateUtils 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 a95cc798a2 remove JetStandardLibrary dependency from jvm backend 2012-06-17 03:53:12 +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 177d6adb30 Added reading constructor visibility from compiled code. 2012-06-16 15:39:36 +04:00
Evgeny Gerashchenko e75f9aee53 Added "flags" field to JetConstructor property. 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 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
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
Stepan Koltsov 010db0495b smarter JavaClassOrPackageScope#getAllDescriptors 2012-06-16 06:44:16 +04:00
Stepan Koltsov a87f3e2a45 jdr: merge resolveMethod* methods, use DescriptorPredicate 2012-06-16 06:44:16 +04:00