Denis Zharkov
b5bdb070a0
Fix test data after 4725dd3
2016-07-16 09:10:35 +03:00
Denis Zharkov
3b0131fd04
Fix ConvertTextJavaCopyPasteProcessor after 4725dd3
...
In cases like 'fun foo() = \n fun dummy(){}'
declaration on the next line is parsed as top-level declaration.
But ConvertTextJavaCopyPasteProcessor expects that 'fun dummy(){}'
would be a part of an expression body, so we replace "\n" with " "
to turn off recovery in the case
See TextJavaToKotlinCopyPasteConversionTestGenerated.testAsExpressionBody
2016-07-16 09:10:00 +03:00
Denis Zharkov
2f2b1a7f80
Minor. Drop unused method
2016-07-15 18:59:33 +03:00
Denis Zharkov
4725dd3028
Implement recovery for incomplete expression before declaration
...
It's needed when declarations are parsed as a part of previous expression
(see tests)
Currently we apply this kind of recovery in a conservative way,
only when declaration starts at the next line, and while
the condition could be relaxed, there's no need to do this
#KT-4948 Fixed
#KT-7118 Fixed
2016-07-15 18:59:31 +03:00
Denis Zharkov
06a659e6e7
Minor. Invert boolean parameter meaning
...
It looks much more sensible to me
2016-07-15 18:27:01 +03:00
Denis Zharkov
fcb870a303
Add EOL to EXPRESSION_FOLLOW recovery set
...
This change is used in further commits, but it's extracted
to emphasize that testData modifications are caused by this.
2016-07-15 18:27:00 +03:00
Dmitry Jemerov
e224041760
show line markers for properties defined in the primary constructor (KT-12626)
2016-07-14 23:32:07 +02:00
Dmitry Jemerov
4391d833b9
do not reenter indices to avoid deadlock
...
#KT-12718 Fixed
2016-07-14 23:32:05 +02:00
Dmitry Jemerov
5380b63522
don't consider calls to methods with the same name as a property to be calls to accessors of that property
...
#KT-12813 Fixed
2016-07-14 23:32:04 +02:00
Dmitry Jemerov
14037f099c
correctly find usages of overridden Java method through synthetic accessors
...
#KT-12869 Fixed
2016-07-14 23:32:02 +02:00
Alexey Andreev
e2b836db09
JS: refactor TemporaryVariableElimination
2016-07-14 18:00:34 +03:00
Alexey Tsvetkov
941437a9a2
Correct test case for KT-12776
...
After minifying test, it stopped failing without fix
2016-07-14 16:48:30 +03:00
Alexey Tsvetkov
58e13ddf54
Do not force dependency resolution when configuring kapt with stabs
...
#KT-12776 fixed
2016-07-14 16:15:19 +03:00
Ilya Gorbunov
a66fc90434
Minor: exclude directory with the generated stdlib documentation
2016-07-13 20:40:01 +03:00
Ilya Gorbunov
d55b2cd00d
Docs: include JRE7/8-specific sources into the documentation.
2016-07-13 20:39:59 +03:00
Ilya Gorbunov
e9ccc480b0
Docs: improve docs for Closeable.use and AutoCloseable.use
2016-07-13 20:39:54 +03:00
Dmitry Jemerov
b09fc7c146
Kotlin JUnit run configuration producer needs to take precedence over IDEA's PatternConfigurationProducer
...
#KT-13084 Fixed
2016-07-13 15:48:21 +02:00
Dmitry Jemerov
e66e292052
add alternate path to common.jar dependency to work around the fact that it's no longer shipped in plugins/android/lib since AS 2.2 preview
2016-07-13 13:41:05 +02:00
Dmitry Jemerov
5201fc171b
ClsWrapperStubPsiFactory can be a singleton
2016-07-13 13:16:15 +02:00
Alexander Udalov
87387d030f
Minor, fix yellow code in OverrideResolver and OverridingUtil
2016-07-13 13:42:46 +03:00
Alexander Udalov
8f33830f29
Suppress UNCHECKED_CAST instead of CAST_NEVER_SUCCEEDS in several places
...
This is related to KT-6611 being fixed recently. Note that not all cases of
incorrect "cast never succeeds" were fixed
2016-07-13 13:42:42 +03:00
Alexander Udalov
13b0fda3c2
Fix AssertionError in DescriptorResolver#checkBounds
...
#KT-9620 Fixed
2016-07-13 13:42:39 +03:00
Denis Zharkov
b777b081b7
Increase SOURCE_STUB_VERSION and BINARY_STUB_VERSION in 1.1 on 50
...
Mostly because of type aliases and coroutines related changes
The reason why not just +1 is to avoid clashes between 1.0.x and 1.1
in cases when version must be increased in both branches
2016-07-13 13:19:11 +03:00
Denis Zharkov
bef7d5da2f
Increase SOURCE_STUB_VERSION
...
It's necessary because of changes in parser
(mostly recovery f1026935a0 )
2016-07-13 13:14:57 +03:00
shiraji
113ab7640e
Implement inspection to remove @ from annotation argument #KT-9228 Fixed
...
(cherry picked from commit 543c6bc)
2016-07-13 13:11:43 +03:00
Dmitry Jemerov
c80e094967
specify FQ names for collection types as well
2016-07-12 17:34:09 +02:00
Denis Zharkov
d88fc864e4
Revert "Use weak-reference based SLRU cache for module resolvers"
...
This reverts commit 28e33aaf56 .
Reverting is necessary because this change leads to complicated
exceptions, while it's usefulness is not that obvious.
#EA-82372 Fixed
2016-07-12 17:54:49 +03:00
Mikhail Glukhikh
39ffb68cc6
KT-12942 related: remove braces now does not work for if inside if
...
(cherry picked from commit c1faed5)
2016-07-12 17:27:19 +03:00
Mikhail Glukhikh
3fe114fc24
When to if now add braces for if branches inside #KT-12942 Fixed
...
(cherry picked from commit 29a7bfe)
2016-07-12 17:27:03 +03:00
Mikhail Glukhikh
b675b49daf
Specify type explicitly: do not consider star projection arguments in KotlinType.isFlexibleRecursive() #KT-13055 Fixed
...
(cherry picked from commit 828f4bf)
2016-07-12 17:26:50 +03:00
Mikhail Glukhikh
51ccfc120e
Can be primary constructor property: check whether property belongs to the same class #KT-12876 Fixed
...
(cherry picked from commit eb05a7a)
2016-07-12 17:26:39 +03:00
Dmitry Jemerov
e492d23d58
more sensible docs for @MustBeDocumented
2016-07-12 16:23:58 +02:00
Dmitry Jemerov
ccbc19f7e9
fix qualified links in Module.md
...
#KT-11373 Fixed
2016-07-12 16:23:58 +02:00
Denis Zharkov
3845ea863c
Do not generate DefaultImpl method for MutableMap.remove(K;V)Z
...
#KT-13069 Fixed
2016-07-12 16:27:48 +03:00
Denis Zharkov
2d42ba23b3
Minor. Replace TraitImpl -> DefaultImpls, Trait -> Interface
...
There are still a lot of trait word entries in the source code,
only some of them got replaced here
2016-07-12 16:27:48 +03:00
Nikolay Krasko
57ef3f5656
Generate linenumber for goto instruction in while (KT-13059)
...
Otherwise linenumber for previous instruction will be used in debugger. That can lead to error stepping
because it might be line that isn't reachable on current iteration.
#KT-13059 Fixed
2016-07-12 15:19:02 +03:00
Nikolay Krasko
ce74d6c7df
Refactoring: invert if
2016-07-12 15:19:00 +03:00
Ilya Chernikov
ee2c5c1b73
minor: Make script dependencies classpath processing more robust
2016-07-12 13:21:11 +02:00
Denis Zharkov
9fd78ac1ff
Temporary disable reflection test on Android
2016-07-12 12:52:03 +03:00
Denis Zharkov
18c2d3070d
Refine variables liveness analysis
...
Do not treat var as alive just because current instruction belongs to an item range
in local variables table, but the item has different sort of type
As liveness analysis is mostly used in coroutines spilling,
not applying this change may lead that to problems on Android (see tests)
2016-07-12 12:52:03 +03:00
Nikolay Krasko
434a84eab6
Disable local mirrors for public teamcity
2016-07-12 12:16:39 +03:00
Nikolay Krasko
6b10a9d94e
Tests for Gradle inspections with configured Gradle project
2016-07-12 12:16:38 +03:00
Nikolay Krasko
585c8eea0b
Warn about using different versions of Kotlin plugin and standard library in Gradle (KT-12730)
...
#KT-12730 Fixed
2016-07-12 12:16:35 +03:00
Nikolay Krasko
5246b8a926
Fix getting external path for retrieving gradle model
2016-07-12 12:14:25 +03:00
Nikolay Krasko
9b1eb0931f
Refactoring: extract method for getting Kotlin plugin version and remove findAllRecursively usage
2016-07-12 12:14:24 +03:00
Nikolay Krasko
8852c8812b
Use internalName for compare with module name
2016-07-12 12:14:23 +03:00
Pavel V. Talanov
ae5659538b
Increase BINARY_STUB_VERSION
...
Should have been done after earlier changes: 022ef6410d6b18906156c43ef06215c726528880
2016-07-11 19:07:19 +03:00
Pavel V. Talanov
254ab72eb5
Put all stub versions into one place, explain their meaning
2016-07-11 19:07:16 +03:00
Pavel V. Talanov
00afc1dbf2
update ChangeLog for 1.0.3
2016-07-11 19:07:14 +03:00
Nikolay Krasko
0b5786b9e8
Fix LocalVarShadowingMemberProperty test by renaming test files
2016-07-11 13:52:37 +03:00