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
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
Alex Tkachman
67e7491d4c
unused parameters removed
2012-08-29 14:32:06 +03:00
Alex Tkachman
8840a9bdd8
some static methods moved from JetTypeMapper to CodegenUtil & CodegenBinding
2012-08-29 14:30:44 +03:00
Alex Tkachman
50107b1429
AsmTypeConstants introduced
2012-08-29 14:17:23 +03:00
Evgeny Gerashchenko
c96d5fd7ca
Added CoreExternalAnnotationsManager.editExternalAnnotations() method to avoid compilation error on updating to newer IDEA
2012-08-29 14:51:06 +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
5298851bbb
@Nullable added
2012-08-29 13:01:46 +03:00
Alex Tkachman
d878be2ac7
unused method removed
2012-08-29 13:00:06 +03:00
Alex Tkachman
f0db65d798
optimizing imports
2012-08-29 10:45:34 +03:00
Alex Tkachman
5bf2831db7
className moved out of calculatedClosure/MutableClosure
2012-08-29 10:22:21 +03:00
Alex Tkachman
018a1f8c85
some cleanup of JetTypeMapper
...
- some methods not relevant directly to type mapping made static and moved to CodegenBinding or CodegenUtil
- naked bindingContext field shielded by getter
- injectors regenerated in order to have injection logic more natural
2012-08-28 21:27:43 +03:00
Andrey Breslav
602432e7fb
Revert the change from b3b18d74f3
2012-08-28 20:36:34 +04:00
Nikolay Krasko
22794cbf64
Fix for EA-38626 - can't find class delegate for JetLightClass constructed for kotlin enum entry.
2012-08-28 19:32:46 +04:00
Nikolay Krasko
5d37c9581b
getQualifiedName rewrite
2012-08-28 19:32:45 +04:00
Nikolay Krasko
a3aef5571e
Rewrite methods: root package is parent package for all packages
2012-08-28 19:32:45 +04:00
Nikolay Krasko
b1f466861d
Don't create new object
2012-08-28 19:32:44 +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