Commit Graph

6310 Commits

Author SHA1 Message Date
Alexander Udalov e4d538c668 Move KotlinClassFileHeader to header/ package 2013-09-30 22:43:16 +04:00
Alexander Udalov 92cc0ddd1f KotlinClassFileHeader is now nullable everywhere
'null' means there's no header. This makes all of KotlinClassFileHeader's
fields non-null
2013-09-30 22:43:16 +04:00
Alexander Udalov e981681d3e Remove KotlinClassFileHeader.HeaderType.NONE
Use null instead
2013-09-30 22:43:16 +04:00
Alexander Udalov ed6f908049 Move JavaProtoBufUtil utilities to where they're used
Serialization goes to backend: it's not needed in runtime, at least in the
state in which it is now (dependent on ASM).

Deserialization goes to AnnotationDescriptorDeserializer. Inline some methods,
remove unneeded abstractions.

This removes dependency of serialization.java on ASM
2013-09-30 22:43:15 +04:00
Alexander Udalov dfb0908da0 Move 8bit<->7bit logic to a separate class 2013-09-30 22:43:15 +04:00
Svetlana Isakova a3f9cef354 fixed bug: 'isStatement' for function body == 'hasBlockBody'
not vice versa
2013-09-30 21:06:05 +04:00
Pavel V. Talanov fa8ca4e781 Refactor: Improve code clarity in DelegationResolver
Filter out non-overridable descriptors earlier for possible optimization
Report error to trace even if name identifier is null
2013-09-30 20:54:44 +04:00
Pavel V. Talanov 9599f7d98c Test for delegated members being overridden 2013-09-30 20:54:42 +04:00
Pavel V. Talanov 51a6bcb727 Test for reporting clashes with multiple delegated methods
Verifies that the order in which traits are inherited is irrelevant
2013-09-30 20:54:41 +04:00
Pavel V. Talanov 04105fae65 Refactor DelegationResolver into method object to simplify code 2013-09-30 20:54:40 +04:00
Pavel V. Talanov 1a3603652c Refactor DelegationResolver so that lazy and eager resolve share the code
Also fix an exception in LazyClassMemberScope
2013-09-30 20:54:39 +04:00
Pavel V. Talanov 6fb7a79a1f Refactor DelegationResolver
Fix an issue in lazy resolve : filter out methods from delegated traits superclass
2013-09-30 20:54:38 +04:00
Pavel V. Talanov dc9c3b1a97 Fix JetTestCaseBuilder#getHomeDirectory() having wrong separators on Windows 2013-09-30 20:54:36 +04:00
Alexey Sedunov 48ddd7678d Separate tree structures for local and non-local root declarations 2013-09-27 19:20:47 +04:00
Alexey Sedunov 5b7881f40c Call Hierarchy: Add support of local declarations 2013-09-27 19:20:45 +04:00
Alexey Sedunov 41ea7da1e3 Implement call hierarchy 2013-09-27 19:20:44 +04:00
Alexander Udalov 07f1e61146 Remove unneeded asserts from JavaSupertypeResolver
Don't do anything special if a Java class happens to extend jet.JetObject: it's
not a Kotlin class and we should collect all its supertypes correctly
2013-09-27 16:01:55 +04:00
Andrey Breslav 0d84565570 name and containingDeclaration pulled up 2013-09-26 09:05:00 -07:00
Andrey Breslav 6bed3cdc59 getOriginal() pulled up 2013-09-26 09:04:59 -07:00
Andrey Breslav 4b991f7254 Test that built-in binaries are up to date 2013-09-26 09:04:59 -07:00
Alexander Udalov 40a834bb8b Minor refactorings in DeclarationResolver 2013-09-26 15:25:36 +04:00
Mohammad Shamsi f554ff3c8c KT-3945 Fixed - Prohibit modifiers for packages 2013-09-26 15:25:36 +04:00
Evgeny Gerashchenko f23ba19258 Simplified. 2013-09-25 20:59:24 +04:00
Evgeny Gerashchenko 3200997bca Extracted method. 2013-09-25 20:59:24 +04:00
Evgeny Gerashchenko b4bb08c013 Generating stub methods for read-only map and entry. 2013-09-25 20:59:24 +04:00
Evgeny Gerashchenko 511c908ba9 Generating stub methods for read-only collection. 2013-09-25 20:59:24 +04:00
Evgeny Gerashchenko 5de9c2499d Added for iterator when remove() is present. 2013-09-25 20:59:23 +04:00
Evgeny Gerashchenko 47b70427e1 Generating remove() for Iterator using same mechanism. 2013-09-25 20:59:23 +04:00
Evgeny Gerashchenko b4368ad578 Generating stub methods for read-only list. 2013-09-25 20:59:23 +04:00
Evgeny Gerashchenko e98b75b462 Do not generate toString and other methods if they are inherited. 2013-09-25 20:59:23 +04:00
Evgeny Gerashchenko 23e1484319 Using more common type. 2013-09-25 20:59:23 +04:00
Alexander Udalov a814f6a897 Advertise CompileBinaryTestData.kt in tests with binaries 2013-09-25 16:04:17 +04:00
Natalia.Ukhorskaya da17475ae6 Pack runtime sources to separate jar 2013-09-25 14:18:41 +04:00
Alexander Udalov da1325f5cc Add a script to regenerate binary test data (jars) 2013-09-24 20:33:00 +04:00
Alexander Udalov 1de637c143 Regenerate compiled testData
Add sources and instructions to tests which had compiled jars in the testData.
PLEASE ALWAYS ADD SOURCES for tests with jars.

Delete runtime, stdlib and their sources from these jars -- PLEASE DO NOT PUT
kotlin-runtime.jar INTO TEST DATA JARS: every such jar is around 1Mb, it spoils
the repository
2013-09-24 20:32:07 +04:00
Andrey Breslav 4644858b11 @NotNull propagated to JetVisitor implementations 2013-09-24 07:05:21 -07:00
Andrey Breslav e829ef8304 JetPsiPrecedences rewritten in Kotlin 2013-09-24 07:05:20 -07:00
Andrey Breslav fc70a65f99 Support 'suppress for statement' quick fix
#KT-3319 Fixed
2013-09-24 07:05:20 -07:00
Andrey Breslav 5b9d10d74e @NotNull in JetPsiFactory 2013-09-24 06:58:42 -07:00
Andrey Breslav 8f6b6639c5 Allow no else in annotated when-statements 2013-09-24 06:58:42 -07:00
Andrey Breslav db9dd5d320 Allow annotations on loop statements 2013-09-24 06:58:41 -07:00
Andrey Breslav c7c151a726 Support suppression on expressions 2013-09-24 06:58:41 -07:00
Andrey Breslav 716718fb0d JetAnnotated interface extracted to unify declarations and annotated expressions 2013-09-24 06:58:41 -07:00
Andrey Breslav a13b66c58e 'Suppress warnings' as quick fix options
If no quick fix is available a special intention is shown
2013-09-24 06:58:41 -07:00
Andrey Breslav b379ab3ebd Resolve annotations on expressions and multi-declarations 2013-09-24 06:58:41 -07:00
Andrey Breslav 836eef67fa Create proper annotation descriptors when annotation arguments don't match 2013-09-24 06:58:41 -07:00
Andrey Breslav 3d754dd788 DiagnosticFactory exposes severity 2013-09-24 06:58:40 -07:00
Andrey Breslav 97435a4266 Rename class: AbstractDiagnosticFactory -> DiagnosticFactory 2013-09-24 06:58:40 -07:00
Andrey Breslav 1948fb4c36 @Nullable/@NotNull added to various classes 2013-09-24 06:58:40 -07:00
Andrey Breslav 9d7b3a7a96 Cached version of DiagnosticsWithSuppression. 2013-09-24 06:58:40 -07:00