Commit Graph

4581 Commits

Author SHA1 Message Date
Ross Hanson 2147a88ed8 KT-4568: Created the ConvertNegatedBooleanSequence intention. This intention takes an expression of the form !a &&,|| !b &&,|| ... and converts it to the DeMorgan equivalent !(a &&,|| b ...). 2014-03-25 10:25:47 +04:00
Tal Man 1c2082fd19 Don't create empty parentheses when lambda is the only argument 2014-03-24 18:20:01 +04:00
Ilya Ryzhenkov 796611702c Test indentation on new line in scripts. 2014-03-24 18:17:51 +04:00
Ilya Ryzhenkov 64b4c2d49b Fix scripting formatter to avoid extra indent in invisible block node. 2014-03-24 18:17:51 +04:00
Ilya Ryzhenkov 480dd6767c Convert module scripting to .ktm extension. 2014-03-24 18:17:51 +04:00
Ilya Ryzhenkov 98c54f39bb Unify script file extensions to "kts" so that IDEA, compiler and tests agree when to parse as SCRIPT.
Include kt* files into formatter test generation, to test scripting formatting
2014-03-24 18:17:50 +04:00
Ilya Ryzhenkov 4ba423ee16 Retain original file extension to test formatting in scripts 2014-03-24 18:17:50 +04:00
Ilya Ryzhenkov e49f4a0722 Marked scripting points with // SCRIPT: markers. 2014-03-24 18:17:49 +04:00
Pavel V. Talanov 5bc8cc1f9a Stub tests: test for parameters with fq name 2014-03-24 17:51:53 +04:00
Pavel V. Talanov a1dbf221b3 Use instance methods instead of JetPsiUtil for getting fq names
Remove unnecessary usages of JetFile#getPackageDirective where only FqName is needed
Make JetFile#getPackageFqName not nullable to avoid confusion on call sites
Remove getPackageName usages
Move getFqName(JetNamedDeclaration) to a separate util class
2014-03-24 17:51:49 +04:00
Pavel V. Talanov 37538f9524 Delete JetStubResolveTest
This test does not seem meaningful anymore
Since DeclarationProvider based on stubs is used in IDE, it is covered by a vast number of tests(anything that uses lazy resolve)
2014-03-24 17:51:47 +04:00
Pavel V. Talanov c4de1898ce Minor: remove unused method 2014-03-24 17:51:45 +04:00
Pavel V. Talanov 4a5d88c51d Refactor: extract duplicated logic to util class
Introduce PackageIndexUtil
2014-03-24 17:51:43 +04:00
Pavel V. Talanov 97b4c57f0e Minor: fix misleading method name 2014-03-24 17:51:41 +04:00
Pavel V. Talanov ece6c8ebfe Stubs tests: treat NO_NAME_FOR_LAZY_RESOLVE specially 2014-03-24 17:51:40 +04:00
Pavel V. Talanov 246466bdc5 Implement stub based package declaration provider for lazy resolve
Implement StubPackageMemberDeclarationProvider
Introduce DeclarationProviderFactoryService to provide difference factories in CLI and Plugin
When indexing treat top level declarations without name specially so that they can be found in index
Implement PluginDeclarationProviderFactoryService which uses file based approach for non indexed files and stub based for others
2014-03-24 17:51:38 +04:00
Pavel V. Talanov fd5aea7c14 Refactor: use generated approach for stubs test
Remove meaningless assertion
Add comment to NotStorePropertyFromDelegate test
2014-03-24 17:06:07 +04:00
Pavel V. Talanov b2f2d43919 Stubs for JetClassBody 2014-03-24 17:06:05 +04:00
Pavel V. Talanov c6484ab4c3 Use of getFqName instead of JetPsiUtils 2014-03-24 17:06:04 +04:00
Pavel V. Talanov 4ef86bdf9f Add getFqName() to JetNamedDeclaration interface
Use stubs to get fq name in stubbed implementations
2014-03-24 17:06:03 +04:00
Pavel V. Talanov 22b714cef8 Refactor: rename short name indices 2014-03-24 17:06:01 +04:00
Pavel V. Talanov 24364dd63b Get rid of JetNodeTypes#LOOP_PARAMETER 2014-03-24 17:05:58 +04:00
Pavel V. Talanov 8e264a1419 Test for formatting loop parameter with explicit type 2014-03-24 17:05:58 +04:00
Alexander Udalov d704b37240 Minor, delete outdated suppressions, fix warnings 2014-03-24 16:40:07 +04:00
Nikolay Krasko b05fb38dcd Fix ArrayIndexOutOfBoundsException in named parameters completion 2014-03-24 15:19:26 +04:00
Nikolay Krasko de891ebc6e Use JB colors to avoid problems with different color schemes
- Fix KT-4725 Project wizard: bad font color
- Some warnings fixed

 #KT-4725 Fixed
2014-03-24 15:19:25 +04:00
Nikolay Krasko 287c1f4c71 Test for Complete class names in expression position (KT-2821, KT-3779)
#KT-2821 Fixed
 #KT-3779 Fixed
2014-03-24 15:19:24 +04:00
Natalia Ukhorskaya 8511c683c6 Fix SmartStepInto tests on ubuntu 2014-03-24 13:50:12 +04:00
Alexey Sedunov 46045a5538 Move top-level declarations to separate file: UI 2014-03-21 19:53:50 +04:00
Alexey Sedunov 5aa75ba3e1 Move top-level declarations to separate file: Refactoring processor and tests 2014-03-21 19:53:49 +04:00
Alexey Sedunov 6ddcd51af2 Rename test data directories 2014-03-21 19:53:47 +04:00
Pavel V. Talanov 6524adee0f KT-4735: Exception from type checker prevents copy/paste
#KT-4735 Fixed
2014-03-21 19:20:23 +04:00
Natalia Ukhorskaya fdef0b03fe Fix compilation 2014-03-21 17:21:42 +04:00
Natalia Ukhorskaya e8d2ba197e Debugger: implement Smart Step Into
#KT-4639 Fixed
2014-03-21 16:08:01 +04:00
Nikolay Krasko 0b1470b5e5 Remove com.beust.jcommander.internal.Lists usage 2014-03-20 16:38:55 +04:00
Alexander Udalov 7d311cdfa0 Support named arguments for Java constructors annotated with KotlinSignature 2014-03-20 12:49:16 +04:00
Alexander Udalov d2dc54c14f Add test on named arguments completion for Kotlin library 2014-03-20 12:25:58 +04:00
Alexander Udalov 1c25723764 Don't suggest non-stable parameter names in completion 2014-03-20 12:19:26 +04:00
Svetlana Isakova b33e3fc9d6 Merge pull request #371 from Stebalien/push-not-in-intention
Add an intention to simplify negated expressions.
2014-03-20 11:15:36 +03:00
Mikhael Bogdanov 9577c5c6ff Fixed wrong argument usage and ClassCastException 2014-03-20 10:45:55 +04:00
Svetlana Isakova a829da185d Resolve invoke on any kind of expressions, not only on simple name expressions 2014-03-20 10:05:24 +04:00
Alexander Udalov 1c5df773c5 Disallow named arguments for Java methods
Since they don't have stable names: they're (sometimes) loaded from the
bytecode, which (sometimes) doesn't contain parameter names
2014-03-19 23:24:28 +04:00
Evgeny Gerashchenko f61470943a KT-4683 KotlinNullPointerException at remove braces intention
#KT-4683 fixed
 EA-54686 fixed
 EA-54687 fixed
2014-03-19 23:20:24 +04:00
Nikolay Krasko 7b8e6fa462 Add kotlin templates for project create wizard
#KT-4689 Fixed
2014-03-19 21:08:29 +04:00
Ilya Ryzhenkov a3b45b919c Temporarily replace usages of extension on iterators in compiler by _tmp() calls 2014-03-19 20:25:16 +04:00
Ilya Ryzhenkov 94c88695bb Function moved to stdlib 2014-03-19 20:25:13 +04:00
Ilya Ryzhenkov 0267e2910d Test data fixed after stdlib updtae 2014-03-19 20:25:13 +04:00
Ilya Ryzhenkov 06873e9d09 Library paths updated after migration to new stdlib generators 2014-03-19 20:25:12 +04:00
Steven Allen d198465522 Add an intention to simplify negated binary expressions
Given an expression of the form `!(a op b)`, replace it with `a !op b`.

For example:

    !(a < b)    -> a >= b
    !(a is Int) -> a !is int
2014-03-19 12:10:28 -04:00
Mikhael Bogdanov 86a02b54fa Fix for debugger to support inlined lambdas 2014-03-19 19:20:36 +04:00