Ilya Gorbunov
98c6c925fc
Move JS stdlib merger into cli compiler module
...
Refactor: use stdlib function to relativize paths.
2019-02-22 02:37:24 +03:00
Ilya Chernikov
29fa0f5dff
Replace unnecessary direct usages of the LazyScriptDescriptor with ScriptDescriptor interface
...
lift result property to the interface to implement it
2019-02-21 15:59:48 +01:00
Ilya Chernikov
e28017039d
Split scripts and class/object declarations in DeclarationsProvider
...
simplifies code in most places, avoids filtering in places where they
should be processed independently
2019-02-21 15:59:48 +01:00
Ilya Chernikov
0839b44ebb
Replace explicit ScriptDescriptor in resolver with appropriate superclass
2019-02-21 15:59:47 +01:00
Natalia Selezneva
254374c619
Use ModuleInfo in VirtualFileFinder to add script dependencies in search scope
...
Otherwise it prevent to inline functions from those dependencies during scratch compilation
2019-02-20 18:36:38 +03:00
Yan Zhulanow
a7ea252973
Refactoring: Split KotlinCoreEnvironment setup functions for Android Lint
2019-02-15 21:23:27 +03:00
Yan Zhulanow
0444203b9b
Ignore non-jar files in ServiceLoaderLite (KT-29513)
2019-02-15 21:23:25 +03:00
Anton Bannykh
4b39e2df12
JS: (review fix) Header -> InlineData
2019-02-14 15:14:28 +03:00
Anton Bannykh
6d26bf9622
JS: don't load binary AST unless required by the inliner
2019-02-14 15:14:28 +03:00
Ilya Chernikov
b0c86647ed
Convert KotlinPaths to kotlin
2019-02-10 13:33:22 +01:00
Ilya Chernikov
c6a24c03e4
Move CliScriptDefinition provider to the plugin too, fix tests
2019-02-10 13:33:22 +01:00
Ilya Chernikov
89fc7eba95
Make script infrastructure providers optional
2019-02-10 13:31:56 +01:00
Ilya Chernikov
0732b48701
Move script related configuration to the plugin
2019-02-10 13:31:55 +01:00
kirill.shmakov
4b1e5e8005
Resolve #KT-26865 and related issues
...
CLITool.exec is used in konanc to perform compilation of native project.
Due to some internal limitation, this function runs in separate process.
After this change, there will be a possibility to choose MessageRenderer
used in CLITool.exec via system property
org.jetbrains.kotlin.cliMessageRenderer.
Reviewed at KOTLIN-CR-2698.
2019-02-07 11:29:16 +03:00
Ilya Chernikov
3943bd1b15
Make toString for repl return function types nicer, drop obsolete isFunctionType
2019-02-05 16:13:06 +01:00
Alexander Udalov
8b286faa6a
Workaround issue with unsupported report-cdata-event in XMLInputFactory on IBM JDK
...
#KT-29596 Fixed
2019-02-01 14:27:43 +01:00
Alexander Udalov
db487a622a
Add -Xsanitize-parentheses to workaround ASM 6.1 issue in frame computation
...
#KT-29475 Fixed
2019-01-31 15:47:43 +01:00
Mikhael Bogdanov
a122cba862
Switch Kotlin project to jvm-target 1.8
...
#KT-29405
2019-01-31 07:43:05 +01:00
Ilya Chernikov
f125600af1
Restore returning of functional types from repl eval
...
add tests for the broken case as well for the return value representation
#KT-29490 fixed
2019-01-29 15:05:37 +01:00
Ilya Chernikov
04b04ea0ee
Refactor compiler arguments to configuration conversion:
...
extract into independent functions, rearrange logic
2019-01-28 13:15:36 +01:00
Ilya Chernikov
d5d60cbc6b
Convert CliCompiler class to Kotlin
2019-01-28 13:15:35 +01:00
Ilya Chernikov
025d2d1b66
Rename .java to .kt
2019-01-28 13:15:35 +01:00
Sergey Rostov
f35185b261
Build: remove explicit dependencies to org.jetbrains.annotations
2019-01-28 13:43:08 +03:00
Alexander Udalov
6b5a16884c
Refactor inheritMultifileParts to be a JVM analysis flag
...
Instead of a JVMConfigurationKeys key. This will allow to use it in a
checker in 'frontend.java'
2019-01-25 15:57:13 +01:00
Alexey Tsvetkov
beabbb95db
Enable assertions for Kotlin daemon in Gradle tests
2019-01-23 23:30:28 +03:00
Vyacheslav Gerasimov
f58acbeef5
Build: implement useBootstrapStdlib flag
...
Excludes stdlib projects from build and uses bootstrap stdlib artifacts
#KT-29205
2019-01-21 21:09:40 +03:00
Alexander Udalov
4daee6d282
Extract JVM IR backend module out of compiler/backend
...
The old backend does not depend on IR modules anymore
2019-01-21 19:06:41 +01:00
Alexander Udalov
05c25342ad
Make CommonToolArguments.nullable
...
#KT-28974 Fixed
2019-01-15 17:21:43 +01:00
Vyacheslav Gerasimov
818910267e
Remove 173 bunch files
2019-01-14 21:29:02 +03:00
Yan Zhulanow
7d660834e1
Fix 'CommandLineProcessor' extension point calling, switch it to using ServiceLoaderLite
2019-01-09 21:54:52 +03:00
Nicolay Mitropolsky
55404ea00d
191: Making MockExternalAnnotationsManager not throwing exceptions in non action-required cases
2018-12-28 11:56:08 +03:00
Sergey Rostov
883970fadb
Add explicit dependencies to nullable annotations
2018-12-26 09:07:06 +03:00
Ilya Chernikov
44ea2bf1d4
Introduce script names and location ids, use them in diagnostics and...
...
for virtual file names. Also fix compiled script serialization.
2018-12-20 17:09:23 +01:00
Ilya Chernikov
c165666d94
Refactor core env: extract script compilation dependencies collection
2018-12-20 17:09:20 +01:00
Ilya Chernikov
1e74ab5a62
Implement import test, fix import support in compiler and evaluator
2018-12-20 17:09:19 +01:00
Ilya Chernikov
fce68102bd
Implement imported scripts evaluation and construction
2018-12-20 17:09:18 +01:00
Ilya Chernikov
729ebcac9b
Implement simple "add to compilation" functionality for scripts
...
(incomplete import - scripts added to the compilation but not yet
imported into scope)
Base functionality needed for #KT-27960
2018-12-20 17:09:16 +01:00
Denis Zharkov
f153d97f40
Avoid multiple subsequent reading of the same class-file in front-end
...
^KT-23466 Fixed
2018-12-13 20:38:24 +03:00
Ivan Gavrilovic
6b20ef0208
Complete Java usage tracker if analysis extension finishes (KT-27487)
...
In cases when kapt compiler plugin runs in stubs generation mode,
Java usage tracker was not completed. This caused issues with
the incremental compilation if Java files changed.
E.g. if a constant defined in Java source file changed, stubs
would not be recompiled because the Java usage tracker would
not report changed type. This commit fixes that issue.
2018-12-13 17:12:08 +03:00
Andrey Uskov
595e75e059
Fix build in bunch 191
2018-12-12 19:04:15 +03:00
Yan Zhulanow
9a98a4525b
ServiceLoaderLite: Support paths with spaces (KT-28527)
2018-12-11 17:45:46 +09:00
Vyacheslav Gerasimov
d84c5b1608
Switch to 183 platform
2018-12-06 20:16:58 +03:00
vitaly.khudobakhshov
396ba6cdd5
Display function value properly
2018-12-05 16:02:29 +01:00
vitaly.khudobakhshov
c901d6cebc
Implement support for "resX" result fields in REPL
2018-12-05 16:01:32 +01:00
Georgy Bronnikov
f4aad70b36
Fix KotlinFrameworkSupportProviderTest
2018-11-30 18:00:27 +03:00
Sergey Rostov
5623c74543
Move resources: fix pill
2018-11-30 15:01:02 +03:00
Sergey Rostov
df2e4524d7
Move resources from /src to separate /resources directory.
...
Previously this files was stored in /src directory and was included in
resources mainly by SourceSet.projectDefault from sourceSets.kt:
val processResources = tasks.getByName(processResourcesTaskName) as ProcessResources
processResources.from("resources") { include("**") }
processResources.from("src") { include("META-INF/**", "**/*.properties") }
Also there are some custom rules like this:
resources.srcDir("../idea-analysis/src").apply { include("**/*.properties") }
resources.srcDirs("idea-repl/src").apply { include("META-INF/**") }
All this rules are synthesized in script
https://github.com/snrostov/kotlin-migrate-resources/blob/master/src/main/kotlin/main.kt
This commit created using that script. See README.md for more details on
script.
2018-11-30 15:01:01 +03:00
Alexander Podkhalyuzin
c416b192ef
Cleanup, all bunches are completely the same...
2018-11-30 14:30:43 +03:00
Alexander Podkhalyuzin
e044ec78a1
Do not duplicate build number of IDEA in code
2018-11-29 16:37:33 +03:00
Georgy Bronnikov
32640750ee
Add CompilerPhase and corresponding compiler keys
2018-11-29 12:48:52 +03:00