Commit Graph

10876 Commits

Author SHA1 Message Date
Alexander Udalov e22947281c Minor, cut down unnecessary 'load' in for-progression codegen 2013-06-20 16:03:00 +04:00
Alexander Udalov ee80e0b8ca Fix loops over progressions near to MAX_VALUE/MIN_VALUE
#KT-492 Fixed

For Byte, Char and Short ranges, promote the type of the loop parameter to int
to avoid overflows. For Int and Long ranges at the end of the loop over a
progression we now check if the new (incremented) value of the loop parameter
is greater than the old value iff increment > 0
2013-06-20 16:03:00 +04:00
Alexander Udalov 33d6347876 Fix loop over a range literal up to MAX_VALUE
#KT-492 In Progress

For Byte, Char and Short explicit casting from Int is removed -- loop parameter
is already stored in an Int anyway. For Int and Long comparison "i < end" at
the beginning of the loop is replaced to "i != end" at the end of the loop + a
special check for an empty loop
2013-06-20 16:02:59 +04:00
Alexander Udalov f1a6d27d35 Minor, prevent infinite loops in range tests 2013-06-20 16:02:59 +04:00
Nikolay Krasko b0484c9680 Refactorings in counting parameters tips 2013-06-20 14:56:50 +04:00
Nikolay Krasko e7bdee7994 Fix color for highlighting resolved method 2013-06-20 14:56:49 +04:00
Nikolay Krasko 1c2ee72322 Lazy analyze in counting parameters tips 2013-06-20 14:56:49 +04:00
Svetlana Isakova 9bf5f16bb7 refactoring
extracted checkReceiverTypeError method to avoid 'checkOnlyReceiverTypeError' boolean flag
2013-06-20 13:43:04 +04:00
Svetlana Isakova eb85e9abce fixed npe in comparing results 2013-06-20 13:43:04 +04:00
Svetlana Isakova 4403ea7b1d added ThrowingScope 2013-06-20 13:43:04 +04:00
Svetlana Isakova 041505f5b8 report UNRESOLVED_REFERENCE_WRONG_RECEIVER
mentioning candidates with wrong receiver
2013-06-20 13:43:03 +04:00
Svetlana Isakova 3340b94bd8 refactoring
extracted methods
2013-06-20 13:43:02 +04:00
Svetlana Isakova 342e9ebe7a KT-3563 Compiler requiring java.io.File, and it's unclear why
#KT-3563 fixed
2013-06-20 13:43:02 +04:00
Svetlana Isakova 3cf133bff7 changed local extensions priority
local extensions aren't longer chosen before members
2013-06-20 13:43:01 +04:00
Mikhael Bogdanov 132d74200b Partial fix for KT-3698: properly write field initializer 2013-06-19 17:02:28 +04:00
Nikolay Krasko 935c5ec16d Add folding doc and multiline comments 2013-06-18 17:46:02 +04:00
Nikolay Krasko 9c604267f8 Extract setting configurator to utility class 2013-06-18 17:46:01 +04:00
Mikhael Bogdanov 86f2a6dc69 Tests for not reproduced KT-1770, KT-3001 and KT-3414
#KT-3414 Can't Reproduced
 #KT-3001 Can't Reproduced
 #KT-1770 Can't Reproduced
2013-06-18 14:46:14 +04:00
Mikhael Bogdanov 79cf02ffb9 Fix for KT-3546: Exception when delegating to ArrayList
#KT-3546 Fixed
2013-06-18 13:23:54 +04:00
Mikhael Bogdanov 8ac8798266 Fix for KT-3684: IllegalAccess on a private property of the outer class
#KT-3684 Fixed
2013-06-18 11:20:44 +04:00
Alexander Udalov 03a818f732 Regenerate tests 2013-06-17 21:50:20 +04:00
Mikhael Bogdanov e803bcb3d9 Fix for KT-3687
#KT-3687 Fixed
2013-06-17 18:01:50 +04:00
Mikhael Bogdanov 52ead7a350 Fix for static - write NEED_SYNTHETIC flag on original descriptor 2013-06-17 17:25:40 +04:00
Mikhael Bogdanov 76d4dcef7f Tests for renamed fields 2013-06-17 15:20:42 +04:00
Mikhael Bogdanov aec6deae9f Rename fields on name clashing
#KT-3663 Fixed
 #KT-3664 Fixed
2013-06-17 15:20:42 +04:00
Mikhael Bogdanov 406f90badf CodegenContext replaced with MethodContext in ExpressionCodegen 2013-06-17 15:20:42 +04:00
Mikhael Bogdanov 4feb395dcc Test for static 2013-06-17 15:20:41 +04:00
Mikhael Bogdanov be72e096ef Realization of class object fields as static fields of outer class
#KT-2213 Fixed
2013-06-17 15:20:41 +04:00
Mikhael Bogdanov 47fe81471a Synthetic accessors for class object private members
#KT-3338 Fixed
2013-06-17 15:20:34 +04:00
Mikhael Bogdanov 4ef2f997ed Test for not reproduced KT-2700
#KT-2700 Can't Reproduce
2013-06-17 10:39:23 +04:00
Zalim Bashorov 16d71eeeac Added missing file (class). 2013-06-15 16:08:55 +04:00
Zalim Bashorov a69744e6fb Introduced the cache of temporary variables and expressions.
Used the cached temporary variables in SafeCall and SureCall instead create a new temporary variable.
2013-06-15 15:55:10 +04:00
Zalim Bashorov ee5c7c8f5c Added support spread operator in JS-Backend. 2013-06-15 00:52:02 +04:00
Zalim Bashorov 2bae647412 Make nullable check less verbose in JS-backend.
For check what variable is equal null or undefined enough to compare with null (or undefined).
See ECMAScript specification 11.9.1, 11.9.2, 11.9.3
2013-06-15 00:52:02 +04:00
Zalim Bashorov 60a2f4ef08 Added SingleFileTranslationTest#checkFooBoxIsOk without arguments which use test name as filename. 2013-06-15 00:52:00 +04:00
Alexey Sedunov 6f942a21de Move intention-related classes and tests to "intentions" directory 2013-06-13 20:19:38 +04:00
Alexey Sedunov 57252ea491 Add missing tests 2013-06-13 20:19:36 +04:00
Alexey Sedunov 12ea273ac0 Simplify unfolding of properties, fix caret position 2013-06-13 20:19:35 +04:00
Alexey Sedunov 3ab393e460 Implement split/join property declaration 2013-06-13 20:19:34 +04:00
Alexey Sedunov 42910395fc Remove unused utility methods 2013-06-13 20:19:33 +04:00
Alexey Sedunov da2055862e Move common code transformation classes 2013-06-13 20:19:32 +04:00
Alexey Sedunov f9c4606128 Introduce 'when' subject: consider equality right-hand side as subject candidate 2013-06-13 20:19:32 +04:00
Alexey Sedunov e13508c22b Add support of backticks in JetPsiMatcher 2013-06-13 20:19:31 +04:00
Andrey Breslav 6629892dad Convert both strings to \n before comparing 2013-06-13 14:41:27 +04:00
Andrey Breslav 1f45e309d2 Do not dispose environments outside tearDown()
This caused exceptions (write access assertions) when tests with mock application ran after tests with full Application
2013-06-13 12:30:18 +04:00
Zalim Bashorov bca243727c Changed GitHub's authorization method. 2013-06-13 11:39:55 +04:00
Andrey Breslav 88c5aaeaa1 Put validation parameter into Configuration 2013-06-11 22:09:40 +04:00
Andrey Breslav 97fabf5fc2 Allow error types for some Java tests 2013-06-11 22:09:40 +04:00
Andrey Breslav 4756e9fde3 Extract method 2013-06-11 22:09:40 +04:00
Andrey Breslav 23f91e4978 Do not dispose the project before results of its analysis are used 2013-06-11 22:09:39 +04:00