Alexander Udalov
7baa7a72e2
Avoid extension functions in Java-facing code in project
...
This is to workaround the coming functions / extension functions global
refactoring and move
2015-05-26 14:27:42 +03:00
Alexander Udalov
b574c1d205
Move 23 function classes to package kotlin.jvm.functions, drop KFunction*
2015-05-26 14:27:41 +03:00
Alexander Udalov
f6178ad7dd
Introduce Function, KFunction interfaces and 'extension' annotation
2015-05-26 14:27:40 +03:00
Alexander Udalov
90097d7e8b
Move callable reference diagnostic tests to non-stdlib
2015-05-26 14:27:40 +03:00
Alexander Udalov
51684b3fe1
Drop "Reflection types not loaded" diagnostic
...
Reflection types are now considered to be built-in, so their absence means the
runtime is broken and the compiler can't work at all; this condition probably
should be handled on another level for all built-in types
2015-05-26 14:27:39 +03:00
Alexander Udalov
45c28abfee
Keep built-in metadata for reflection interfaces
...
Reflection interfaces (interfaces in kotlin.reflect.* in core/builtins/) are
now fully considered as built-ins and can be accessed via KotlinBuiltIns. This
increases runtime size by ~20kb, but only because KotlinBuiltIns is static and
is therefore constructed only via resource loading from the compiler classpath
at the moment. As soon as it's possible to inject KotlinBuiltIns to the
particular resolution process, the metadata on JVM will be loaded via standard
annotation mechanism (kotlin.jvm.internal.KotlinClass/KotlinPackage) and wasted
runtime space will be reclaimed
2015-05-26 14:27:38 +03:00
Michael Nedzelsky
0879860074
AbstractQuickFixTest: fix possible test failure for tests with js-runtime
2015-05-26 12:56:25 +03:00
Michael Nedzelsky
f56bb4e9f4
add dependency on idea-js for idea and fix AbstractQuickFixTest
2015-05-26 05:05:08 +03:00
Michael Nedzelsky
533e4ac812
add dependency on idea-js to idea-test-framework and fix testUtils
2015-05-26 05:05:05 +03:00
Michael Nedzelsky
9f3154e6c0
add dependency on idea-js for idea-completion and fix AbstractJSBasicCompletionTest
2015-05-26 05:05:03 +03:00
Michael Nedzelsky
b558fd4181
add KotlinJavaScriptDecompiledTextConsistencyTest
2015-05-26 05:05:00 +03:00
Michael Nedzelsky
7978e0895e
add KotlinJavaScriptStubConsistencyTest
2015-05-26 05:04:57 +03:00
Michael Nedzelsky
4a83de7ef3
tests: extract closeAndDeleteProject, move to testUtils
2015-05-26 05:04:54 +03:00
Michael Nedzelsky
1f744272f2
JS: add decompiled text generated tests
2015-05-26 05:04:52 +03:00
Michael Nedzelsky
c362db7330
tests for decompiled texts: AssertionError -> RuntimeException
2015-05-26 05:04:49 +03:00
Michael Nedzelsky
a0dc22b464
add TARGET_BACKEND: JVM to some decompiled tests
2015-05-26 05:04:44 +03:00
Michael Nedzelsky
79b81d846e
fix and improve check for TARGET_BACKEND for generated tests
2015-05-26 05:04:41 +03:00
Michael Nedzelsky
f48a8d206a
JdkAndMockLibraryProjectDescriptor: support for Kotlin/Javascript library
2015-05-26 05:04:39 +03:00
Michael Nedzelsky
fc916b22f8
MockLibraryUtil: add support for compile to js
2015-05-26 05:04:36 +03:00
Michael Nedzelsky
69c3f7b69a
AllClassesCompletion: remove unnecessary code
2015-05-26 05:04:33 +03:00
Michael Nedzelsky
ac01dd6996
JsAnalyzerFacade: use only metadata from library modules
2015-05-26 05:04:30 +03:00
Michael Nedzelsky
484a73c17e
JsHeaderLibraryDetectionUtil -> KotlinJavaScriptLibraryDetectionUtil
...
JsHeaderLibraryPresentationProvider -> KotlinJavaScriptLibraryPresentationProvider
2015-05-26 05:04:28 +03:00
Michael Nedzelsky
ebcc29b907
PluginDeclarationProviderFactoryService: remove special treatment for Kotlin/Javascript projects
2015-05-26 05:04:25 +03:00
Michael Nedzelsky
23da4f0897
JS: KotlinJavascriptMetaFileDecompiler -> KotlinJavaScriptMetaFileDecompiler
2015-05-26 05:04:23 +03:00
Michael Nedzelsky
a0579ebedd
add KotlinJavaScriptStubBuilder
2015-05-26 05:04:20 +03:00
Michael Nedzelsky
ea9d7ed49a
DecompiledTextFactory: new implementation of buildDecompiledTextFromJsMetadata
2015-05-26 05:04:17 +03:00
Michael Nedzelsky
18afa8f2d5
add KotlinJavaScriptDeserializeForDecompiler
2015-05-26 05:04:15 +03:00
Michael Nedzelsky
f1a0d86f87
JsMetaFileUtils: add some useful code, remove unnecessary parts
2015-05-26 05:04:12 +03:00
Michael Nedzelsky
4f26c7fe42
DecompiledNavigationUtils, JetSourceNavigationHelper: fix support for Kotlin/Javascript projects
...
DecompiledUtils: add isKotlinJavaScriptInternalCompiledFile
DecompiledUtils: add isKotlinJsMetaFile
DecompiledNavigationUtils: use isKotlinJvmCompiledFile, isKotlinJsMetaFile
DecompiledNavigationUtils: isFromKotlinJavascript -> isFromKotlinJavasriptMetadata
2015-05-26 05:04:09 +03:00
Michael Nedzelsky
f92d112564
DirectoryBasedClassFinder: add DirectoryBasedKotlinJavaScriptMetaFileFinder and DirectoryBasedKotlinJavaScriptDataFinder
2015-05-26 05:04:06 +03:00
Michael Nedzelsky
7a01ba7d7a
JS: add jsProtoBufUtil
2015-05-26 05:04:04 +03:00
Michael Nedzelsky
c4c8f3c3ea
convert IDEVirtualFileFinder to kotlin
2015-05-26 05:04:01 +03:00
Michael Nedzelsky
6e371e61a9
change extension: IDEVirtualFileFinder.java -> IDEVirtualFileFinder.kt
2015-05-26 05:03:57 +03:00
Michael Nedzelsky
d4f348edd5
VirtualFileFinder: regenerate injectors
2015-05-26 05:03:54 +03:00
Michael Nedzelsky
618a8622a1
VirtualFileFinderFactory: introduce JvmVirtualFileFinderFactory, JsVirtualFileFinderFactory
2015-05-26 05:03:51 +03:00
Michael Nedzelsky
de35434800
KotlinUpdatePluginComponent: update indices for Kotlin Javascript metafiles.
2015-05-26 05:03:48 +03:00
Michael Nedzelsky
3d641b17b4
add KotlinJavaScriptMetaFileIndex: support indexing for Kotlin Javascript meta files
2015-05-26 05:03:45 +03:00
Michael Nedzelsky
48e7c8cd60
convert KotlinClassFileIndex to kotlin
2015-05-26 05:03:42 +03:00
Michael Nedzelsky
38674dd3a1
convert KotlinClassFileIndex to kotlin: change extension: KotlinClassFileIndex.java -> KotlinClassFileIndex.kt
2015-05-26 05:03:40 +03:00
Michael Nedzelsky
85e84b8aef
IDELightClassGenerationSupport: do not try to create stub for non java-class files
2015-05-26 05:03:37 +03:00
Michael Nedzelsky
0815eab3a5
add KotlinJavaScriptMetaFileType
2015-05-26 05:03:34 +03:00
Michael Nedzelsky
0a6c6e35b5
JS: JpsJsModuleUtils: do not include urls with kotlin-js-meta protocol
2015-05-26 05:03:31 +03:00
Michael Nedzelsky
4a05005fa7
JS: do not include sources in kotlin-jslib.jar
2015-05-26 05:03:28 +03:00
Michael Nedzelsky
044497fab6
JS: add idea-js module: KotlinJavaScriptLibraryManager and KotlinJavaScriptLibraryContentsTreeStructureProvider
2015-05-26 05:03:25 +03:00
Michael Nedzelsky
06af6bbd82
JS: KotlinJavascriptSerializationUtil, KotlinJavascriptSerializedResourcePaths: add some useful functions
2015-05-26 05:03:14 +03:00
Ilya Gorbunov
1cf4a407d1
JS: Provide MIN_VALUE and MAX_VALUE member constants for Double and Float companion objects.
...
JVM: Make MIN_VALUE and MAX_VALUE not an extension but member constant properties of Double and Float companion objects.
2015-05-26 00:26:19 +03:00
Alexey Tsvetkov
bd934bc3c4
Minor in JS: fixed typo in file name (abstarct->abstract)
2015-05-25 20:20:26 +03:00
Alexey Tsvetkov
fc1a1f742b
JS test: added multi-module inline tests
2015-05-25 20:20:25 +03:00
Alexey Tsvetkov
115798f584
JS test: check directives in MultipleModulesTranslationTest
2015-05-25 20:20:25 +03:00
Alexey Tsvetkov
f214c4eac7
JS test: use common dependencies.txt for MultipleModulesTranslationTest
2015-05-25 20:20:25 +03:00