Commit Graph

17974 Commits

Author SHA1 Message Date
Alexey Sedunov 77a5ddbcd0 Create From Usage: Do not suggest Java classes as receiver type candidates (for now) 2014-10-14 01:59:47 +04:00
Alexey Sedunov 0dafcb6728 Create From Usage: Generate type parameters (if any) for all callable declarations 2014-10-14 01:59:46 +04:00
Alexey Sedunov 9206b571f4 Create From Usage: Always try to shorten return type reference if there is one 2014-10-14 01:59:45 +04:00
Alexey Sedunov 497e4fab79 Create From Usage: Generate Unit-typed declaration if result is unused
#KT-5903 Fixed
2014-10-14 01:59:44 +04:00
Alexey Sedunov a3a0edca58 Pseudocode: Drop CompilationErrorInstruction 2014-10-14 01:59:43 +04:00
Alexey Sedunov a56c54371e Pseudocode: Generate instructions for unresolved array assignments 2014-10-14 01:59:42 +04:00
Nikolay Krasko b06b3ab4c4 Insert empty lines after functions and properties (KT-4002)
#KT-4002 Fixed
2014-10-14 00:39:23 +04:00
Nikolay Krasko 22d33a5afa Data class copy method invocation gives errors in IDE when some optional parameters specified (KT-5975)
#KT-5975 Fixed
2014-10-14 00:39:22 +04:00
Zalim Bashorov f202ad9f98 Stdlib: run all stdlib tests with JS backend(as possible). 2014-10-13 21:25:56 +04:00
Zalim Bashorov f20ee6df4b JS backend: fixes in ranges:
* map all number ranges and progressions;
* add missed hashCode and static EMPTY to Range implementations;
* add missed hashCode and equals to Progression implementations;
* fix type of start and end in CharRange and CharProgression.
2014-10-13 21:25:56 +04:00
Zalim Bashorov 8bd6acec5d JS stdlib: drop wrong annotations in javautilCollectionsCode.kt and fix Collections.reverse. 2014-10-13 21:25:56 +04:00
Zalim Bashorov e54c838482 JS backend: temporary fix for CharSequence.get 2014-10-13 21:25:56 +04:00
Zalim Bashorov 64044800c9 JS stdlib: fix bug with using "__proto__" as element of DefaultPrimitiveHashSet. 2014-10-13 21:25:56 +04:00
Zalim Bashorov 49e2262ca7 JS tests: fixed waiting to finish qunit tests in SeleniumTest. 2014-10-13 21:25:56 +04:00
Zalim Bashorov 2d634931f6 JS backend: use 0 as init value when calculating hashCode in data classes as in JVM backend. 2014-10-13 21:25:56 +04:00
Zalim Bashorov ae39524a95 JS backend: compile primitive iterators from builtins as part of stdlib. 2014-10-13 21:25:55 +04:00
Zalim Bashorov ecb955f5b3 Stdlib: split OrderingJVM.kt to common and jvm parts 2014-10-13 21:25:55 +04:00
Zalim Bashorov 88f9621b45 Minor: update junit to 4.11 2014-10-13 21:25:55 +04:00
Zalim Bashorov 1b2aa205ec Introduce assertNotEquals 2014-10-13 21:25:55 +04:00
Zalim Bashorov b086a2b7a5 Extract some closure-compiler arguments to separate property and change warning level to "default" 2014-10-13 21:25:55 +04:00
Pavel V. Talanov c1f8db5962 Fix MutableDiagnosticsTest#testCaching()
Sadly relying on implementation details
2014-10-13 19:48:57 +04:00
Michael Nedzelsky df8232c555 JS backend: minor: refactor ClassTranslator 2014-10-13 19:25:06 +04:00
Michael Nedzelsky ab6eff5a5b JS backend: minor: remove ArrayList(Collection) from bridges/_commonFiles/javautil.kt 2014-10-13 19:25:02 +04:00
Michael Nedzelsky aa3d0fe1d7 minor: rename TargetBackend enum values 2014-10-13 19:24:59 +04:00
Alexey Kudravtsev 869487ac82 moved to idea-analysis to make available in upsource 2014-10-13 18:33:37 +04:00
Alexey Kudravtsev ef34875061 added sources to kotlin-upsource 2014-10-13 18:30:47 +04:00
Michael Nedzelsky a63bbf317d JS backend: translate 0L, 1L and -1L to Kotlin.Long constants 2014-10-13 17:51:48 +04:00
Michael Nedzelsky e5c77d1242 JS backend: minor: move constant to Namer 2014-10-13 17:51:45 +04:00
Pavel V. Talanov ee33c09714 Android: navigate to resource
Implementation mostly copied from android plugin
 #KT-5596 Fixed
2014-10-13 16:46:55 +04:00
Andrey Breslav 838ef11f1c Test data fixed: after "type" is no longer a keyword 2014-10-13 16:42:03 +04:00
Andrey Breslav 34a98f2563 Minor. Compilation fixed 2014-10-13 16:02:39 +04:00
Andrey Breslav f202a5c31d KT-4524 Generate implementations fails on functions with default values
#KT-4524 Fixed
2014-10-13 15:43:03 +04:00
Andrey Breslav cc68ed894b "type" is not a keyword anymore ("typealias" reserved instead) 2014-10-13 15:41:13 +04:00
Andrey Breslav b20439027c Advancing ABI version
Related changes:
 - serialization of flexible types supported
 - Intrinsics.checkExpressionValueIsNotNull() added
2014-10-13 15:38:23 +04:00
Andrey Breslav 4a132599fd getAllOverriddenDescriptors() moved to DescriptorUtils 2014-10-13 15:38:22 +04:00
Andrey Breslav f7ccfafd1c Minor. [platformStatic] used 2014-10-13 15:38:21 +04:00
Andrey Breslav f1675a9162 Minor. Getters replaced by properties 2014-10-13 15:38:21 +04:00
Andrey Breslav 8e8f41e228 Minor. Improved usability of CustomTypeVariable API 2014-10-13 15:38:20 +04:00
Andrey Breslav 070a7d4d72 Serialization of flexible types supported 2014-10-13 15:38:20 +04:00
Andrey Breslav e76df4db11 Rendering fixed across the idea module 2014-10-13 15:38:19 +04:00
Andrey Breslav 9fb09e62af toString() on nullables fixed 2014-10-13 15:38:19 +04:00
Andrey Breslav 619df3a53e Use semantic equality in Create From Usage 2014-10-13 15:38:18 +04:00
Andrey Breslav 8eb57f5a75 Parser recovers on platform types notation:
- Foo!
- Array<(out) Foo>!
- (Mutable)List<Foo>!
2014-10-13 15:38:18 +04:00
Andrey Breslav 21d31a1a4f An option to enable assertions in the Bytecode toolwindow 2014-10-13 15:38:17 +04:00
Andrey Breslav 1214bef3e8 Always create a missing txt file, even if the test itself fails before 2014-10-13 15:38:17 +04:00
Andrey Breslav 890ef7a8ae Choosing a best fit when getting multiple exact bounds for a type variable 2014-10-13 15:38:16 +04:00
Andrey Breslav d74b27335e RemoveExplicitTypeArguments fixed: platform types approximated before comparison 2014-10-13 15:38:16 +04:00
Andrey Breslav 94f4ddb762 IDE TypeUtils moved to idea-analysis 2014-10-13 15:38:15 +04:00
Andrey Breslav e418a763db Fix JetType.equals(): flexible types are not equal to non-flexible ones, when we store them in a HashSet 2014-10-13 15:38:15 +04:00
Andrey Breslav 5be4dda58b Unit obtained through a generic substitution should not be mapped to VOID 2014-10-13 15:38:14 +04:00