Ilya Gorbunov
70cc7fbf1f
Remove never intentionally used String.hashCode extension.
2015-04-07 03:14:49 +03:00
Ilya Gorbunov
91decc9f33
Add String.contains with Char argument. Fixes #KT-7239.
2015-04-07 03:14:36 +03:00
Ilya Gorbunov
cb85d335ba
Correct deprecated message for trim()
...
Correct documentation description.
2015-04-07 03:14:22 +03:00
Valentin Kipyatkov
8f01130e8e
Minor code corrections after review
2015-04-07 00:00:29 +03:00
Valentin Kipyatkov
2efa851115
Used correct function for fetching elements in range instead of strange one from daemon.impl
2015-04-07 00:00:29 +03:00
Valentin Kipyatkov
0918d5ce79
Minor
2015-04-07 00:00:29 +03:00
Valentin Kipyatkov
bf0798ca86
Added test
2015-04-07 00:00:29 +03:00
Valentin Kipyatkov
bcbe10ad2a
Removed unused method
2015-04-07 00:00:29 +03:00
Valentin Kipyatkov
506f84fb8a
KT-5959 Imports should be inserted on paste from java with conversion to Kotlin
...
#KT-5959 Fixed
2015-04-07 00:00:29 +03:00
Valentin Kipyatkov
754567af07
Important fix: PsiFile.getParent() is PsiDirectory!
2015-04-07 00:00:29 +03:00
Valentin Kipyatkov
d0637ccaf4
Conversion from Java on paste: post processing of code really works
2015-04-07 00:00:28 +03:00
Valentin Kipyatkov
2227452e7a
KT-5203 Do not offer to convert from java on paste if conversion is trivial
...
#KT-5203 Fixed
2015-04-07 00:00:28 +03:00
Valentin Kipyatkov
0ed7d228f6
Got rid of conversionScope parameter for JavaToKotlinConverter
2015-04-07 00:00:28 +03:00
Valentin Kipyatkov
751f952536
Code improvements
2015-04-07 00:00:28 +03:00
Valentin Kipyatkov
4b32db5c5e
KT-5289 J2K: Should show progress when conversion takes time
...
#KT-5289 Fixed
2015-04-07 00:00:28 +03:00
Zalim Bashorov
b3ef334a0e
Update to IDEA 14.1 EAP (141.498.1)
2015-04-06 22:20:44 +03:00
Mikhail Glukhikh
88441814b9
Test for KT-5502 (works after KT-4450 / KT-5907 fix)
2015-04-06 18:32:19 +03:00
Mikhail Glukhikh
d92ccad35d
Implementation and tests for KT-5840 and newly created KT-7204. Now a safe call provides not-null receiver state *inside* argument list. It works also for ?. chains. #KT-5840 Fixed.
...
On the other hand, argument states do not propagate to successor statements for a safe call. #KT-7204 Fixed. A few additional comments.
2015-04-06 18:29:52 +03:00
Zalim Bashorov
79739b7090
Fix build.
2015-04-06 18:20:00 +03:00
Mikhail Glukhikh
1055c34474
Fix of when / break / continue problem
2015-04-06 17:57:48 +03:00
Natalia Ukhorskaya
20470e5c42
Merge pull request #635 from rusmonster/bugfix/fix-build-after-cleaning
...
Build fails after project cleaning
#KT-7277 Fixed
2015-04-06 16:35:18 +03:00
Mikhail Glukhikh
cdc2d0f542
Tests for when / break / continue fixed
2015-04-06 16:08:17 +03:00
Valentin Kipyatkov
412ab8f8b8
Split module idea into idea, idea-core and idea-completion
2015-04-06 14:28:40 +03:00
Dmitry Jemerov
203c8ea125
compilation fix
2015-04-06 13:03:56 +02:00
Dmitry Kalita
7c911e1f0a
When you build the project for the first time after cleaning, you lose paths to internal_impl jars of support libraries such as
...
build/intermediates/exploded-aar/com.android.support/support-v4/21.0.2/libs/internal_impl-21.0.2.jar
They are absent in javaCompile.getClasspath() when javaCompile task starts.
This patch fixes it.
#KT-7277 Fixed
2015-04-05 13:11:41 +03:00
Dmitry Jemerov
5a0c98ca81
fix compilation now that 'break' inside 'when' is not allowed
2015-04-05 00:33:14 +03:00
Dmitry Jemerov
252c4118eb
report 'break' and 'continue' inside 'when' as errors (even if 'when' is nested in a loop)
2015-04-05 00:33:14 +03:00
Valentin Kipyatkov
8ab12e217d
KT-7267 Arguments are replaced by tab when old call was qualified
...
#KT-7267 Fixed
2015-04-04 22:15:45 +03:00
Valentin Kipyatkov
2c1a0a0c4b
Smart completion: expected type instantiation made higher priority than static members
2015-04-04 22:15:45 +03:00
Valentin Kipyatkov
e2979614ad
KT-7259 Space inserted before parenthesis in completion of call
...
#KT-7259 Fixed
2015-04-04 22:15:45 +03:00
Valentin Kipyatkov
93d9e78047
Minor
2015-04-04 22:15:45 +03:00
Valentin Kipyatkov
29149add09
KT-7247 PsiErrorElementImpl cannot be cast to org.jetbrains.kotlin.psi.JetElement
...
#KT-7247 Fixed
2015-04-04 22:15:45 +03:00
Yan Zhulanow
df12331173
Ignore fragment tag (it requires a different implementation)
2015-04-03 17:38:20 +03:00
Yan Zhulanow
b4cfacbac7
Name synthetic files after layout names
2015-04-03 17:37:24 +03:00
Yan Zhulanow
e6fa6e9a5d
Escape layout names which are Kotlin keywords
2015-04-03 17:37:23 +03:00
Yan Zhulanow
3aa6edca7b
Escape soft keywords as well
2015-04-03 17:37:23 +03:00
Yan Zhulanow
fae114f606
Cast findViewById() result to Views safely
2015-04-03 17:37:23 +03:00
Yan Zhulanow
1f16328070
Add imports for XML widget tags, support.v4 fake package files
2015-04-03 17:37:22 +03:00
Yan Zhulanow
d0e4f86790
Escape widget ids which are Kotlin keywords
2015-04-03 17:37:22 +03:00
Yan Zhulanow
2af538e854
Ignore some XML tags
2015-04-03 17:37:21 +03:00
Yan Zhulanow
938248bd29
Search for all properties in layout files corresponding to the given JetProperty
2015-04-03 17:37:21 +03:00
Yan Zhulanow
96074bc948
Fix Android byte code generation inside complex expressions
2015-04-03 17:37:21 +03:00
Yan Zhulanow
de06a0cbc2
Clear layout cache on layout XML file add/remove
2015-04-03 17:37:20 +03:00
Yan Zhulanow
b930f04ff4
Fix null-related warnings in AndroidRenameProcessor
2015-04-03 17:37:20 +03:00
Yan Zhulanow
638ec2ae92
Fix deprecated Kotlin constructs and remove unused code in Android plugins
2015-04-03 17:37:20 +03:00
Yan Zhulanow
dd083c64cc
Simplify Module resolving in AndroidRenameProcessor
2015-04-03 17:37:19 +03:00
Yan Zhulanow
cbf68e8c6f
Generate synthetic packages even for layouts without @+id/ attributes declared
2015-04-03 17:37:19 +03:00
Yan Zhulanow
0a96c2c148
Lookup XML attribute using the property (for a particular layout)
2015-04-03 17:37:19 +03:00
Yan Zhulanow
a4dc6870dc
Fix Android layout widget redeclarations
2015-04-03 17:37:18 +03:00
Yan Zhulanow
c40598b3e9
Do not cast findViewById to View
2015-04-03 17:37:18 +03:00