Commit Graph

7433 Commits

Author SHA1 Message Date
Alex Tkachman 49c19cd7ed abstraction issue: HashMap -> Map, ArrayList -> List in parameters 2012-08-23 18:07:22 +03:00
Alex Tkachman 69f5ef2862 always successful asserts removed 2012-08-23 18:05:33 +03:00
Alex Tkachman 08c5032734 nullability tweaks 2012-08-23 18:03:36 +03:00
Alex Tkachman a11511eaf6 extracted several methods to make code analizable by IDEA 2012-08-23 17:37:20 +03:00
Alex Tkachman dd8335dcf4 revert auto-applied IDEA fix from generated files 2012-08-23 17:00:47 +03:00
Alex Tkachman c8b6ef9c81 few method extracted from too complex method 2012-08-23 16:49:04 +03:00
Alex Tkachman 850a00a372 rewrite of too complex method 2012-08-23 16:05:12 +03:00
Alex Tkachman 83e1f6bfdf methods extracted to decrease method complexity 2012-08-23 15:25:16 +03:00
Alex Tkachman a2ff62ecf5 condition always true 2012-08-23 15:15:30 +03:00
Alex Tkachman 8fb449660d redundant cast removed 2012-08-23 15:12:50 +03:00
Alex Tkachman cb03d6c92b parameters marked as Nullable 2012-08-23 15:11:31 +03:00
Alex Tkachman 03eb9c1e70 useless code removed 2012-08-23 15:10:24 +03:00
Alex Tkachman a42842889e final modifiers added as suggested by IDEA 2012-08-23 14:57:21 +03:00
Alex Tkachman 179597156f weaken declaration access as suggested by IDEA 2012-08-23 14:57:21 +03:00
Alex Tkachman 0fad8a66f4 weaken access as suggested by IDEA 2012-08-23 14:57:21 +03:00
Alex Tkachman 80d6de381f correctly sized arrays 2012-08-23 14:57:21 +03:00
Nikolay Krasko 57d4a28a94 Remove duplicates and speeding-up PluginJetFilesProvider.allInScope 2012-08-23 15:53:41 +04:00
Pavel V. Talanov 3da2cd8f2f Try to fix build.
Expect files to start with lowercase letter in LoadJavaCustomTest#doSimpleTest().
2012-08-23 15:48:50 +04:00
Alex Tkachman 94593fd08f method extracted to avoid duplicates 2012-08-23 14:30:13 +03:00
Pavel V. Talanov fbb78e47b0 Rename: *extract* -> *load* in LoadDescriptorUtil. 2012-08-23 15:24:40 +04:00
Pavel V. Talanov baca087a02 Rename test data folder according to the new test naming convention. 2012-08-23 15:24:39 +04:00
Pavel V. Talanov 4bf2b9054a Rename tests loading descriptors so that they have consistent naming.
Add comments clarifying each test purpose.
2012-08-23 15:24:38 +04:00
Pavel V. Talanov 9dc611c4fe Get rid of LoadJavaDescriptorsTest.
Implement the same test via existing LoadJavaDescriptorsTest.
Move test data.
2012-08-23 15:24:37 +04:00
Pavel V. Talanov 971b27fe61 Refactor CompileJavaAgainstKotlinTest.
Avoid duplication.
2012-08-23 15:24:36 +04:00
Pavel V. Talanov b6c9790b2c Refactor CompileKotlinAgainstKotlinTest.
Avoid duplication.
2012-08-23 15:24:35 +04:00
Pavel V. Talanov f3dd54e70f Refactor some of the tests for loading descriptors.
Move most of the logic to LoadDescriptorUtil and refactor to avoid duplication.
More descriptive names for LoadDescriptorUtil methods.
Minor code improvements.
2012-08-23 15:24:35 +04:00
Svetlana Isakova 4457c7b6ba removed 'private' modifier for local function 2012-08-23 14:55:17 +04:00
Svetlana Isakova ac39daace6 KT-2667 Support multi-declarations in for-loops in control flow analysis
#KT-2667 fixed
2012-08-23 14:25:13 +04:00
Alex Tkachman 21774f5288 final modifiers added 2012-08-23 08:33:13 +03:00
Svetlana Isakova f8edaad420 make modality 'FINAL' for non-class members
not depend on actual modifier since it's not legal there
2012-08-22 20:42:35 +04:00
Svetlana Isakova bac0078646 check modifiers for package declarations
removed specific errors for illegal 'abstract' modifier
2012-08-22 20:42:35 +04:00
Svetlana Isakova 4a5269bb2d set LOCAL visibility for local functions
(it can't be INHERIT)
2012-08-22 20:42:35 +04:00
Svetlana Isakova ea611cb51d check modifiers for local declarations 2012-08-22 20:42:35 +04:00
Svetlana Isakova 5bac198165 all modifiers checks/resolve moved to ModifiersChecker 2012-08-22 20:42:35 +04:00
Natalia.Ukhorskaya 563d8a9001 Android test: add new special files (temporary commented in tests) 2012-08-22 20:37:11 +04:00
Evgeny Gerashchenko ba59369f9d Added another workaround for CME in IDEA code in tests (to be removed after updating to new IDEA). 2012-08-22 20:19:45 +04:00
Alexander Udalov d41f92370a comment failing test after 0cc27c0 2012-08-22 20:13:10 +04:00
Alex Tkachman fb5bf2f8c6 local classes without closures 2012-08-22 18:40:37 +03:00
James Strachan cbde1e1e46 added a little test case to see if using $ variables works in kotlin for JS generation (e.g. for angularjs support) 2012-08-22 16:17:40 +01:00
Pavel V. Talanov 0a044b18d5 Remove VariableDescriptor#isObjectDeclaration and usages.
Replace with BindingContext trace slice OBJECT_DECLARATION_CLASS.
Remove corresponding field from constructor.
Introduce hack in JavaDescriptorResolver which creates dummy class descriptors for enum entry objects.
2012-08-22 18:06:37 +04:00
Andrey Breslav ebef32e0f7 Reverting the essential part of 0cc27c0 2012-08-22 18:03:14 +04:00
Nikolay Krasko b277f2a7f4 Assert that resolve is not performed in dispatch thread 2012-08-22 17:59:41 +04:00
Nikolay Krasko f18166871d Don't block IDEA while trying to compute hint for declaration.
KT-2494 Idea stop working when editing the file in the attached project
 #KT-2494 Fixed
2012-08-22 17:19:15 +04:00
Andrey Breslav 0cc27c0176 Use generic invokeFunction() instead of ad-hoc one for in-range conditions in when 2012-08-22 17:07:52 +04:00
Andrey Breslav 08e3da6769 Rename 2012-08-22 16:48:30 +04:00
Andrey Breslav 72de754731 Refactoring FrameMap:
- dangerous enter() and leave() methods removed
- all variables are eneted/left with their type, not numeric size
2012-08-22 15:03:18 +04:00
Andrey Breslav 1c2e8ad550 BindingContextUtils.getNotNull() 2012-08-22 15:03:18 +04:00
Andrey Breslav 763e15a567 Clarifying message + making fields final 2012-08-22 15:03:18 +04:00
Natalia.Ukhorskaya 096963d7ad Android test: add new special files (must compile java file) 2012-08-22 14:37:45 +04:00
Natalia.Ukhorskaya 9e66e83603 idea_default.xml : add ignorableAnnotations option 2012-08-22 14:32:02 +04:00