Commit Graph

7910 Commits

Author SHA1 Message Date
Nikolay Krasko ab1095a84e Formatter: remove unnecessary spaces in value and type parameter lists 2012-09-18 19:26:53 +04:00
Nikolay Krasko e29182b2fb Don't indent { for functions on new lines 2012-09-18 19:26:52 +04:00
Nikolay Krasko 9481862550 Refactoring: use static imports everywhere in file 2012-09-18 19:26:51 +04:00
Nikolay Krasko 72fb2c0d02 KT-2242 Fix {<space>(a: Int) -> a } case
#KT-2242 Fixed
2012-09-18 19:26:51 +04:00
Alex Tkachman 7b066faa9f changed behavior of componentX/toString/hashCode and equals to work naturally with overriden properties 2012-09-18 18:08:16 +03:00
Alex Tkachman ae93018546 fix for several (unlikely all) closely related problems with handling of byte/short/char on Delvik #KT-2251 fixed 2012-09-18 16:53:55 +03:00
Natalia.Ukhorskaya 75a504e7b2 EA-37741 - assert: ServiceBean.loadServicesFromBeans - Java to Kotlin converter settings aren't exported 2012-09-18 17:36:06 +04:00
Alex Tkachman 0ffc8f355b attempt to fix KT-2251 2012-09-18 14:25:09 +03:00
Natalia.Ukhorskaya 20f1ddc9da EA-36817: add message for assert for clarify cause of exception 2012-09-18 13:16:41 +04:00
Alex Tkachman d2c4f5c4a5 field access level change to private which it should be 2012-09-18 09:37:50 +03:00
Evgeny Gerashchenko 9cbe853cad Better rendering for PLATFORM_CLASS_MAPPED_TO_KOTLIN. 2012-09-17 21:00:50 +04:00
Alex Tkachman 8e463ac0ac equals generation for data classes 2012-09-17 18:48:17 +03:00
Evgeny Gerashchenko 8aa13a301c Added standard library reference resolver test cases with equals and toString functions. 2012-09-17 18:01:40 +04:00
Evgeny Gerashchenko 07259e7683 Added completion handler test with built-in extension function. 2012-09-17 18:01:15 +04:00
Evgeny Gerashchenko 311325883e ++Added custom "sure" function in some diagnostic tests, because it is being removed from builtins. 2012-09-17 18:00:22 +04:00
Evgeny Gerashchenko 8f337cbd7c Removed 'sure' intrinsic method. 2012-09-17 18:00:22 +04:00
Evgeny Gerashchenko c6a040a380 Removed sure() function from built-ins. 2012-09-17 18:00:22 +04:00
Evgeny Gerashchenko 572b58012c Replaced if-else-if chain with visitor. 2012-09-17 18:00:22 +04:00
Evgeny Gerashchenko a0ffb0d979 Removed sure() support from name suggester. 2012-09-17 18:00:22 +04:00
Evgeny Gerashchenko ffea195f00 Added postfix expressions support in name suggester. 2012-09-17 18:00:21 +04:00
Evgeny Gerashchenko ee539e7da5 Replaced sure() invocation with '!!' operator in suggester test. 2012-09-17 18:00:21 +04:00
Evgeny Gerashchenko 09502433be Added custom "sure" function in some diagnostic tests, because it is being removed from builtins. 2012-09-17 18:00:21 +04:00
Evgeny Gerashchenko 5de734c9f3 Replaced sure() invocations with '!!' operator in diagnostic tests. 2012-09-17 18:00:21 +04:00
Evgeny Gerashchenko 6e62212727 Replaced sure() invocations with '!!' operator in codegen tests. 2012-09-17 18:00:21 +04:00
Evgeny Gerashchenko ffc4792071 Replaced sure() invocations with '!!' operator in JS tests. 2012-09-17 18:00:21 +04:00
Evgeny Gerashchenko 8e1323bb43 Replaced sure() invocations with '!!' operator in libraries written on Kotlin. 2012-09-17 18:00:21 +04:00
Evgeny Gerashchenko 533cc5a04d Replaced sure() invocations with '!!' operator in js.libraries/src/core. 2012-09-17 18:00:21 +04:00
Evgeny Gerashchenko 3fd61edcd5 Replaced sure() invocations with '!!' operator in examples code. 2012-09-17 18:00:21 +04:00
Evgeny Gerashchenko 789c8608e5 Replaced sure() invocation with '!!' operator in Java to Kotlin converter. 2012-09-17 18:00:20 +04:00
Alex Tkachman 8c823486d7 hashCode generation for data classes 2012-09-17 15:52:23 +03:00
Evgeny Gerashchenko d825fb25a0 KT-1651 Navigation to enum constants doesn't work for libraries with and without source code
#KT-1651 fixed
2012-09-17 16:27:14 +04:00
Evgeny Gerashchenko 82b605508a Added 'if not null' checks to avoid exceptions thrown before deferred assertions are printed. 2012-09-17 16:27:14 +04:00
Evgeny Gerashchenko 4620ba2fd3 Rewritten LoadCompiledKotlinTest to test generation framework. 2012-09-17 16:27:14 +04:00
Evgeny Gerashchenko 27becdec9b Added getSliceContents() method to BindingContext returning immutable map for particular slice (for testing and debug purposes). 2012-09-17 16:27:14 +04:00
Evgeny Gerashchenko 84c10c1623 Added SlicedMap.getSliceContents() method returning immutable map for particular slice. 2012-09-17 16:27:13 +04:00
Natalia.Ukhorskaya 694f1f45f8 KT-2714 'enum' annotation should only be allowed on classes
#KT-2714 Fixed
2012-09-17 15:27:49 +04:00
James Strachan 65564537dd added a bunch more swing helper methods; such as an easy function for doing the dreaded grid bag layout and helper properties so its easy to set a width or height for size/preferredSize/minimumSize/maximumSize on components 2012-09-17 12:04:42 +01:00
Alex Tkachman 9304ec103d wrongly added test removed (correct one was added before by Zhenja) 2012-09-17 13:01:32 +03:00
Alex Tkachman a4e272d7c6 optimization of toString for primitive types and "$expr"
- intrinsic toString for promitive types added to stdlib
- utility method added to CodegenUtil
- optimization logic added to generation of interpolating string
2012-09-17 13:00:02 +03:00
Evgeny Gerashchenko 7a00dd1551 Excluded newly added codegen test from Android JVM test. 2012-09-17 12:48:33 +04:00
Alex Tkachman 655a13aef6 IntrinsicsTest regenerated 2012-09-17 09:45:37 +03:00
Alex Tkachman 3b96624c81 small optimizaton of toString for primitive types (no boxing needed) 2012-09-17 09:07:08 +03:00
Alex Tkachman 58af365eb2 toString() method for data classes and fake implementation for hashCode/equals 2012-09-16 15:56:48 +03:00
Alex Tkachman e317764a88 correct access flags for package private (coming from java) #KT-2781 fixed 2012-09-16 10:08:36 +03:00
Alex Tkachman 99196c187b unification of codegen for singletons between object declarations, classobjects and const closures 2012-09-15 22:54:38 +03:00
Alex Tkachman f8983d8516 static final field for class object moved to class object class from containing class 2012-09-15 21:23:42 +03:00
Alex Tkachman 104f2a08d3 cleanup refactoring - classAsType & superClassAsmType introduced 2012-09-15 15:50:14 +03:00
Alex Tkachman 93def61813 getMethodAsmFlags extracted 2012-09-15 15:28:41 +03:00
Alex Tkachman 325ed0073d cleanup 2012-09-15 14:13:52 +03:00
Alex Tkachman f0e096aba6 genJetAnnotations method extracted 2012-09-15 13:44:56 +03:00