Commit Graph

7510 Commits

Author SHA1 Message Date
Pavel V. Talanov 5855c242f5 Add a TODO and a note describing why objects have public constructors in jvm-backend atm. 2012-08-29 16:01:19 +04:00
Pavel V. Talanov 22be002ef4 Remove enums inheriting from enums from test data. 2012-08-29 16:00:50 +04:00
Pavel V. Talanov d831f164cc Enum classes have private constructor visibility from front-end point of view.
Protected visibility hardcoded in jvm backend.
2012-08-29 15:58:40 +04:00
Pavel V. Talanov 544be17c3d Refactor JetTypeMapper#getAccessFlags.
Rename to getVisibilityAccessFlag.
Separate logic for special cases and default mapping.
Use meaningful name instead of "magic" zero number.
Add TODO for future refactoring.
Various logic clarifications.
2012-08-29 15:58:35 +04:00
Pavel V. Talanov 76e407e168 INTERNAL_VISIBILITIES constant renamed to INVISIBLE_FROM_OTHER_MODULES in order not be confused with INTERNAL visibility.
The only usage in DataFlowValueFactory renamed accordingly.
2012-08-29 15:58:32 +04:00
Pavel V. Talanov ae348a0547 Nested packages visibilities in jvm-backend. 2012-08-29 15:58:29 +04:00
Pavel V. Talanov e6e6f7e598 Object's constructor is private from frontend point of view.
Test data changed.
Js-backend test objectInObject turned off.
Public constructors for objects hard-coded in jvm-backend.
2012-08-29 15:58:27 +04:00
Pavel V. Talanov a28d78974b Test data minor change.
Remove open for enum class (should be prohibited).
2012-08-29 15:58:24 +04:00
Pavel V. Talanov 9295ce7086 LoadCompiledKotlinCustomTest -> LoadKotlinCustomTest.
The test itself is enhanced so it loads descriptors from source and from binaries.
Test data changed according to latest frontend changes.
2012-08-29 15:58:21 +04:00
Pavel V. Talanov 6a71d495dd Constructors for enum entries and class objects have private visibility: test data changed. 2012-08-29 15:58:19 +04:00
Pavel V. Talanov 00a12bd013 Constructors for enum entries and class objects have private visibility in frontend.
Introduce DescriptorUtils#getDefaultConstructorVisibility.
DescriptorResolver: remove exception wrapping.
Hardcode package-private visibility for enum entries in JetTypeMapper.

Refactoring:
DescriptorResolver: rename createPrimaryConstructorForObject -> createAndRecordPrimaryConstructorForObject, createPrimaryConstructorForObject now a separate method.
JavaDescriptorResolver: extract containingDeclaration variable.
JetTypeMapper: rename variable declaration -> containingDeclaration.
2012-08-29 14:42:12 +04:00
Alex Tkachman bb3bef41ce optimize imports 2012-08-28 14:34:17 +03:00
Alex Tkachman e8d84c4042 add static import of Opcodes.* 2012-08-28 14:32:05 +03:00
Alex Tkachman 5b8492fd9f add static import of Opcodes.* 2012-08-28 14:30:37 +03:00
Alex Tkachman f1f22a15b0 unused import 2012-08-28 14:25:03 +03:00
Alex Tkachman 164919edaa add static import of BindingContextUtils 2012-08-28 14:22:59 +03:00
Alex Tkachman b3b18d74f3 isNamedFun decommissioned and replace by isLocalFun 2012-08-28 14:16:23 +03:00
Alex Tkachman 36ae1079d6 three utility functions moved from CodegenUtil to CodegenBinding 2012-08-28 14:06:56 +03:00
Andrey Breslav 16845f62d6 Correct JDK annotations
Iterator -> MutableIterator
2012-08-28 14:22:31 +04:00
Alex Tkachman 7452bb2957 CodegenAnnotator does not exist anymore
Injectors regenerated to reflect that
2012-08-28 11:54:52 +03:00
Alex Tkachman 5ee0f0871f CodegenAnnotator has state anymore. Most likely to be completely removed soon 2012-08-28 11:19:52 +03:00
Alex Tkachman fbfc9a9420 LinkedList replaced by Stack 2012-08-28 09:49:50 +03:00
Alex Tkachman a2813a13f0 unused import 2012-08-28 09:34:01 +03:00
Alex Tkachman 15c1d7bda7 most of data previously kept in CodegenAnnotator now lives in binding context (CodegenBinding utility class)
injectors regenerated in order to have BindingTrace around
2012-08-28 09:31:19 +03:00
Alex Tkachman 9cd8f64e00 private constructor added 2012-08-28 00:31:29 +03:00
Alexander Udalov 6af6f2827d get rid of JdkNames 2012-08-27 20:52:40 +04:00
Alexander Udalov d99ffbd120 jet.Annotation
Create a supertype for all Kotlin annotations, jet.Annotation.
Map java.lang.annotation.Annotation to jet.Annotation and vice versa.
Add extension function "annotationType()" to every annotation, similar to java.lang.annotation.Annotation.annotationType()
 #KT-1620 Fixed
2012-08-27 20:44:43 +04:00
Alexander Udalov 9be4f63735 refactor initStdClasses() 2012-08-27 20:28:29 +04:00
Alex Tkachman cfbab55a43 ClosureAnnotator renamed to CodegenAnnotator 2012-08-27 19:06:01 +03:00
Nikolay Krasko b82d06cb60 Add showing error stack trace for warnTimeConsuming() 2012-08-27 19:23:32 +04:00
Nikolay Krasko c788636365 Don't block EDT while counting information for Resolve and Bytecode window 2012-08-27 18:57:10 +04:00
Nikolay Krasko 628da4e670 - Don't restart action if previous task was finished for same location
- Do some user-defined action if location became invalid
2012-08-27 18:57:09 +04:00
Nikolay Krasko 25bce862b4 Introduce helper class for doing long running cancelable operations. 2012-08-27 18:57:08 +04:00
Nikolay Krasko 3fd96fb049 Don't irritate user and in interrupt execution of methods with assertTimeConsuming(). Warning is used instead. 2012-08-27 18:57:08 +04:00
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