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
Nikolay Krasko
b0226fd91c
Fix bad refactoring
2016-07-11 13:52:15 +03:00
Nikolay Krasko
74877d2fa9
Minor: add some comments after review
2016-07-11 13:52:14 +03:00
Nikolay Krasko
6fbcb6448d
Support multi-module environment in DifferentKotlinGradleVersionInspection
2016-07-11 13:52:13 +03:00
Nikolay Krasko
e6c05aa92d
Make DifferentKotlinGradleVersionInspection inpection work for classpath call with braces
2016-07-11 13:52:12 +03:00
Nikolay Krasko
b04ed12ee1
Update description in DifferentKotlinMavenVersionInspection
2016-07-11 13:52:11 +03:00
Nikolay Krasko
feea1f554a
Refactoring: extract strings
2016-07-11 13:52:11 +03:00
Nikolay Krasko
8acb96fb4d
Fallback to properly resolved version if heuristic doesn't work in DifferentKotlinGradleVersionInspection
2016-07-11 13:52:10 +03:00
Nikolay Krasko
620ddcd63a
Add inspection that warns if Gradle plugin version differs from the one in IDE (KT-12730)
...
#KT-12730 Fixed
2016-07-11 13:52:06 +03:00
Denis Zharkov
7a9af072b4
Fix ClassCastException when data object is being analyzed
...
#KT-12687 Fixed
2016-07-10 15:04:32 +03:00
Michael Bogdanov
23a0e19620
Fix for KT-13040: Invalid bytecode generated for extension lambda invocation with safe call
...
#KT-13040 Fixed
2016-07-09 14:55:49 +03:00
Michael Bogdanov
93f6761671
Print bytecode on linenumber test fail
2016-07-09 07:45:57 +03:00
Michael Bogdanov
486aa5675f
Fix for KT-12908: Variable initialization in loop causes VerifyError bad local variable type
...
#KT-12908 Fixed
2016-07-09 07:45:57 +03:00
Dmitry Jemerov
00d651711a
fix incompatibility with ASM 6: don't call getReturnType() on a type which is not a method type (IDEA-158090)
2016-07-08 17:17:45 +02:00
Denis Zharkov
3aa1a56cb9
Extend recovery set when expecting property accessor
...
#KT-12987 Fixed
2016-07-08 16:06:47 +03:00
Denis Zharkov
f1026935a0
Add recovery for properties without name
...
If property name is parsed on the next line and declaration is invalid
(no receiver/type/initializer), treat that name as it does not belong to property
#KT-12987 In Progress
2016-07-08 16:06:47 +03:00
Denis Zharkov
141db1809f
Minor. Drop redundant AnnotationParsingMode
2016-07-08 16:06:47 +03:00
Denis Zharkov
36a7f31358
Minor. Extract parsePropertyDelegateOrAssignment
2016-07-08 16:06:47 +03:00
Denis Zharkov
4981b730ef
Minor. Cleanup KotlinParsing
...
- Remove unused field and commented code
- Add some comments
- jet -> kotlin
2016-07-08 16:06:47 +03:00
Denis Zharkov
bed6e312ae
Minor. Drop unreachable conditional branch
...
- allowShortAnnotations is true only for IN_ANNOTATION_LIST
- when starting parsing of annotation list we can't come to modifier list
(see the only usage of IN_ANNOTATION_LIST)
2016-07-08 16:06:47 +03:00
Denis Zharkov
46f11a5ec4
Add val/var tokens in parameter name recovery set
...
Recovery after val/var everywhere beside value parameters works
properly without this change
#KT-7915 Fixed
2016-07-08 16:06:47 +03:00
Dmitry Petrov
b0edec8449
KT-13023 Char operations throw ClassCastException for boxed Chars
...
Char is not a Number, so we can't use the same coercion strategy for Char members,
since it doesn't work for boxed Chars.
2016-07-08 10:26:04 +03:00
Dmitry Petrov
2ccb0caa6c
Minor: fix NPE in CallableMethod.toString for methods of primitive types
2016-07-08 10:26:04 +03:00
Dmitry Jemerov
dec2f982ee
add test for resolving links to library classes from KDoc comments
2016-07-07 19:28:59 +02:00
Dmitry Jemerov
80e10c6928
use navigation element to resolve KDoc links, so that we have correct context when resolving links in the documentation of library elements
...
#KT-10654 Fixed
2016-07-07 19:28:31 +02:00
Dmitry Jemerov
fac1b85d26
use a better API for locating target element when navigating by documentation link, to ensure we find the source for descriptors belonging to library classes
...
#KT-12932 Fixed
2016-07-07 19:27:53 +02:00
Dmitry Jemerov
88fe6680fa
use QualifiedNameResolver for resolving links in KDoc
...
#KT-10398 Fixed
2016-07-07 19:27:45 +02:00
Dmitry Jemerov
60523fb93f
avoid NPE when trying to create a file that already exists
...
#KT-12655 FIxed
2016-07-07 18:01:43 +02:00
Dmitry Jemerov
972ebd5fec
check that main() returns Unit
...
#KT-12760 Fixed
2016-07-07 18:01:42 +02:00