Commit Graph

7589 Commits

Author SHA1 Message Date
Evgeny Gerashchenko bd5b8d3287 Added "$" in the end of multi-file namespace internal names to prevent them from having "Test" suffix. This blows JUnit test-runner's mind. 2012-08-31 19:02:42 +04:00
Alex Tkachman a54776196a fixed bug with compilation of this/outer. no need to check context hierarchy for superclasses except case of super call. 2012-08-31 17:42:35 +03:00
Natalia.Ukhorskaya c5711cccda Rename test files 2012-08-31 15:13:46 +04:00
Natalia.Ukhorskaya 84e846649f Fixed KT-2488 Optimizing imports removes references to enum constants when they are referred via short name in code 2012-08-31 14:52:04 +04:00
Alex Tkachman 737b794935 fix for KT-2711 wrong check on descriptor being integral range
method added to JetStandardLibrary to get all integral range descriptors
#KT-2711 fixed
2012-08-31 13:49:20 +03:00
Andrey Breslav c027b4149b Test for KT-2529 Support importing enum members using wildcard
#KT-2529 Fixed
2012-08-31 14:38:54 +04:00
Pavel V. Talanov 04da2f453a Test for KT-2281.
#KT-2281 fixed
2012-08-31 14:35:54 +04:00
Andrey Breslav 859dbc87d4 Fix CANNOT_CHECK_FOR_ERASED for when() 2012-08-31 14:23:02 +04:00
Andrey Breslav 002f34e6f5 Fields renamed in accordance to out conventions 2012-08-31 13:19:13 +04:00
Andrey Breslav 6b7a6c1cd2 Unused class removed 2012-08-31 13:18:38 +04:00
Andrey Breslav d8e562319f Clarifying comment 2012-08-31 13:16:40 +04:00
Andrey Breslav b6985bba8a Fixing test data according to changes in 0d86dee (Chars only range to other chars) 2012-08-31 13:05:17 +04:00
Andrey Breslav fee7131484 Relace a literal with a constant access 2012-08-31 12:52:47 +04:00
Andrey Breslav 0d86dee776 Chars only range to other chars 2012-08-31 12:52:47 +04:00
Andrey Breslav ce1320bab3 Multi-declarations supported in all flavours of for loops
(KT-2635 Support iteration with multiple range variable in JVM back-end)
 #KT-2635 Fixed
2012-08-31 12:52:47 +04:00
Andrey Breslav f1c4ab7188 Fix for RangeTo intrinsic for the case of LongRange 2012-08-31 12:52:46 +04:00
Andrey Breslav e8e5d3a87d Val-capturing tests for for-loops over arrays 2012-08-31 12:52:46 +04:00
Andrey Breslav d57986d3ca Commented code fragment deleted 2012-08-31 12:52:46 +04:00
Andrey Breslav 2a1307e040 For-loop over long range test 2012-08-31 12:52:46 +04:00
Alex Tkachman bf892870e1 fix for multiple evaluation of expression on multi var declaration 2012-08-31 11:45:56 +03:00
Natalia.Ukhorskaya dd3323cae2 Fixed KT-2418 Front-end allows enum constants with same name 2012-08-31 11:16:35 +04:00
Natalia.Ukhorskaya 1ef8818556 Front-end: Prohibit to create inner class with the same name as a property 2012-08-31 11:15:57 +04:00
Alex Tkachman 5038c906b2 fixed critical bug with receiver used in constructor, field initializer 2012-08-31 08:20:51 +03:00
Andrey Breslav a47ab0d408 More tests for continue in for loops 2012-08-30 20:30:52 +04:00
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