Natalia Ukhorskaya
89d99d2848
Remove toInt() from rendering IntValue
2014-03-13 10:07:17 +04:00
Natalia Ukhorskaya
a80114d720
Use one method to create compile-time value
2014-03-13 10:07:16 +04:00
Natalia Ukhorskaya
201af666a9
Move isVar check for compile time initializer out of the setter
2014-03-13 10:07:14 +04:00
Natalia Ukhorskaya
000dd4478a
Rename
2014-03-13 10:07:13 +04:00
Natalia Ukhorskaya
df3ed5059c
StorageManager for compile-time initializer
2014-03-13 10:07:12 +04:00
Natalia Ukhorskaya
17259a052e
Write constant initializer for java properties
2014-03-13 10:07:11 +04:00
Natalia Ukhorskaya
74c4234c64
Add test for kotlin compiled property as annotation parameter
2014-03-13 10:07:10 +04:00
Natalia Ukhorskaya
9b5050dddd
Serialize compile time constant for property initializer
2014-03-13 10:07:08 +04:00
Natalia Ukhorskaya
bb7312b47f
Render property constant
2014-03-13 10:07:07 +04:00
Natalia Ukhorskaya
8c80b41606
Add compileTimeConstant to variable descriptor
2014-03-13 10:07:06 +04:00
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