Commit Graph

8956 Commits

Author SHA1 Message Date
Svetlana Isakova 4c241b1234 refactoring: extracted method renderTypeWithoutEscape 2012-12-25 19:12:01 +04:00
Svetlana Isakova 16fa729c74 more readable rendering for special type constants 2012-12-25 19:12:01 +04:00
Svetlana Isakova c37d7352a5 improved reporting TYPE_MISMATCH error for function literals
(introduced EXPECTED_PARAMETER_TYPE_MISMATCH, EXPECTED_RETURN_TYPE_MISMATCH, EXPECTED_PARAMETERS_NUMBER_MISMATCH
instead of reporting TYPE_MISMATCH on the whole function literal)
2012-12-25 19:12:00 +04:00
Svetlana Isakova 972b234db6 KT-3150 Kotlin m4 don't recognize function literals
#KT-3150 fixed

 added check for PLACEHOLDER_FUNCTION_TYPE to constraint system
2012-12-25 19:12:00 +04:00
Svetlana Isakova b467638633 move constants to util
use DON_CARE instead of PLACEHOLDER_FUNCTION_PARAMETER_TYPE
2012-12-25 19:12:00 +04:00
Evgeny Gerashchenko ce02c3e058 Removed unused code from NamespaceComparator. 2012-12-25 15:20:57 +04:00
Evgeny Gerashchenko e3a30b10a9 Not writing fake parameters of enum constructors to generic signature. 2012-12-25 15:20:57 +04:00
Evgeny Gerashchenko 2daf9a10d0 Renamed test methods. 2012-12-20 19:26:52 +04:00
Evgeny Gerashchenko e49459f2cd Accelerated navigation to library tests by compiling test library once. 2012-12-20 18:48:48 +04:00
Evgeny Gerashchenko e131cc1e83 Renamed tests for navigation to library. 2012-12-20 18:48:48 +04:00
Evgeny Gerashchenko 5bdd68e502 Added navigation to source of constructor.
#KT-3168 fixed
2012-12-20 18:48:48 +04:00
Evgeny Gerashchenko 32699133cd Minor. Moved Pair class lower. 2012-12-20 18:48:48 +04:00
Evgeny Gerashchenko 9906bbef4e Navigation to decompiled primary constructor.
#KT-3168 in progress
2012-12-20 18:48:47 +04:00
Evgeny Gerashchenko 4c64ea58d5 Rendering primary constructor in decompiler.
#KT-3168 in progress
2012-12-20 18:48:47 +04:00
Evgeny Gerashchenko 9c15a04291 Pulled getUnsubstitutedPrimaryConstructor method to ClassDescriptor.
Removed ClassDescriptorFromSource. Implemented method in inheritors.
2012-12-20 18:48:47 +04:00
Evgeny Gerashchenko 5e5cd86194 Regenerated test data. 2012-12-20 18:48:47 +04:00
Evgeny Gerashchenko 1ab555a51b Checking primary flag in constructors loaded from Java. 2012-12-20 18:48:47 +04:00
Evgeny Gerashchenko 7fcbb3d563 Resolving primary flag for constructors. 2012-12-20 18:48:46 +04:00
Evgeny Gerashchenko 68d8b6b4c3 Added test with @KotlinSignature on method returning array.
#KT-2840 can't reproduce
2012-12-20 18:48:46 +04:00
Svetlana Isakova 4775329fb7 refactoring in recordInitializedVariables
(iteration over used variables can be replaced with iteration over declared variables)
2012-12-18 19:47:55 +04:00
Svetlana Isakova a5cf54d370 do not miss repeated 'uninitialized' error for properties 2012-12-18 19:47:55 +04:00
Svetlana Isakova a85519c3db isBackingFieldReference moved to JetPsiUtil 2012-12-18 19:47:55 +04:00
Svetlana Isakova 67d0d8b1a9 fix: val can be reassigned through backing field inside its own getter 2012-12-18 19:47:54 +04:00
Svetlana Isakova 58de1cabbc update tests according to package properties check 2012-12-18 19:47:54 +04:00
Svetlana Isakova 11bc01795f check package declaration in a file
to have the right properties initialization order
not to report errors if isDeclaredLocally (only recordInitializedVariables)
2012-12-18 19:47:54 +04:00
Svetlana Isakova 57518c1200 removed cached data for each instruction 2012-12-18 19:47:53 +04:00
Svetlana Isakova 207e161bfc made pseudocode be built on JetElement
instead of JetDeclaration
 to be able to be built on JetFile
2012-12-18 19:47:53 +04:00
Svetlana Isakova cb87ec8bdd added 'getFiles' method to BodiesResolveContext interface 2012-12-18 19:47:53 +04:00
Svetlana Isakova b6e2a0fb39 made JetFile implements JetElement 2012-12-18 19:47:53 +04:00
Svetlana Isakova 62f35e5e87 added LookInsideStrategy enum 2012-12-18 19:47:53 +04:00
Svetlana Isakova 0626225ea5 removed always true 'lookInside' parameter 2012-12-18 19:47:52 +04:00
Svetlana Isakova f697098fb4 KT-2960 Perform control flow checks for package property initializers
#KT-2960 fixed
2012-12-18 19:47:52 +04:00
Svetlana Isakova 51c38d4cd3 do not store references to all copies (if it's a copy itself) 2012-12-18 19:47:52 +04:00
Svetlana Isakova 428a2d8538 rename value -> generateInstructions 2012-12-18 16:00:27 +04:00
Svetlana Isakova dc3e324987 removed cached reversedInstructions and deadInstructions 2012-12-18 16:00:27 +04:00
Svetlana Isakova 6e8ac23689 removed allow dead collecting 2012-12-18 16:00:27 +04:00
Svetlana Isakova 8584a76750 do not need 'allow dead instructions'
after copies are collected

(instruction is dead only if all copies are dead)
2012-12-18 16:00:27 +04:00
Svetlana Isakova d778952512 fixed bug with incorrect copy of pseudocode part
(was noticeable in doTestCopy4 example)
labels after part should be repeated as well
2012-12-18 16:00:27 +04:00
Svetlana Isakova e15340bf3c use upper-case L in label name instead of lower-case 2012-12-18 16:00:27 +04:00
Svetlana Isakova e91805a593 TraversalOrder enum instead of boolean flag 2012-12-18 16:00:27 +04:00
Svetlana Isakova 7a03c85549 refactoring: merge traverseNextInstructions & traverseInstructionsInReverseOrder
into one method (traverseFollowingInstructions)
2012-12-18 16:00:27 +04:00
Ioannis Tsakpinis f5d6e8d751 KT-3141 Use iteration instead of recursion in traverseInstructionsInReverseOrder and traverseNextInstructions. 2012-12-18 16:00:26 +04:00
Svetlana Isakova d7a60f5fed added tests for KT-2369, KT-2585 and KT-2972
KT-2369 Variable is not marked as uninitialized in 'finally' section
 #KT-2369 fixed
KT-2585 Code in try-finally is incorrectly marked as unreachable
 #KT-2585 fixed
KT-2972 Wrong "unused value" warning when finally is present
 #KT-2972 fixed
2012-12-18 16:00:26 +04:00
Svetlana Isakova 97058e628e added names for loop labels
updated control flow test data
2012-12-18 16:00:26 +04:00
Svetlana Isakova 9904f21ceb added ThrowExceptionInstruction
(to store throw expression in it)
2012-12-18 16:00:26 +04:00
Svetlana Isakova e72cdbc1f7 added tests for 'copy' finally pseudocode part 2012-12-18 16:00:26 +04:00
Svetlana Isakova bd31f36836 added repeat pseudocode method
repeat from startLabel to finishLabel
(logic is inside PseudocodeImpl)
2012-12-18 16:00:26 +04:00
Svetlana Isakova 93327a3e31 check uninitialized vars inside local declarations
added parameter 'includeInsideLocalDeclarations' to getDeclaredVariables
2012-12-18 16:00:26 +04:00
Svetlana Isakova d45a4f9d27 refactoring: traverseForward and traverseBackward
instead of boolean parameter 'directOrder'
2012-12-18 16:00:26 +04:00
Svetlana Isakova f0dea9aee4 updated test data for try-finally 2012-12-18 16:00:26 +04:00