Commit Graph

36751 Commits

Author SHA1 Message Date
Alexey Andreev 1a5e0e4b06 JS: improve performance of suspend function calling suspen function when no suspension ever occur. 2017-01-24 20:12:12 +03:00
Alexey Andreev bf55744e64 JS: fix translation of safe calls if suspend functions. See KT-15892 2017-01-24 20:11:55 +03:00
Alexey Andreev 2adaaf5e9f JS: recognize LANGUAGE_VERSION directive in testData 2017-01-24 20:11:30 +03:00
Alexey Andreev 9aeba1d5cf JS: fix names in stdlib and tests WRT to new mangling algorithm 2017-01-24 20:11:29 +03:00
Alexey Andreev 2ae46ceb4b JS: change how signature for mangling is generated, taking into account more information. See KT-15285 2017-01-24 20:10:17 +03:00
Alexey Andreev 119bf52adf JS: fix translation of callable reference to property of outer class with private setter 2017-01-24 20:09:32 +03:00
Alexey Andreev d35ddc1017 JS: unmute tests that now pass 2017-01-24 20:09:32 +03:00
Alexey Andreev d261f8eddf Move generation of fake call to common CodegenUtil to share between JS and JVM 2017-01-24 20:09:31 +03:00
Alexey Andreev c100826629 JS: reduce number of functions to create callable references 2017-01-24 20:09:31 +03:00
Alexey Andreev dcb8b7b92c JS: fix inlining of callable references 2017-01-24 20:09:30 +03:00
Alexey Andreev 7a0f75f164 JS: refactor generation of callable references to functions 2017-01-24 20:09:29 +03:00
Alexey Andreev 1b0648a926 JS: refactor generation of property callable references 2017-01-24 20:09:29 +03:00
Sergey Mashkov 66de78e82a kotlin-test: migrate multiplatform integration test to use common test module 2017-01-24 19:39:05 +03:00
Sergey Mashkov e500eba59f Maven: test js compiler test scope dependencies 2017-01-24 19:39:05 +03:00
Ilya Gorbunov 5a28e8cc20 Install kotlin-test artifacts to local repo when testing maven plugin 2017-01-24 19:39:05 +03:00
Ilya Gorbunov 609405b8d4 Add kotlin-test-js dependency where required. 2017-01-24 19:39:05 +03:00
Ilya Gorbunov 7d9554b6b8 Remove sources.xml and maven-assembly-plugin execution. 2017-01-24 19:39:05 +03:00
Ilya Gorbunov d3ed55549a Make dependency on kotlin-test-common optional, i.e. non-transitive. 2017-01-24 19:39:05 +03:00
Ilya Gorbunov 9b9852cdc9 kotlin-test: rename shared module to common.
Do not use shared kotlin-test while building js stdlib.
2017-01-24 19:39:05 +03:00
Dmitry Petrov 5ef27f7ad3 KT-15010 Missing error on an usage non-constant property in annotation default argument 2017-01-24 17:52:52 +03:00
Mikhael Bogdanov df8394bcd2 Fix for KT-14597: "When" over smartcasted enum is broken and breaks all other "when"
#KT-14597 Fixed
2017-01-24 15:17:47 +01:00
Dmitry Petrov ee9a174c1f KT-7897 Do not require to call enum constructor for each entry if all parameters have default values
Do not report an error on enum entry without initializer if all parameters have default values
(error is still reported if there is no such constructor, or if the constructor call is ambiguous).

Record resolved call on KtEnumEntry.

NB is the enum entry has a corresponding subclass, we still have to generate the "default" constructor call,
because FE doesn't know about the platform-specific representation of that class and its constructors.

See also KT-14097, KT-15900
2017-01-24 16:59:47 +03:00
Nikolay Krasko d13c34200b Remove method deprecated in 171 and explicitly set mainClass before calling toCommandLine() 2017-01-24 16:43:22 +03:00
Mikhail Glukhikh fb913bc071 Operator to function: mod --> rem, modAssign --> remAssign #KT-15874 Fixed 2017-01-24 15:19:36 +03:00
Mikhail Glukhikh bfb31a465f Quick-fix to add 'suspend' to the containing function #KT-15800 Fixed 2017-01-24 15:17:55 +03:00
mglukhikh 96cddb6b7b False positive in "Remove redundant let" fixed #KT-15884 Fixed 2017-01-24 15:17:48 +03:00
mglukhikh be75ef919e Change visibility modifier: now works on no-modifier type aliases #KT-15066 Fixed 2017-01-24 15:17:41 +03:00
Mikhail Glukhikh 60fcdeb5ee Test added: suppress on function reference #KT-15839 Obsolete 2017-01-24 14:59:53 +03:00
shiraji d9ec8a92f2 KT-15553 Support compile constant for "Copy concatenation text to clipboard"
#KT-15553 Fixed
2017-01-24 14:33:52 +03:00
Kirill Rakhman 909007d984 Add inspection for private primary constructors in data classes
Fixes #KT-15709
2017-01-24 14:08:05 +03:00
mglukhikh f64345634b WHEN_ENUM_CAN_BE_NULL_IN_JAVA is no more reported after smart cast to not-null #KT-15201 Fixed 2017-01-24 13:51:15 +03:00
mglukhikh b53ebd115b Pattern matching: work-around for smart cast target type instability #KT-14705 Fixed 2017-01-24 13:51:14 +03:00
Alexey Andreev bc0550d7b7 JS: don't report about inline modifier on inline extension fun to external class 2017-01-24 12:27:02 +03:00
Alexey Andreev 0ca2ae7279 JS: regenerate Kotlin JS bindings from IDL files with new rules 2017-01-24 12:27:01 +03:00
Alexey Andreev 36d2a91057 JS: prevent IDL2K from generating @nativeGetter/@nativeSetter annotations, generate inline extension function with asDynamic() instead 2017-01-24 12:27:01 +03:00
Alexey Andreev c1838d423b JS: transfer all empty statement simplifications RedundantLabelRemoval to EmptyStatementElimination, so that empty statements can be eliminated everywhere, not in labeled blocks only. 2017-01-24 12:26:21 +03:00
Alexey Andreev ac0df8eef9 JS: when recursive local function does not capture variables, give it name from top-level scope. See KT-15770 2017-01-24 12:25:23 +03:00
Alexander Udalov 70d2296e61 Update public API dump after adding KPropertyN.getDelegate 2017-01-24 10:59:44 +03:00
Ilya Gorbunov a603de8bd7 Ensure string to number conversion fails on empty and blank inputs.
#KT-4497
2017-01-24 07:22:58 +03:00
Ilya Gorbunov 4018d10bf6 Deprecate parseInt and parseFloat. Replace deprecated usages in tests.
#KT-4497
2017-01-24 07:22:51 +03:00
Ilya Gorbunov 4e5e14c9a0 Provide string-to-number conversions in JS and common stdlib.
Relates to #KT-8286
#KT-4497 Fixed
2017-01-24 07:20:57 +03:00
Mikhail Zarechenskiy 2cac6a9e7d Improve inference on generics for callable references
#KT-10711 Fixed
 #KT-12802 Fixed
 #KT-12964 Fixed
 #KT-15439 Fixed

Analyze callable references in `dependent` mode, then complete them with
respect to expected types
2017-01-24 02:15:26 +03:00
Anton Bannykh 07bb7ef4d3 JS: extension lambdas translated same as local lambdas (KT-13312 fixed) 2017-01-23 20:09:36 +03:00
Dmitry Petrov 5021be351d KT-15878 Extension shadowed by member shouldn't be reported for infix/operator extensions when member is non-infix/operator 2017-01-23 16:46:43 +03:00
Sergey Mashkov 98075c17c9 kotlin-test: extract from JS library, convert to multiplatform 2017-01-23 15:43:02 +03:00
Alexey Sedunov c264de5795 Project Settings: Expose API version setting in Kotlin compiler configuration UI 2017-01-23 15:16:14 +03:00
Alexey Sedunov 57c27299dd JPS: Use facet configuration to determine if module should be compiled to JS 2017-01-23 15:16:12 +03:00
Alexey Sedunov 7b12a66b21 Kotlin Facet: Warn about libraries configured for non-current platform
#KT-15628 Fixed
2017-01-23 15:16:11 +03:00
Alexey Sedunov 597068a704 Kotlin Facet: Import API version from Maven
#KT-15772 Fixed
2017-01-23 15:16:10 +03:00
Alexey Sedunov fc9b001ccd Kotlin Facet: Use project settings by default
#KT-15624 Fixed
2017-01-23 15:16:09 +03:00