Commit Graph

2256 Commits

Author SHA1 Message Date
Andrey Breslav a3e76832e3 Re-using test data from readKotlinBinaryClass 2012-06-07 15:45:33 +04:00
Andrey Breslav a390908592 No constructor for traits and such 2012-06-07 15:45:33 +04:00
Andrey Breslav 8ee4c05be6 Support getClassDescriptor() 2012-06-07 15:45:32 +04:00
Alex Tkachman 243bdccf37 removing duplicating android check 2012-06-07 13:04:53 +03:00
Andrey Breslav 0916ec549d Add verification by dx.jar to CodegenTests
A patch by Natalia Ukhorskaya: https://github.com/JetBrains/kotlin/pull/70

Adds Android verfication to our codegen tests
2012-06-07 12:42:59 +04:00
Stepan Koltsov bace845b49 working on REPL: test template and basic analyzer hacks 2012-06-06 23:58:21 +04:00
Stepan Koltsov bfec04f319 WritableScopeImpl: specify debug name in constructor 2012-06-06 23:58:20 +04:00
Stepan Koltsov 06389993a9 do not store root scope in context
because context can be used more then once when analyzing REPL
2012-06-06 23:58:20 +04:00
Stepan Koltsov 3408c9833c ExceptionUtils.rethrow 2012-06-06 23:58:19 +04:00
Andrey Breslav 9da5fe11d9 Comparing tests generated from test data
For better debugging
2012-06-06 22:13:01 +04:00
Andrey Breslav acee1f5df1 Include subpackages and fake overrides into allDescriptors 2012-06-06 22:13:01 +04:00
Nikolay Krasko 5a22f43131 Constant for language name and several usage for this constant 2012-06-06 21:29:12 +04:00
Alex Tkachman 58385eabd8 multi-file namespace compilation 2012-06-06 19:34:31 +03:00
Dmitry Jemerov 5b987ccc15 when calling function stored in local variable as unary operation, don't forget to push function instance (KT-1953)
I'm sure that there are similar cases that still don't work;  please let me know if you find any
#KT-1953 fixed
2012-06-06 17:17:44 +02:00
Dmitry Jemerov 98c9569216 fix bad merge, sorry 2012-06-06 13:52:53 +02:00
Dmitry Jemerov 6b84f5d31a correctly coerce values in StackValue.store() (KT-1397)
#KT-1397 fixed
2012-06-06 13:43:34 +02:00
Alex Tkachman 7d938dd98f one more step to multi-file compilation 2012-06-06 12:17:25 +03:00
Alex Tkachman 03c4e755fa preparations to multi-file compilation 2012-06-06 11:12:39 +03:00
Stepan Koltsov f27147f752 script: make top level declarations class members 2012-06-05 22:59:07 +04:00
Stepan Koltsov 877ecf83ad store script object in CodeGenTest field 2012-06-05 22:56:26 +04:00
Stepan Koltsov 68ae2e95a3 better ScriptGenTest: check more fields 2012-06-05 22:56:26 +04:00
Stepan Koltsov 9a71cb5e72 CodeGenTest: check result and print code in any blackbox
... and fix test
2012-06-05 22:56:25 +04:00
Stepan Koltsov d33c8638d8 JetControlFlowTest doesn't need stdlib or jdk headers 2012-06-05 22:56:25 +04:00
Stepan Koltsov 6c12aa8605 rename CodegenContext.contextType to contextDescriptor to match getter name 2012-06-05 22:56:25 +04:00
Stepan Koltsov 4cf48d64a7 rename FunctionDescriptorImpl.receiver 2012-06-05 22:56:24 +04:00
Stepan Koltsov e7a81bb466 FrameMap: implement enterTemp using another enterTemp 2012-06-05 22:56:24 +04:00
Stepan Koltsov 999586eec9 FrameMap.toString
for debugging
2012-06-05 22:56:24 +04:00
Stepan Koltsov fbdfd5a5fb validate state in FrameMap.leave
fix variable leave order
2012-06-05 22:56:23 +04:00
Stepan Koltsov cf9dec51f5 formatting code for debugging 2012-06-05 22:56:23 +04:00
Stepan Koltsov 52234e96fd ScriptCodeDescriptor 2012-06-05 22:56:23 +04:00
Nikolay Krasko 601007c20f Stop using isJsProject method 2012-06-05 20:41:43 +04:00
Andrey Breslav 91606a3901 Introduce 'reified' instead of 'erased' 2012-06-05 20:19:07 +04:00
Andrey Breslav e5e3bc0ee5 PackageMemberDeclarationProvider introduced 2012-06-05 20:19:07 +04:00
Nikolay Krasko 184d3fb16e - Tests for OUT_OF_CODE_BLOCK_MODIFICATION behaviour
- Enable behaviour for property accessors
2012-06-05 17:54:22 +04:00
Evgeny Gerashchenko 364cbe3a88 Supported function and tuple types in alternative signatures. 2012-06-05 15:59:18 +04:00
Evgeny Gerashchenko b89353e094 Added tests for tuple and function types in alternative signatures. 2012-06-05 15:59:18 +04:00
Evgeny Gerashchenko 798ccdc8c4 Supported type parameters in alternative method signatures. 2012-06-05 15:59:18 +04:00
Evgeny Gerashchenko a4c4e2b0f1 Added alternative signature test for method with type parameters. 2012-06-05 15:59:18 +04:00
Evgeny Gerashchenko 247e3978d9 Moved alternative signature parsing logic from JDR to separate class. 2012-06-05 15:59:17 +04:00
Evgeny Gerashchenko 968d159f86 Fixed NPE when no type ref is specified in Kotlin signature. 2012-06-05 15:59:17 +04:00
Andrey Breslav c43c5fb697 Initial lazy resolve test comparing descriptors with the existing resolve mechanisms 2012-06-05 15:24:58 +04:00
Andrey Breslav 96d7d8414d ModuleDescriptor now supports lazy root namespaces 2012-06-05 15:24:58 +04:00
Andrey Breslav 3bf7c37c77 Annotations on classes and class objects supported 2012-06-05 15:24:58 +04:00
Andrey Breslav c57eb23e25 Primary constructors supported 2012-06-05 15:24:58 +04:00
Andrey Breslav 3ee6d759f8 getAllDescriptors() supported 2012-06-05 15:24:58 +04:00
Andrey Breslav eb0ac1dc8c Code and workflow simplified in NamespaceComparator 2012-06-05 15:24:58 +04:00
Dmitry Jemerov 23cdde5794 test for already fixed KT-1976 2012-06-05 11:51:36 +02:00
Stepan Koltsov e0ac80a7ce simplify ConstructorDescriptorImpl.getExpectedThisObject
(remove never-executed code)
2012-06-05 00:59:48 +04:00
Stepan Koltsov 9376313fd0 extract method 2012-06-05 00:59:47 +04:00
Stepan Koltsov 9f4e466898 adjust ExpressionCodegen.resolveToCallable parameter type 2012-06-05 00:59:46 +04:00