Commit Graph

12840 Commits

Author SHA1 Message Date
Alexander Udalov a35f285bcf Disable "UseOfSystemOutOrSystemErr" inspection in tests 2013-11-14 19:11:18 +04:00
Alexander Udalov cdecbc0915 Class objects also can have delegated members 2013-11-14 19:11:18 +04:00
Alexander Udalov 29f3c4a1a0 Report upper bounds violation for objects, not only classes 2013-11-14 19:11:18 +04:00
Alexander Udalov 01d8e658aa Regenerate tests 2013-11-14 19:10:34 +04:00
Alexander Udalov 57aa355b05 Report INVISIBLE_MEMBER on private class object usage 2013-11-14 19:10:18 +04:00
Alexander Udalov 94deb21551 Minor, move diagnostic tests for class objects 2013-11-14 17:45:57 +04:00
Andrey Breslav bd244e0460 Type fixed in the file name 2013-11-13 21:42:02 +04:00
Valentin Kipyatkov 2d3b0ffc0b Smart completion: offer class instantiating choice 2013-11-13 20:17:45 +04:00
Nikolay Krasko 80ab043d21 Tweak spacing in do-while 2013-11-13 19:08:53 +04:00
Nikolay Krasko dddde11c6a Configure spacing after 'while' in while statement 2013-11-13 19:08:52 +04:00
Nikolay Krasko 7587e8ffcb Insert space between ) and statement body 2013-11-13 19:08:51 +04:00
Nikolay Krasko c50804a3f3 Add spaces after ) and around 'else' in 'if' 2013-11-13 19:08:51 +04:00
Andrey Breslav 6efd72738a More information in error message 2013-11-13 18:09:37 +04:00
Andrey Breslav 5e3909ba87 Regenerated 2013-11-13 14:39:16 +04:00
Andrey Breslav 0c9aec5941 Annotations for guava 2013-11-13 14:36:49 +04:00
Andrey Breslav c4ecb9663a Basic utility for rendering DataFlowValues 2013-11-13 14:36:34 +04:00
Andrey Breslav 9aee57bfb5 getCompleteTypeInfo(), getCompleteNullabilityInfo() and getId() made public 2013-11-12 22:56:18 +04:00
Andrey Breslav c0d75269af Explicitly check for NO_IDENTIFIER_INFO 2013-11-12 21:54:45 +04:00
Zalim Bashorov 8917bd0331 KotlinJpsBuildTestCase -> KotlinJpsBuildTest 2013-11-12 20:34:23 +04:00
Zalim Bashorov 4fb995c50b JPS: add tests for: exclude in compiler settings, project with more then one file. 2013-11-12 20:33:05 +04:00
Zalim Bashorov b31e2d7421 JPS: ignore excluded directories and files in compilation.
#KT-4188 fixed
2013-11-12 18:44:30 +04:00
Zalim Bashorov 923fd74c0a JPS: revert KotlinBuilder changes for using dirty files, because it's wrong. 2013-11-12 18:44:30 +04:00
Evgeny Gerashchenko a608612e6b KT-4183 BuiltInsReferenceResolver$1 startup activity is slow
#KT-4183 in progress
2013-11-12 15:50:53 +04:00
Pavel V. Talanov f9a2b09a4e Add(Remove)ParameterQuickFix is not available for unmodifiable files 2013-11-12 14:15:57 +04:00
Pavel V. Talanov 3e97203f85 Check that target functions can be modified in JetChangeSignature 2013-11-12 14:15:56 +04:00
Pavel V. Talanov f4c8655fa2 Use DescriptorToDeclarationUtil to get function declaration in JetChangeSignature 2013-11-12 14:15:55 +04:00
Pavel V. Talanov 53acd2c837 Minor: add @NotNull annotations 2013-11-12 14:15:54 +04:00
Pavel V. Talanov a422523cfb Fix an exception that can be thrown if quickfix still exists but psi is no longer valid 2013-11-12 14:15:53 +04:00
Pavel V. Talanov c1d5851060 Minor: fix typo 2013-11-12 14:15:53 +04:00
Pavel V. Talanov 49a7c47276 Prettify code 2013-11-12 14:15:52 +04:00
Pavel V. Talanov 959ab2b20c Enum class objects values and valueOf functions have kind SYNTHESIZED 2013-11-12 14:15:51 +04:00
Pavel V. Talanov dfef9aa6e9 Select first new parameter in JetChangeSignatureDialog by default 2013-11-12 14:15:50 +04:00
Pavel V. Talanov 3ddcf40518 Run "Add function parameter" fix silently if current usage is the only usage of the function 2013-11-12 14:15:49 +04:00
Pavel V. Talanov 66cc9b2cc7 Show error hint when trying to refactor synthesized function 2013-11-12 14:15:48 +04:00
Pavel V. Talanov f032b6e236 Eliminate redundant descriptorToDeclaration call from factory for "Change signature" quick fixes 2013-11-12 14:15:47 +04:00
Pavel V. Talanov 8c95884ad2 Add new functionality to "Change signature" refactoring
Extract single point of entry for all change signature refactorings and fixes (remove parameter, add parameter)
Change signature now affects overriding functions as well
Ask the user whether he wants to refactor base function(s) or the selected one if appropiate
Fix a problem with descriptorToDeclaration in JetChangeSignatureHandler
Rename: JetFunctionPlatformDescriptor -> JetMethodDescriptor
2013-11-12 14:15:46 +04:00
Pavel V. Talanov 967030e7c1 Minor: Fix message in JetBundle 2013-11-12 14:15:45 +04:00
Pavel Talanov 97532f68c6 Add filterOutOverriding to OverridingUtil 2013-11-12 14:15:44 +04:00
Pavel Talanov 82feef23c3 Rename: OverridingUtil#filterOverrides -> filterOutOverridden to be more precise 2013-11-12 14:15:43 +04:00
Pavel Talanov 700d26917b Minor: Remove commented out code 2013-11-12 14:15:42 +04:00
Valentin Kipyatkov a7f11e6852 Very initial implementation of smart completion 2013-11-11 21:46:05 +04:00
Valentin Kipyatkov a3e67ff27d Deleted test file 2013-11-11 21:21:56 +04:00
Valentin Kipyatkov bb73a21154 Test commit to test write access 2013-11-11 21:20:08 +04:00
Andrey Breslav 2b6f688a52 Annotate fields from traits' class object properties 2013-11-11 17:20:16 +04:00
Andrey Breslav 4fa691f4b4 Ignore @Nullable/@NotNull annotations when deserializing Kotiln descriptors
This is needed because we write these annotations to class files on all API callables automatically. Seeing all these annotations on descriptors is no good
2013-11-11 17:20:16 +04:00
Andrey Breslav 1f574a9feb Do not annotate private members and their parameters (to save space) 2013-11-11 17:20:15 +04:00
Andrey Breslav 0959f7e37c Don't mark primitive types as @NotNull 2013-11-11 17:20:15 +04:00
Andrey Breslav f3901d2844 visitAnnotation() could return null for light classes 2013-11-11 17:20:15 +04:00
Andrey Breslav 2873f74932 Generate @Nullable/@NotNull annotations on Kotlin declarations (for IDEA interop) 2013-11-11 17:20:15 +04:00
Andrey Breslav 4268d8aa27 Generate parameter annotations even in LIGHT_CLASSES mode 2013-11-11 17:20:15 +04:00