Commit Graph

14581 Commits

Author SHA1 Message Date
Natalia Ukhorskaya a2879f229a Add serializer for compile-time constant initializer 2014-03-13 10:07:05 +04:00
Natalia Ukhorskaya 073d345841 Extract BaseDeserializer from AnnotationDeserializer. Move storage to separate class 2014-03-13 10:07:04 +04:00
Natalia Ukhorskaya 6089f5e3ef Remove DescriptorSerializationTest 2014-03-13 10:07:03 +04:00
Natalia Ukhorskaya 9672026a53 Add a superclass for byte, short, int, long compile-time constants 2014-03-13 10:07:01 +04:00
Alexey Tsvetkov 1cd7fa65d7 JS backend: fixed compiler crash when use in elvis operator something which is expression in Kotlin and not in Javascript, e.g. return.
#KT-4159 fixed
2014-03-12 19:01:55 +04:00
Alexey Tsvetkov 21f87350b9 JS backend: added tests for KT-4159. 2014-03-12 19:01:55 +04:00
Nikolay Krasko 569f139d8a Update to idea 135.406, support 135 and 136 branch 2014-03-12 18:39:32 +04:00
Zack Grannan 6156a56a4b Generated tests 2014-03-12 16:02:57 +04:00
Zack Grannan 3862a3b5bc Added ifThenToSafeAccessIntention 2014-03-12 16:02:56 +04:00
Zack Grannan 1f720c8559 Added safeAccessToIfThen intention 2014-03-12 16:02:55 +04:00
Zack Grannan 1ca4bb0e79 Added ifThenToElvisIntention 2014-03-12 16:02:55 +04:00
Zack Grannan 673369affe Added elvisToIfThenIntention 2014-03-12 16:02:54 +04:00
Zack Grannan 6b5e46da50 Added IfThenUtils 2014-03-12 16:02:53 +04:00
Zack Grannan fcbd7b357a Modified doRefactoring to allow occurrences to be specified 2014-03-12 14:43:08 +04:00
Andrey Breslav aa00862425 Double-checked locking fixed in LockBasedStorageManager
There were two problems here:
 * a volatile field was read and then a local variable used, i.e. the field might have been changed in between the check and the return;
 * this volatile read was unnecessary, because the whole purpose of `_value` local variable is to avoid it.
2014-03-12 13:55:24 +04:00
Andrey Breslav 667afc565e Workaround for EA-54533 - UOE: DeserializedMemberScope.getDeclarationsByLabel 2014-03-12 13:51:04 +04:00
Natalia Ukhorskaya 3f2c43bab1 Remove unused resources 2014-03-12 11:31:09 +04:00
Natalia Ukhorskaya 94ccd8b2f2 Merge remote-tracking branch 'origin/pr/401'
Conflicts:
	libraries/tools/kotlin-gradle-plugin-core/src/main/kotlin/org/jetbrains/kotlin/gradle/plugin/KotlinPlugin.kt
	libraries/tools/kotlin-gradle-plugin/src/test/kotlin/org/jetbrains/kotlin/gradle/KotlinGradlePluginIT.kt
2014-03-12 11:28:23 +04:00
Natalia Ukhorskaya f1d2c2de0b Merge pull request #402 from nskvortsov/KT-4612
#KT-4612 Fixed
2014-03-12 06:59:43 +00:00
Zalim Bashorov 209f7e8d51 JS backend: minor -- dropped temporary hack after KT-4517 fixed. 2014-03-11 20:05:40 +04:00
Zalim Bashorov 344ce6c095 JS backend: fixed name clash between public function w/o parameters and non-public function with same name. 2014-03-11 20:05:39 +04:00
Zalim Bashorov d99e3294d8 JS backend: minor refactoring in TranslationContext -- dropped extra constructors. 2014-03-11 20:05:39 +04:00
Zalim Bashorov cdf42ef797 JS backend: dropped hack from UsageTracker. 2014-03-11 20:05:38 +04:00
Zalim Bashorov 3455f6adcd JS backend: minor -- dropped some no longer necessary code. 2014-03-11 20:05:37 +04:00
Zalim Bashorov a3cd1bbfda JS backend : change the capturing variables and rewrite some classes.
#KT-4236 Fixed
 #KT-4600 Fixed
 #KT-4237 Fixed
 #KT-4207 Fixed
 #KT-4218 Fixed
2014-03-11 20:05:23 +04:00
Zalim Bashorov 434a6ed6e2 JS backend: minor -- fix typo in fromFakeClasses.kt 2014-03-11 20:04:05 +04:00
Zalim Bashorov 43d9c383ff JS backend: don't use objects as definition place. 2014-03-11 20:04:05 +04:00
Zalim Bashorov 4c40f3971b Minor: added TypeScript to codeStyleSettings.xml 2014-03-11 20:04:04 +04:00
Zalim Bashorov fff38954dc JS backend: dropped unnecessary utility methods getExpectedThisDescriptor and getExpectedReceiverDescriptor.
#KT-4236 In Progress
#KT-4600 In Progress
#KT-4237 In Progress
#KT-4263 In Progress
#KT-4207 In Progress
#KT-4218 In Progress
2014-03-11 20:04:04 +04:00
Zalim Bashorov e1484d76a7 JS backend: minor refactoring in AliasingContext. 2014-03-11 20:04:03 +04:00
Zalim Bashorov 48a28ed406 JS backend: don't aliasing captured variable foo as foo.v.
Moved isVarCapturedInClosure from CodegenBinding to BindingContextUtils.
2014-03-11 20:04:03 +04:00
Zalim Bashorov d55548a1c8 Minor change in JS backend: improve exception message. 2014-03-11 20:04:03 +04:00
Zalim Bashorov fb7165c7fa JS backend: added regression tests for closure bugs.
#KT-4236 In Progress
#KT-4600 In Progress
#KT-4237 In Progress
#KT-4207 In Progress
#KT-4218 In Progress
#KT-4263 Obsolete
2014-03-11 20:04:03 +04:00
Zalim Bashorov a48dc25c46 JS backend: added more tests for closures. 2014-03-11 20:04:02 +04:00
Zalim Bashorov ec71a90394 JS backend : added test for local extension function. 2014-03-11 20:04:02 +04:00
Zalim Bashorov 14ed970dc3 JS backend: added the support extension functions as expression. 2014-03-11 20:04:02 +04:00
Zalim Bashorov 396afb05cb JS backend: minor refactorings
- dropped useless constructor and factory method from ClassTranslator.
  - moved method which translate an object expression inside a class code to ClassTranslator.
  - LiteralFunctionTranslator#getSuggestedName -> TranslationUtils#getSuggestedName
2014-03-11 20:04:01 +04:00
Zalim Bashorov 5f847bc7e7 JS backend: fixes after rename testFiles -> testData 2014-03-11 20:04:01 +04:00
Zalim Bashorov 442215e829 JS backend: testFiles -> testData 2014-03-11 20:04:00 +04:00
Zalim Bashorov bcd579acdd Minor change: reformat js libs. 2014-03-11 20:04:00 +04:00
Zalim Bashorov 38d1142c39 Minor change: reformat code in testData files. 2014-03-11 20:03:59 +04:00
Zalim Bashorov 7374d3ab76 Minor changes: drop the copyright comment from testData files. 2014-03-11 20:03:58 +04:00
Zalim Bashorov f5b1b4252d JS backend: use constants for default test package(foo) and default test function(box). 2014-03-11 20:03:58 +04:00
Zalim Bashorov 33360c2528 Dropped some TODOs
#KT-2564 Obsolete. Looks like, it's fixed in dcddd04.
2014-03-11 20:03:58 +04:00
Zalim Bashorov ffa2a84170 Stdlib: remove a workaround which related to KT-2028 2014-03-11 20:03:57 +04:00
Natalia Ukhorskaya 36387c533f Fix kotlin-android plugin for android-gradle:0.9+
#KT-4667 Fixed
2014-03-11 17:21:37 +04:00
asedunov 5975c40e5d Merge pull request #368 from Stebalien/add-operator-intentions
Add operator intentions
#KT-4558 Fixed
2014-03-11 12:17:27 +01:00
Steven Allen 84a8911822 Add replacement intentions for operator functions
Add intentions for replacing attribute calls that correspond to
overloadable operators with their respective operators.

This commit includes call replacements for:
 * Binary Infix Operators: plus, minus, times, rangeTo, mod, div
 * Unary Prefix Operators: plus, minus, not
 * Array Index Operator: get
 * In Operator: contains
2014-03-10 11:15:11 -04:00
Steven Allen 08a8d17e97 Add KotlinSignature annotation to RESOLVED_CALL
A ResolvedCall's CallableDescriptor cannot be null.
2014-03-10 10:46:29 -04:00
Steven Allen 7e1e697a5b Avoid throwing unchecked exceptions
Make `ResolvedCall.getValueArgumentsByIndex` return null instead of
throwing an InvalidStateException when resolving invalid arguments.
Invalid arguments are a user error (the user specified the invalid
arguments in their code), not a program error.
2014-03-10 10:46:29 -04:00