Ilya Chernikov
01eca8bac8
Clean up properties collection
2018-08-23 09:51:53 +03:00
Ilya Chernikov
c2e6c0ed49
Rename ScriptingEnvironment to ScriptingHostConfiguration
2018-08-23 09:51:53 +03:00
Ilya Chernikov
bd8f2a81e9
Rename ScriptDefinition to ScriptCompileConfiguration
2018-08-23 09:51:53 +03:00
Ilya Chernikov
04ffe7754e
Refactoring properties collection after review
2018-08-23 09:51:53 +03:00
Ilya Chernikov
74f8a541c0
Grand refactoring of the scripting DSL + many minor usability refactorings around it
2018-08-23 09:51:53 +03:00
Ilya Chernikov
70ec004aaa
Sorting default jvm props and basic implementations
2018-08-23 09:51:53 +03:00
Ilya Chernikov
904917c194
Make script definition a property bag directly
2018-08-23 09:51:53 +03:00
Ilya Chernikov
8953bba47c
Pass scripting (host) environment independently from properties/configuration
2018-08-23 09:51:53 +03:00
Ilya Chernikov
a54675abe7
Clean and fix new scripting API
2018-08-23 09:51:53 +03:00
Nicolay Mitropolsky
9eb612a605
CreateCallableFromUsageFix always calls openInEditor to force proper editor and focus
2018-08-22 15:03:01 +03:00
Nicolay Mitropolsky
18db40474a
KotlinElementActionsFactory uses createAddMethodActions to create properties
2018-08-22 15:03:01 +03:00
Toshiaki Kameyama
f1dc09f839
Add postfix template for the spread operator #KT-26249 Fixed
2018-08-22 10:56:39 +03:00
Alexander Udalov
852760b3b0
Report error on incompatible .kotlin_module files in classpath
...
Also remove obsolete test wrongAbiVersionNoErrors
#KT-25973 Fixed
#KT-26266 Open
2018-08-21 17:12:02 +02:00
Sergey Igushkin
a71c66a82f
Fix the SourceSet.projectDefault() extension adding sources to resources
...
The `include` calls were effectively made on the `resources`
`SourceDirectorySet`, which meant including '**' from 'src' as well.
Since the 'SourceDirectorySet' API is quite limited and does not support
specifying includes/excludes separately, configure the
`ProcessResources` task instead.
2018-08-21 18:05:52 +03:00
Vyacheslav Gerasimov
f4eee4c2e4
as33: Restore gradle-java.xml
2018-08-21 17:38:58 +03:00
Alexander Udalov
b6bf1604ea
Regenerate tests
2018-08-21 15:54:04 +02:00
Vyacheslav Gerasimov
4bfa2a3957
as33: Add missing GooglePluginUpdateVerifier
2018-08-21 16:36:22 +03:00
Vitaliy Bibaev
4830c9a13d
Fix broken tests compilation for AS and IDEA 173 after Sequence Debugger merging ( #1820 )
...
* Add dependency on stream debugger for tests in IDEA 173
* Fix compilation error for tests with IDEA 173
* Fix compilation issues with Android studio and sequence debugger tests
2018-08-21 16:23:45 +03:00
Alexey Sedunov
788606445e
MPP: Support configurations with metadata
2018-08-21 15:35:43 +03:00
Alexey Sedunov
acbe299126
MPP: Support language settings in new model import
2018-08-21 15:35:42 +03:00
Alexey Sedunov
c45608a46e
MPP: Restore non-Android content roots dropped by AS3.1
2018-08-21 15:35:42 +03:00
Alexey Sedunov
a5de065d7c
MPP: Support Android platform in new model import
2018-08-21 15:35:42 +03:00
Alexey Sedunov
b983c93930
MPP: Add ImportedModule for non-Android source set modules
...
The goal is to work around model disposal service
which discards module data without ImportedModule instance
2018-08-21 15:35:42 +03:00
Alexey Sedunov
80102fc2bc
Test Support: Check availability of test plugins in Gradle run configs
...
#KT-26228 Fixed
2018-08-21 15:35:42 +03:00
Denis Zharkov
944b0d058a
Allow calling some pieces of the experimental coroutine API
...
- Calling suspend functions is allowed
- Presence of suspend function type still makes declaration
unusable unless it belongs to a value parameter as a top-level type
containing less then three parameters
Still, warning should be emitted because they will become unsupported in 1.4
#KT-25683 In Progress
2018-08-21 13:44:02 +03:00
Alexander Udalov
b7808ba24d
Pass JvmTarget to KotlinTypeMapper
...
Also use KotlinTypeMapper.RELEASE_COROUTINES_DEFAULT instead of false in
FileRankingCalculator
2018-08-21 12:23:07 +02:00
Mikhail Glukhikh
3bdf38e6b2
Refactoring: HasExpectedMarker (use not-null declarations)
2018-08-20 18:42:31 +03:00
Mikhail Glukhikh
8ef2c479e4
Refactoring: HasActualMarker (use not-null declarations)
2018-08-20 18:42:17 +03:00
Mikhail Glukhikh
9b29651371
Has actual (new MPP): handle possible actual in "common" module
...
Before this commit, we assumed all actual declarations are
in platform modules, and each platform has no more than one actual.
In new MPP, actual declarations can be also in common code,
and each platform as well as common code can include
more than one actual declarations for given expected.
#KT-26217 Fixed
2018-08-20 18:41:32 +03:00
Mikhail Glukhikh
18d43a2fce
MPP wizard [web]: do not add Java to JVM module by default
...
This removes controversial behaviour during Gradle import,
now strange 'main' / 'test' source sets aren't added
2018-08-20 18:41:29 +03:00
Mikhail Glukhikh
41507a4deb
MPP wizard [web]: add kotlin-test as dependency to all source sets
...
#KT-26239 Fixed
2018-08-20 18:41:28 +03:00
Mikhail Glukhikh
f9bba3ca86
Reformat & cleanup: kotlinSpacingRules
2018-08-20 13:21:28 +03:00
Mikhail Glukhikh
4fd8d3b480
Add formatting rule "new line between { and when entry"
2018-08-20 13:21:22 +03:00
Mikhail Glukhikh
ef094e78e3
Add when branches (minor): 'with import' -> 'with * import'
...
Change name of quick-fix to more descriptive one
2018-08-20 13:21:18 +03:00
Mikhail Glukhikh
b031e34f8d
Add when branches: include auto-import
...
Before this commit, enum / sealed class to add was not imported so
user had to import them himself. Now everything is auto-imported.
Separate "add with import" is kept but * import is now in mind there.
#KT-22330 Fixed
#KT-22354 Fixed
EA-108090 Fixed
2018-08-20 13:21:17 +03:00
Mikhail Glukhikh
f3972bfdfe
Ignore potential KNPE in "import all members" (see KT-22354)
2018-08-20 13:21:15 +03:00
Vitaliy.Bibaev
4f722dd32d
Use heuristics for termination calls for java/streamex as well
2018-08-20 05:18:04 +03:00
Vitaliy.Bibaev
1f9004e1ae
Minor: rename 'receiver' -> 'receiverValue'
2018-08-20 05:18:04 +03:00
Vitaliy.Bibaev
e1acd2e2c5
Use heuristics with call name to avoid redundant types resolve
2018-08-20 05:18:03 +03:00
Vitaliy.Bibaev
9b24600b0f
Minor: rename KotlinTypes -> KotlinSequenceTypes
2018-08-20 05:18:03 +03:00
Vitaliy.Bibaev
0ba506c1ec
Use partial resolve
2018-08-20 05:18:03 +03:00
Vitaliy.Bibaev
320cb18746
Remove dependency on stream-debugger plugin from 'idea' project
2018-08-20 05:18:03 +03:00
Vitaliy.Bibaev
5779eacb23
Use KotlinBuiltIns.FQ_NAMES for type names
2018-08-20 05:18:03 +03:00
Vitaliy.Bibaev
e158c9191c
Mention sequence debugger for 181 and 183 IDEA
2018-08-20 05:18:03 +03:00
Vitaliy.Bibaev
db5e6e1ddc
Minor: remove redundant field
2018-08-20 05:18:03 +03:00
Vitaliy.Bibaev
57ac7e0fb9
Remove @author JavaDoc from all my files
2018-08-20 05:18:02 +03:00
Vitaliy.Bibaev
55055ce3aa
Remove redundant LibraryUtil.kt
2018-08-20 05:18:02 +03:00
Vitaliy.Bibaev
c1ebc2788d
Minor fixes after inspecting code-style
2018-08-20 05:18:02 +03:00
Vitaliy.Bibaev
2d22267cf1
Apply project code style settings to sequence debugger code
2018-08-20 05:18:02 +03:00
Vitaliy.Bibaev
245a358ea8
Remove unused code
2018-08-20 05:18:02 +03:00