Pavel V. Talanov
2e126d3452
Allow navigating to Java sources of script dependencies
...
Using deprecated API seems the only working solution atm
2016-06-25 22:25:14 +03:00
Pavel V. Talanov
8ad856e1d0
Allow navigating to Kotlin library sources of script dependencies
2016-06-25 22:25:12 +03:00
Pavel V. Talanov
693eeb9f0a
Split ScriptModuleInfo into script itself and its dependencies
...
For now include all dependencies of all scripts for every script, to be improved later
2016-06-25 22:25:10 +03:00
Pavel V. Talanov
1a9c46f34b
Ide Scopes: Allow including script dependencies into search scope
...
This includes script dependencies into scopes for some of the IDE services
Should be revisited later to decide if given service should work for scripts
2016-06-25 22:25:08 +03:00
Pavel V. Talanov
7ededbd5e2
KotlinScriptConfigurationManager: run caching code in smart mode
2016-06-25 22:25:05 +03:00
Pavel V. Talanov
1da3efea81
Implement API to get source roots of script dependencies in KotlinScriptConfigurationManager and KotlinScriptConfigurationManager
2016-06-25 22:25:03 +03:00
Pavel V. Talanov
ae61767bc7
Refactor: move KotlinScriptDependenciesIndexableSetContributor to a separate file
2016-06-25 22:25:02 +03:00
Pavel V. Talanov
ad9c8eedfb
Implement JavaClassesInScriptDependenciesShortNameCache to allow completion and auto-import of java classes
2016-06-25 22:25:00 +03:00
Pavel V. Talanov
9185baf13c
J2K KotlinSourceFilterScope: rename file
2016-06-25 22:24:58 +03:00
Pavel V. Talanov
a461dd0da2
J2K KotlinSourceFilterScope: autoconvert
2016-06-25 22:24:56 +03:00
Pavel V. Talanov
ddb3327992
Minor: Remove scoping limitation in newly created indices
2016-06-25 22:24:54 +03:00
Pavel V. Talanov
8921ced9dd
Indenter: fix indentation on top level in scripts
2016-06-25 22:24:52 +03:00
Ilya Chernikov
b0bff64cff
fixes after review
2016-06-25 22:24:50 +03:00
Ilya Chernikov
5a77d2e92b
Change to single ScriptTemplateDefinition annotation and separate AcceptedAnnotations annotation on resolver
2016-06-25 22:24:48 +03:00
Ilya Chernikov
f24d954302
Remove unused support for script templates configs
2016-06-25 22:24:47 +03:00
Ilya Chernikov
4f05f839a3
Add previous imports to resolving interfaces to enable effective caching implementations
2016-06-25 22:24:45 +03:00
Ilya Chernikov
f30b402640
Change a parameter "context" in script templates to environment: Map<String, Any?>?
2016-06-25 22:24:43 +03:00
Ilya Chernikov
bf683a63fb
Implement annotation proxy generation for script dependencies resolvers
2016-06-25 22:24:41 +03:00
Ilya Chernikov
8a06eafaf1
Rename-refactor interfaces and methods of the script dependencies resolving
2016-06-25 22:24:39 +03:00
Ilya Chernikov
5fd013ef42
minor: rename a field in ScriptTemplateProvider interface
2016-06-25 22:24:37 +03:00
Ilya Chernikov
5bea5bcc37
Add script files changes monitoring, logic for initialization during index rebuilding
2016-06-25 22:24:36 +03:00
Ilya Chernikov
8dac72f465
Add support for script classfiles caching
2016-06-25 22:24:34 +03:00
Ilya Chernikov
3157421189
Fix File Manager tests after classpath/index initialization became lazy
2016-06-25 22:24:32 +03:00
Ilya Chernikov
64bb47ed37
Switch to File instead of String for classpaths in script dependencies
2016-06-25 22:24:30 +03:00
Ilya Chernikov
5e3ba36cc1
Simplify GetScriptDependencies interface
2016-06-25 22:24:28 +03:00
Ilya Chernikov
a60e1ab807
Fix implementation of gradle ScriptTemplateProvider extension
...
WARNING: adds dependency to idea's gradle-and-groovy-plugin to idea-core
2016-06-25 22:24:27 +03:00
Ilya Chernikov
834372a3b3
Implement extension point for providing script templates
2016-06-25 22:24:25 +03:00
Ilya Chernikov
082290f8e3
Refactor script dependencies management
2016-06-25 22:24:23 +03:00
Ilya Chernikov
c244414f3c
Convert ScriptNameUtil to Kotlin: phase 3 - refactor
2016-06-25 22:24:21 +03:00
Ilya Chernikov
590f09ee58
Convert ScriptNameUtil to Kotlin: phase 2 - convert
2016-06-25 22:24:19 +03:00
Ilya Chernikov
f96517a54a
Convert ScriptNameUtil to Kotlin: phase 1 - rename file
2016-06-25 22:24:17 +03:00
Ilya Chernikov
d212d369b0
Implement support for extra imports
2016-06-25 22:24:16 +03:00
Ilya Chernikov
402e8c1e3e
Add dependency from annotation extraction mechanisms to the prototype, with tests
2016-06-25 22:24:14 +03:00
Ilya Chernikov
3f5a2c2781
Add initial prototype of script def based on annotated base class, with simple tests
2016-06-25 22:24:12 +03:00
Ilya Gorbunov
1e66147e91
Update changelog for 1.0.3: section about new compiler options
2016-06-25 09:17:11 +03:00
Mikhael Bogdanov
a090133581
Inline properties support in incremental compilation
2016-06-24 17:05:53 +03:00
Mikhael Bogdanov
93a770fcc8
Code clean
2016-06-24 17:05:53 +03:00
Mikhael Bogdanov
853c4d4453
Added language feature check for inline properties
2016-06-24 17:05:52 +03:00
Mikhael Bogdanov
321e97a329
AnalyzerExtension refactoring, added support for inline properties
2016-06-24 17:05:52 +03:00
Mikhael Bogdanov
7baf70e8fa
Support reified extension properties
2016-06-24 17:05:51 +03:00
Mikhael Bogdanov
7c67a3315a
Temporary throw exception on unsupported increment and augment assignment on local delegated properties and inline properties
2016-06-24 17:05:50 +03:00
Mikhael Bogdanov
5a2e00d2ad
Base support of StackValue.Property inlining
2016-06-24 17:05:50 +03:00
Mikhael Bogdanov
d524a34fc7
Support property accessor in inline checks
2016-06-24 17:05:49 +03:00
Mikhael Bogdanov
2cc177255f
Don't report inapplicable target for 'inline' keyword on property and its accessors
2016-06-24 17:05:49 +03:00
Mikhael Bogdanov
db5d9940df
Added 'isInline' implementation to property accessor descriptors
2016-06-24 17:05:48 +03:00
Mikhael Bogdanov
679f53b449
Inline get/setValues for local delegated properties
2016-06-24 17:05:48 +03:00
Mikhael Bogdanov
6f761d4e7d
Construct delegates in expression codegen, not in LocalLookup
2016-06-24 17:05:47 +03:00
Denis Zharkov
2578fc3344
Do not generate mutable collection stub methods in interfaces
...
#KT-12359 Fixed
2016-06-24 16:37:19 +03:00
Denis Zharkov
1780f57265
Fix mutable collection stub methods generation for corner case
...
The problem is that
`override fun remove(element: E): CollectionWithRemove<E>`
seems to be illegal from Java's point of view, while it's OK for JVM
These declarations have the same signature (return type is isgnored)
- override fun remove(element: E): CollectionWithRemove<E>
- override fun remove(element: E): Boolean
When we meet such declaration we choose random declaration for fake override in synthetic class
that may lead to signature clash
2016-06-24 16:37:19 +03:00
Zalim Bashorov
47e1ff34f0
JS: fix that kotlin's breakpoints don't work with JavaScript debugger
...
#KT-12773 Fixed
2016-06-24 15:46:30 +03:00