Nikolay Krasko
9e9c670ada
Minor: clean up and reformat
2016-06-10 14:17:20 +03:00
Mikhail Glukhikh
9470308fe7
If to when: more accurate comment handling #KT-12649 Fixed
2016-06-09 20:00:14 +03:00
Denis Zharkov
d2bf4cbfa0
Fix reference resolution on suspension calls
2016-06-09 17:57:15 +03:00
Stanislav Erokhin
a6da15f8e2
Minor. remove several methods from TypeUtils
2016-06-09 12:58:02 +03:00
Stanislav Erokhin
f41c8dc045
Refactoring. Removed several usages of asSimpleType
2016-06-09 12:58:00 +03:00
Stanislav Erokhin
1d9ca06b96
Remake KotlinTypes.
2016-06-09 12:57:59 +03:00
Stanislav Erokhin
56122460aa
Remove type capabilities.
2016-06-09 12:57:58 +03:00
Stanislav Erokhin
1eaefa7fed
Refactoring. Remove type capability Flexibility.
2016-06-09 12:57:50 +03:00
Stanislav Erokhin
669558c4ba
Refactoring. Move flexible type factory to deserialization module.
2016-06-09 12:57:48 +03:00
Stanislav Erokhin
7bc2c55d12
Refactoring. Create WrappedType.
2016-06-09 12:57:46 +03:00
Stanislav Erokhin
957bae18be
Refactoring. Move flexible type creation to KotlinTypeFactory.
2016-06-09 12:57:44 +03:00
Stanislav Erokhin
3a451744c5
Introduce KotlinTypeFactory
2016-06-09 12:57:43 +03:00
Denis Zharkov
b8d4d39f4d
Add custom applicability checks for suspend/coroutine modifiers
2016-06-08 18:53:16 +03:00
Denis Zharkov
75e112e752
Implement basic support for coroutines in JVM backend
2016-06-08 18:53:16 +03:00
Denis Zharkov
5c1e17c8e7
Revert "Completion fix for reserved 'async' syntax"
...
This reverts commit 318f0c89b2 .
2016-06-08 18:53:16 +03:00
Denis Zharkov
3ede8f97e6
Revert "Quick fix for deprecated async syntax"
...
This reverts commit afc1e24571 .
2016-06-08 18:53:16 +03:00
Denis Zharkov
7d3333e86e
Revert "Reserve "async* {}", extend the quick-fix"
...
This reverts commit a7e7d53e2b .
2016-06-08 18:53:16 +03:00
Denis Zharkov
329fb9d619
Introduce 'coroutine'/'suspend' modifiers
2016-06-08 18:53:16 +03:00
Denis Zharkov
38d74a16fe
Change FlagsToModifiers from enum to abstract
...
Add 2 non-trivial implementations and one for boolean flags
2016-06-08 18:53:16 +03:00
Alexey Sedunov
158037dd68
Create Test Intention: Fix RuntimeException on attempt to convert generated test class to Kotlin
...
#KT-12285 Fixed
#EA-82281 Fixed
2016-06-08 17:50:21 +03:00
Pavel V. Talanov
32c5ccdaad
plugin.xml: Add dependency on java module
...
This restricts usage of plugin to IDEA and Android Studio
2016-06-08 17:45:32 +03:00
Ilya Chernikov
e8c13882b4
Make script detection API generic, fix tests
2016-06-07 21:13:05 +02:00
Ilya Chernikov
656fcc9775
Refactor and fixes after review
...
improving script constructor search algorithm - now default params should be supported
remove prefix Customized- from scripts ModuleInfo-related classes
refactoring ideaModuleInfos after review
refactoring ResolveSessionProvider construction for readability
refactoring KotlinScriptConfigurationManager after review
fixing KotlinScriptDefinitionProvider after review
2016-06-07 21:13:04 +02:00
Ilya Chernikov
4d95e873a9
Add a guard for empty dependencies list, fixes EA-82348
2016-06-07 21:13:02 +02:00
Pavel V. Talanov
8e700cdb10
Do not limit scope when searching in index by default
2016-06-07 21:13:01 +02:00
Ilya Chernikov
b9ea9513b1
Rewrite handing and caching of script configurations
...
The refactoring could enable lazy update of the index on script loading, but seems that makeRootsChange
call doesn't work as expected, therefore initial project scan is performed in the KotlinScriptConfigurationManager
anyway
2016-06-07 21:12:59 +02:00
Ilya Chernikov
3e6616de42
Read script config if appropriate flag is specified, fix classpath handling
2016-06-07 21:12:58 +02:00
Ilya Chernikov
0d7ecee6ee
Update index on definition/import files changes
2016-06-07 21:12:57 +02:00
Ilya Chernikov
1a98c5eb0e
Allow script dependnencies to be found as a candidates for decompilation
2016-06-07 21:12:56 +02:00
Ilya Chernikov
9ed8dec9fb
Make a marker interface to allow ScriptDependenciesClassFilter to be used in the resolving
2016-06-07 21:12:55 +02:00
Ilya Chernikov
5c37017484
Prepare infrastruct for fixing customized script resolving
...
Move ConfigManager and ClassFinder to the idea-analysis
Add (back) IndexableSetContributor
Add a method in ConfigManager to generate all dependencies scope
Add and use delegating scope with possibility to get base scope from it (used in the class finder)
2016-06-07 21:12:54 +02:00
Ilya Chernikov
3e17724e58
Implement class finder for customized scripts resolving - not yet completely functional
2016-06-07 21:12:54 +02:00
Ilya Chernikov
b63ed0f4aa
Make script launcher aware of custom scripts, minor correction is core env
2016-06-07 21:12:53 +02:00
Ilya Chernikov
14ae795aaa
Support extra imports configuration for scripts (only classpath so far)
2016-06-07 21:12:51 +02:00
Ilya Chernikov
57f03332c2
Add module dependencies to script module info
2016-06-07 21:12:50 +02:00
Ilya Chernikov
dfc96d216b
Refactor configs loading, Add config script definitions reloading on config files changes
2016-06-07 21:12:49 +02:00
Ilya Chernikov
310e8014a8
Refactor KotlinScriptDefinitionProvider access to scriptDefinitions
2016-06-07 21:12:48 +02:00
Ilya Chernikov
f185d3639d
Move KotlinScriptConfigurationManager to idea module
2016-06-07 21:12:48 +02:00
Pavel V. Talanov
24b4afb3b8
Enable full highlighting in script files everywhere (was inside source roots only)
...
Extract KotlinHighlightingUtil to hold this logic
2016-06-07 21:12:43 +02:00
Pavel V. Talanov
34f8e9303f
scopeUtils: support CustomizedScriptModuleInfo info in completion
2016-06-07 21:12:42 +02:00
Ilya Chernikov
5590bcf024
Add initial prototype of custom script support in IDE
2016-06-07 21:11:29 +02:00
Ilya Chernikov
770ef16ef7
Replace script recognition from by PsiFile to by virtual file, fix custom script name generation
2016-06-07 21:11:28 +02:00
Ilya Chernikov
ad7fcc92d2
Add configurable script definition and appropriate manager component
...
The component is intended for configuring script types defined in some specific xml files and add appropriate script definitions to the provider
2016-06-07 21:11:27 +02:00
Ilya Chernikov
d225385d19
Add name and classpath to KotlinScriptDefinition
2016-06-07 21:11:26 +02:00
Alexander Udalov
e3164119c1
Inline PrintingMessageCollector#PLAIN_TEXT_TO_SYSTEM_ERR
...
Otherwise 'hasErrors' flags was not cleared between subsequent runs of tests
which were using this message collector
2016-06-07 21:12:24 +03:00
Nikolay Krasko
c93d0f69ca
Support Idea 163 branch
2016-06-07 19:18:55 +03:00
Kirill Rakhman
5c68681f96
Formatter: handle spaces before value arguments list (KT-12634)
...
#KT-12634 Fixed
2016-06-07 19:11:28 +03:00
Dmitry Jemerov
060c285715
search for Kotlin convention usages of Java methods
...
#KT-5960 Fixed
2016-06-07 14:50:16 +02:00
Dmitry Jemerov
7e2ce2d4e0
when finding usages of parameter of annotation class primary constructor, search also for light method generated from that parameter
...
#KT-9399 Fixed
2016-06-07 14:50:09 +02:00
Alexander Udalov
d8db769823
Use empty list instead of ThrowingList in callable reference resolution
...
Clients of the call resolution do not expect to see a throwing list in call's
arguments, and it's wrong to make each of them check against the special case
that is the resolution of callable references
Fixes EA-69901
2016-06-07 12:42:45 +03:00