Commit Graph

7565 Commits

Author SHA1 Message Date
Alex Tkachman d26b3e04e4 micro cleanup 2012-08-30 19:18:21 +03:00
Andrey Breslav 59724296d6 Fix continue in for loops. Tests added 2012-08-30 20:16:09 +04:00
Andrey Breslav f0119c7354 Fix blinking test (see comments in the code) 2012-08-30 17:30:39 +04:00
Andrey Breslav eb4650b95f setUp() and tearDown() moved up 2012-08-30 17:30:39 +04:00
Alex Tkachman 8a71cf7bf7 fix for KT=2702 - wrong bridges on super call 2012-08-30 15:37:15 +03:00
Andrey Breslav 925b2b9f99 isPrimitiveNumberClassDescriptor() fixed to actually check the classes 2012-08-30 16:10:56 +04:00
Andrey Breslav 3ee6afd519 Utility method moved to CodegenUtil 2012-08-30 16:07:10 +04:00
Alex Tkachman 59958ea0de fixining what IDEA formatter did 2012-08-30 15:00:49 +03:00
Andrey Breslav d38b028768 Code restructured to simplify the API 2012-08-30 15:56:48 +04:00
Andrey Breslav 42bf62f870 KT-2704 Remove support for enum-entry constructor generation in the front-end code
#KT-2704 Fixed
2012-08-30 15:28:41 +04:00
Alex Tkachman a45bae63ab @NotNull CodegenContext.ownerKind 2012-08-30 14:18:54 +03:00
Alex Tkachman 6a6f214b82 got rid of unneeded ReceiverContext 2012-08-30 14:04:34 +03:00
Alex Tkachman 8560039db7 unnecesary and confusing field receiverDescriptor removed 2012-08-30 13:54:16 +03:00
Alex Tkachman d407b9e917 protected constructor for GenerationStrategy 2012-08-30 13:38:29 +03:00
Alex Tkachman 0b22a3ab4b optimize imports and other minor cleanups 2012-08-30 13:31:12 +03:00
Alex Tkachman 1313ef64fd NamespaceCodegen extends GenerationStateAware 2012-08-30 13:08:43 +03:00
Alex Tkachman da064f95fd MapTypeMode renamed to JetTypeMapperMode and moved to state package 2012-08-30 13:08:43 +03:00
Alex Tkachman df094a4cd0 ClassBodyCodegen & PropertyCodegen extend GenerationStateAware 2012-08-30 13:08:42 +03:00
Alex Tkachman 7bd88f5031 FunctionCodegen extend GenerationStateAware 2012-08-30 13:08:41 +03:00
Alex Tkachman 02be7ec6f8 ClosureCodegen extends GenerationStateAware 2012-08-30 13:08:41 +03:00
Alex Tkachman 6cc85a6ce3 JetTypeMapper moved to state package 2012-08-30 13:08:41 +03:00
Alex Tkachman 20eb285f35 binding package introduced 2012-08-30 13:08:41 +03:00
Kirill Berezin b84f068c33 kt-1760 delegation to java iface:
- removed codegen's unnecessary lookup for a declaration
- skipped class' only supertype (if any) methods when delegating
2012-08-30 14:03:43 +04:00
Nikolay Krasko 78cb5381f7 Remove reference to error type constructor from unresolved annotation 2012-08-30 13:21:13 +04:00
Nikolay Krasko 9a9efd5b2f Extract variable refactoring 2012-08-30 13:21:10 +04:00
Nikolay Krasko 03989b9055 EA-36935 Rewriting annotations exception when file contains object with annotation. 2012-08-30 13:21:06 +04:00
Alex Tkachman 0852f3939f (BindingContext,BindingTrace,TypeMapper,GenerationState)Aware classes introduced and related changes in GenerationState construction/injection 2012-08-30 11:50:51 +03:00
Natalia.Ukhorskaya 97cab46c39 JavaDescriptorResolver: remove duplicated code 2012-08-30 12:20:26 +04:00
Natalia.Ukhorskaya c8af013a5a Android: add special files compiled with external annotations 2012-08-30 10:56:35 +04:00
Natalia.Ukhorskaya 19221e3ba6 JavaDescriptorResolver: Add resolve for annotation parameters (array, annotation, enum)
Temporary change testData for LoadJavaTest because enums in parameters of annotations in kotlin files is now unsupported
2012-08-30 10:56:33 +04:00
Natalia.Ukhorskaya 92a782ce6c AnnotationDescriptor refactoring: contains map of ValueParameterDescriptor and CompileTimeConstant for valueArgument.
DescriptorUtils: add method to get a list of sorted value arguments from AnnotationDescriptor
2012-08-30 10:56:31 +04:00
Natalia.Ukhorskaya 04deb2dd2f JetTestUtils: change signature of compileJavaFile - take collection of files to compile and list of javac options
LoadDescriptorUtil: remove duplicate code
2012-08-30 10:55:47 +04:00
Alex Tkachman b45f19c0e2 GenerationState refactored to be (almost) immutable and methodless (modulo little protection from reuse)
GenerationStrategy introduced to handle separately cases of regular compilation and building of JetLightClasses (this was only real overridable behavior of GenerationState in old code)
state subpackage introduced
2012-08-30 09:33:10 +03:00
Alex Tkachman 65c3b7dab0 subclasses of CodegenContext moved to upper level 2012-08-29 21:16:34 +03:00
Andrey Breslav 7caa1b8aa4 KT-2364 Drop traces of constructor-entries in enums
#KT-2364 Fixed
2012-08-29 22:07:42 +04:00
Alex Tkachman 85dcfac2b8 some unmotivated uses of typeMapper.getBindingContext() replace with use of local field 2012-08-29 21:00:39 +03:00
Pavel V. Talanov c834c4cf0f Merge remote-tracking branch 'origin/master' 2012-08-29 20:28:44 +04:00
Pavel V. Talanov b7b0dd0146 Rename private constants in CodegenUtil in order not be confused with asm real flags. 2012-08-29 20:26:52 +04:00
Andrey Breslav 8c1f4c9ca4 ignore android.tests.dependencies/ 2012-08-29 20:15:54 +04:00
Pavel V. Talanov 32f9dcedff Merge with Alex's refactroings. 2012-08-29 17:12:07 +04:00
Andrey Breslav d2d5f005be Workaround for failing tests (see comments in the code) 2012-08-29 16:26:14 +04:00
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