Commit Graph

585 Commits

Author SHA1 Message Date
Stepan Koltsov 0f8c449f55 ScriptGenTest: more 2012-05-31 19:31:40 +04:00
Andrey Breslav ca0f2fce8c Root namespace behavior fixed 2012-05-31 16:35:56 +04:00
Andrey Breslav c1e6961d50 PSI-based declaration providers 2012-05-31 16:26:43 +04:00
Dmitry Jemerov b03966e8d0 coerce condition value to Type.BOOLEAN (KT-2147) 2012-05-31 13:59:42 +02:00
Andrey Breslav 7d550980c6 Lazy resolve: Generate fake overrides for functions 2012-05-31 14:29:25 +04:00
Andrey Breslav 5504015025 Preliminary version of lazy resolve
The implementation is incomplete and thus not used anywhere other than the test
2012-05-30 21:09:22 +04:00
Stepan Koltsov 3a3cbd53d8 JavaDescriptorResolver should not crash if there is no original for alt-header
(before this commit it crashed because package was not searched in alt-headers)

This commit makes JDR ignore alt-header if original is not found
2012-05-30 21:04:47 +04:00
Stepan Koltsov 1f5666e0e8 more tests in ScriptGenTest 2012-05-30 19:47:42 +04:00
Stepan Koltsov ae12b4e5fc fix compilation 2012-05-30 18:49:36 +04:00
Stepan Koltsov e157853468 test for scala-library jar resolve
scala-library descriptors does not fit in memory, so resolve it in chunks

BTW scala-library it is resolved fine
2012-05-30 18:47:00 +04:00
Stepan Koltsov 30e44fdc5f script parameters
still a lot of things to do
2012-05-28 20:31:29 +04:00
Stepan Koltsov 9402262e7c CodegenTestFile 2012-05-28 20:19:23 +04:00
Andrey Breslav e4007992c6 Extract interface: TypeParameterDescriptor
A lot of code relied on these descriptors being mutable. In most cases I managed to work around this,
 but there're still are casts to raw List necessary in one or two places
2012-05-28 20:02:36 +04:00
Svetlana Isakova ac41cab340 added PseudocodeUtil responsible for creation 2012-05-28 12:09:45 +04:00
Svetlana Isakova 0bf65bfe1e get rid of JetPseudocodeTrace
and JetControlFlowDataTraceFactory
2012-05-28 12:09:44 +04:00
Evgeny Gerashchenko 30ede72c32 Fixed typo 2012-05-23 17:15:27 +04:00
Evgeny Gerashchenko ea36cf9fb0 Reverted all changes related to renaming jdkHeaders to altHeaders. 2012-05-23 17:05:09 +04:00
Stepan Koltsov 33a59ff5fe Name class
In the most places in frontend identifier is stored in Name class, was in String.
Name has two advantages over String:
* validation: you cannot accidentally create identifier with dot, for example
* readability: if you see String, you don't now whether it is
  identifier, fq name, jvm class name or something else

Name's disadvantage is (small) performance overhead. We have no value types in JVM.
2012-05-23 02:52:32 +04:00
Stepan Koltsov 13a9108f05 sort members in Read*BinaryClassTest
test should not fail if hash code or hash set is implemented diffently
2012-05-23 02:52:31 +04:00
Stepan Koltsov ecc4c484a6 move NameUtils, FqName into name subpackage 2012-05-23 02:52:30 +04:00
Stepan Koltsov f4051f45ab generate bytecode for script
It is just prototype

* does not make top level symbols visible as class members yet
* does not take parameters
* Script class name is hardcoded now
2012-05-23 02:52:29 +04:00
Stepan Koltsov 5fc73a4cd4 parse kotlin scripts
http://confluence.jetbrains.net/display/~stepan.koltsov/REPL
2012-05-23 02:52:29 +04:00
Stepan Koltsov a8bf3b6e10 utility to run stdlib test forever 2012-05-23 02:52:29 +04:00
Stepan Koltsov 5eb3a86c4d break CodegenTestCase : JetLiteFixture dependency
This is important because test base classes like JetLiteFixture has
a lot of unused code/state that hardens reading/debugging.
2012-05-23 02:52:28 +04:00
Alex Tkachman f15cb22809 patch from Natasha to fix local var table 0 for function literals 2012-05-22 19:10:59 +03:00
Stepan Koltsov c9ff920f8a JetDiagnosticsTest: no hardcoded paths and .jet extension 2012-05-19 00:36:27 +04:00
Stepan Koltsov cfa2425f3d JetParsingTest: allow custom file extensions, simplify paths 2012-05-18 15:27:03 +04:00
Svetlana Isakova 2d601cf4a2 Frontend part of KT-910 Type of try/catch/finally 2012-05-18 15:20:37 +04:00
Evgeny Gerashchenko 15f6e7403e Renamed jdkHeaders to altHeaders in all places where it makes sense. 2012-05-15 15:19:55 +04:00
Evgeny Gerashchenko 4ab2588cbd Made compiler aware of multiple alt-header paths. 2012-05-15 15:19:55 +04:00
Andrey Breslav cf3091adb5 Data flow info always taken into account in safeGetType()
The dangerous method removed
2012-05-13 12:58:50 +04:00
Stepan Koltsov 8c8ed3a1ee KT-1388 Parse static final fields from java binary classes as non-null
#KT-1388 Fixed
2012-05-13 00:53:37 +04:00
Stepan Koltsov ae58c1c888 better comparison of vararg signatures in Read*BinaryClassTest 2012-05-12 22:28:39 +04:00
Evgeny Gerashchenko 070a3729e5 Fixed unnecessary FQ name bug.
#KT-1954 fixed
2012-05-11 19:39:51 +04:00
Nikolay Krasko 2dba348ecb Intermediate major refactorings for lazy resolve 2012-05-11 18:58:54 +04:00
Stepan Koltsov 9a05af1757 stdlib and jdk-headers are not needed in DescriptorRenderer 2012-05-11 18:24:57 +04:00
Stepan Koltsov aa4252462f replace 'for (;;)' with 'while (true)' 2012-05-11 16:26:26 +04:00
Natalia.Ukhorskaya 162cc7307d KT-1935 Fixed: ACC_SUPER flag must be set for classes 2012-05-11 12:52:26 +04:00
Stepan Koltsov ded824468a replace String with JvmClassName 2012-05-11 01:08:33 +04:00
Stepan Koltsov 9908791094 KT-1829 NoClassDefFoundError when using java inner classes
#KT-1829 Fixed
2012-05-11 01:08:30 +04:00
Stepan Koltsov b0cea24faf move compileJavaFile 2012-05-11 01:08:26 +04:00
Stepan Koltsov 7aa4a32f3e resolve mcvaadin and vaadin libraries
(no problems found)
2012-05-10 18:56:17 +04:00
Alex Tkachman 6d2deaa70c KT-1600: call to non-overriden generic method 2012-05-10 16:45:34 +03:00
Stepan Koltsov dd332bc08c -mode idea
#KT-1893 Fixed
2012-05-04 23:57:13 +04:00
Svetlana Isakova 22e9e7de10 more small tests 2012-05-04 20:47:26 +04:00
Andrey Breslav 7390aeb022 Diagnostic fixed 2012-05-04 20:07:40 +04:00
Stepan Koltsov f4527b8167 better method name 2012-05-03 18:30:47 +04:00
Alex Tkachman e18e35c40c KT-785 test 2012-05-03 16:20:28 +03:00
Alex Tkachman 25c804431b test for KT-606 2012-05-03 16:12:44 +03:00
Stepan Koltsov d7cb2f2482 resolve idea classes 2012-05-03 17:05:37 +04:00