Commit Graph

7368 Commits

Author SHA1 Message Date
Andrey Breslav 5b77210c95 KT-2632 Check multi-declaraions in for-loops
#KT-2632 Fixed
2012-08-21 19:49:26 +04:00
Andrey Breslav 22974391eb Extract method 2012-08-21 19:49:26 +04:00
Andrey Breslav 2dd2a4aaf4 Multi-declaration resolution logic moved to Util class 2012-08-21 19:49:25 +04:00
Evgeny Gerashchenko 48af006c08 Added workaround for CME in IDEA code in tests (to be removed after updating to new IDEA). 2012-08-21 19:41:20 +04:00
Andrey Breslav af85c99ffd KT-2627 Parse for with multiple range variables
#KT-2627 Fixed
2012-08-21 19:10:29 +04:00
Andrey Breslav d8e8145954 Grammar for property declarations fixed 2012-08-21 18:23:16 +04:00
Andrey Breslav 119612fcc2 Code duplication eliminated:
Ordinary local variables and multi-declarations are initialized using the same logic
2012-08-21 17:14:49 +04:00
Svetlana Isakova 47362bf2ac KT-2633 Support multiple assignment in JVM Back-end
#KT-2633 Fixed
2012-08-21 16:32:19 +04:00
Svetlana Isakova 239c5fd94b invokeFunction() works with Call objects instead of psi elements 2012-08-21 16:32:19 +04:00
Svetlana Isakova a7636f7b74 Shared var initialization moved to variable declaration generation 2012-08-21 16:32:19 +04:00
Svetlana Isakova 6527df3be1 generateBlock() refactored
- list of statements is traversed only once
- code duplication removed
- variable scopes start at declarations
2012-08-21 16:32:19 +04:00
Svetlana Isakova 2798ea4563 clean up 2012-08-21 16:32:19 +04:00
Alexander Udalov ed1f22111b line number codegen tests 2012-08-21 16:31:29 +04:00
Alexander Udalov 86e772b852 code style 2012-08-21 16:31:28 +04:00
Nikolay Krasko 9c91acac74 KT-2242 formatting problems: function literal passed outside the parentheses - option for spaces in single line function literal
#KT-2242 Fixed
2012-08-21 16:16:23 +04:00
Nikolay Krasko e7287ba8f4 KT-2242 formatting problems: function literal passed outside the parentheses - fix test data in affected tests
#KT-2242 Fixed
2012-08-21 16:16:22 +04:00
Pavel V. Talanov 0e4b59cc28 Simplify code in DescriptorResolver#resolvePrimaryConstructorParameterToAProperty. 2012-08-21 15:32:45 +04:00
Pavel V. Talanov b36873bf6d Class object always have name of the form <class-object-for-ClassName>. 2012-08-21 15:32:44 +04:00
Pavel V. Talanov ca6516489c DescriptorUtils#getClassObjectName utility and usages. 2012-08-21 15:32:43 +04:00
Nikolay Krasko cb0cf8e563 KT-1545 reformatting of kotlin code uses incorrect indentation for multi-line kdoc comments
#KT-1545 Open
2012-08-21 13:25:17 +04:00
Nikolay Krasko 2e92594462 KT-2242 formatting problems: function literal passed outside the parentheses
#KT-2242 Fixed
2012-08-21 12:54:53 +04:00
Alexander Udalov d38b965bf1 utilize JetTestUtils.createFile() in tests 2012-08-20 20:53:33 +04:00
Nikolay Krasko b85300d90a KT-2572 Cursor position on Enter after 'try'
#KT-2575 Fixed
2012-08-20 20:13:58 +04:00
Alexander Udalov 99ab76c8fd extract code for generating multifile namespace class names 2012-08-20 19:29:15 +04:00
Alexander Udalov 69b403783b multifile debugger tests 2012-08-20 19:29:14 +04:00
Alex Tkachman 354b61d9b5 Merge pull request #121 from goodwinnk/EA-35963
Test for EA-35963 (http://ea.jetbrains.com/browser/ea_problems/35963)
2012-08-20 08:22:15 -07:00
Svetlana Isakova 8860bab9f1 KT-2643 Support multi-declarations in Data-Flow analysis
#KT-2643 fixed
2012-08-20 18:48:09 +04:00
Svetlana Isakova f817eba7aa removed check for 'hasNext' val in frontend 2012-08-20 16:05:16 +04:00
Andrey Breslav f72fb51a55 JVMLS lsides 2012-08-20 11:26:13 +04:00
Andrey Breslav ecd1c17e47 Report type mismatch for component functions 2012-08-17 22:04:35 +04:00
Andrey Breslav 306c27a9bb Report error on local variables having no initializer and no type annotation 2012-08-17 22:04:35 +04:00
Andrey Breslav 2dc6691c1a DataFlowInfo taken into account when resolving component functions 2012-08-17 22:04:35 +04:00
Andrey Breslav b44c6f2d6e Tests for redeclarations with multi-decls 2012-08-17 22:04:35 +04:00
Andrey Breslav 409e474748 Component functions are indexed 1-based 2012-08-17 22:04:35 +04:00
Andrey Breslav 87ca056011 Obsolete TODOs removed 2012-08-17 22:04:35 +04:00
Andrey Breslav 06e3815110 JetVariableDescriptor is a named declaration 2012-08-17 22:04:35 +04:00
Andrey Breslav 68fffccf99 Rename 2012-08-17 22:04:35 +04:00
Svetlana Isakova edcff7db2a formatting 2012-08-17 22:04:34 +04:00
Svetlana Isakova a0da232ed3 KT-2631 Check multiple assignment - in progress
check multiple declaration without specified type annotation
2012-08-17 22:04:34 +04:00
Svetlana Isakova 68ebdabf8f Moved utility method to Util class 2012-08-17 22:04:34 +04:00
Svetlana Isakova 1efb6512c5 getInitializer moved to JetMultiDeclaration 2012-08-17 22:04:34 +04:00
Svetlana Isakova 1ab8dc9bad resolve local variable descriptors based on abstract interface 2012-08-17 22:04:34 +04:00
Svetlana Isakova 9e17069546 utility methods moved out of psi hierarchy 2012-08-17 22:04:34 +04:00
Svetlana Isakova 689dbdf6b6 formatting 2012-08-17 22:04:34 +04:00
Svetlana Isakova 3e5026407d rename 2012-08-17 22:04:33 +04:00
Svetlana Isakova 115bd21bea JetMultiDeclarationEntry implements JetVariableDeclaration 2012-08-17 22:04:33 +04:00
Svetlana Isakova f97572143e Visit/Accept methods for MultiDeclarations 2012-08-17 22:04:33 +04:00
Andrey Breslav 86e40073c5 KT-2625 Parse multiple assignment to variables
New PSI element types introduced.
Parsing procedure for properties reused.
Extra syntactic elements (receiver, type) are prohibited in the parser

#KT-2625 Fixed
2012-08-17 22:04:33 +04:00
Andrey Breslav d38d4e2e2b Name parsing extracted from parseFunction() and parseProperty() 2012-08-17 22:04:33 +04:00
Pavel V. Talanov 0796c98c81 Temporary workaround for KT-2619 Exception on using java enum in when. 2012-08-17 21:35:57 +04:00