Commit Graph

243 Commits

Author SHA1 Message Date
Alexander Udalov b3a54cff83 Improve error message for inaccessible invisible_fake members
#KT-8989 Fixed

Original commit: b6b2303aa7
2016-07-22 18:13:40 +03:00
Alexander Udalov b6b3454e26 Do not consider fake variables for objects in :: resolution
The main change is in
NewResolutionOldInference.ResolutionKind.CallableReference, where
createVariableProcessor creates a processor which no longer lists objects

 #KT-12322 Fixed

Original commit: b44f060ffa
2016-07-04 15:42:35 +03:00
Michael Bogdanov d525cd1581 Fix for KT-11964: No TABLESWITCH in when on enum bytecode if enum constant is imported
#KT-11964 Fixed

Original commit: 3b419e8ba3
2016-06-29 09:32:45 +03:00
Denis Zharkov 993493dcc4 Support type aliases in incremental compilation
#KT-12871 Fixed

Original commit: efe718602a
2016-06-28 16:22:08 +03:00
Mikhael Bogdanov babb4ddf87 Inline properties support in incremental compilation
Original commit: a090133581
2016-06-24 17:05:53 +03:00
Denis Zharkov f5b81b7935 Preserve sources properly for coroutine parts
Otherwise incremental reporting leads to exception when inlining into coroutine body happens

Original commit: 07592398c1
2016-06-08 18:53:16 +03:00
Denis Zharkov 720c679184 Introduce coroutine-related API into built-ins
Original commit: e97376bb2c
2016-06-08 18:53:16 +03:00
Denis Zharkov de7c790c1d Use fq-names instead of descriptors when computing ambigious names
Because there can be different descriptors that are essentially equal
(from different modules)

See J2K test: testNullableField

Original commit: a1d4214a39
2016-04-25 17:41:08 +03:00
Zalim Bashorov 6e4d8d1670 IC: take into account added and removed classes when calculate affected names
Original commit: 51c6abdbed
2016-04-11 19:26:18 +03:00
Zalim Bashorov 2b0487fe00 Minor: update testdata
Original commit: 441a442f34
2016-04-08 13:45:37 +03:00
Zalim Bashorov 72debcd1f2 IC: improve logging in tests and fix DataContainerVersionChangedTestGenerated#testWithError
Test logging improvements:
  * print which chunk building in the round for multimodule projects
  * print actions after cache changed

Original commit: f5ca949f2c
2016-04-08 13:45:37 +03:00
Nikolay Krasko ea14bae514 Temporary ad-hock jps-tests enable with testdata modification
Original commit: 46a1028494
2016-04-06 21:46:00 +03:00
Pavel V. Talanov 87dc2c92ca Improve message clarity for WRONG_NUMBER_OF_TYPE_ARGUMENTS diagnostics
#KT-9887 Fixed

Original commit: 7de171efda
2016-03-31 16:06:48 +03:00
Alexander Udalov 2d1d2b58f3 Fix double quotes in diagnostic messages
For diagnostics without any parameters, the given text is simply rendered as a
String, so no symbols should be escaped.

For diagnostics with parameters, the format in java.text.MessageFormat is used,
so one single quote is erased and two single quotes become one single quote in
the rendered text.

Original commit: 8316953259
2016-03-30 21:41:43 +03:00
Alexey Tsvetkov e679750102 Test: override build.log in gradle IC tests
Original commit: 61814eb23f
2016-03-30 03:40:53 +03:00
Zalim Bashorov e0042d99c1 Minor: fix testdata
Original commit: 4b8c9c8b39
2016-03-24 22:28:40 +03:00
Zalim Bashorov b2c79c0ff3 IC: add tests with moving files
Additionally added the ability to use directories in IC tests.

 #KT-8002 Obsolete

Original commit: 9a9b863c9d
2016-03-24 22:28:40 +03:00
Alexey Tsvetkov 01aab0deda Minor: removed experimental-ic-build.log duplicating build.log
Original commit: 33cd661aad
2016-03-24 14:57:17 +03:00
Alexey Tsvetkov bf97307b38 Minor: add two accidentally deleted files to test case
Original commit: 52be775f28
2016-03-11 02:43:31 +03:00
Alexey Tsvetkov a763af2ae0 Add incremental tests for parameters with default values
Original commit: d352905a72
2016-03-10 23:36:40 +03:00
Alexey Tsvetkov 1e279a8c35 Test IC for adding private inline function
#KT-9681 fixed

Original commit: a3893a3c2e
2016-03-04 15:11:27 +03:00
Alexey Tsvetkov 378aafae69 Add missing enum entry added/removed tests
#KT-6200 fixed

Original commit: 9523a8b88d
2016-03-04 14:43:52 +03:00
Alexey Tsvetkov cf417d5c9f Pass isPackage = false when processing class proto
KT-8487

Original commit: ba386f031b
2016-03-03 16:45:20 +03:00
Alexey Tsvetkov cd0c962c7c Add dummy files to fix gradle incremental tests
Gradle won't call kotlin task if source directory is empty

KT-8487

Original commit: 402436f3eb
2016-03-03 16:45:19 +03:00
Alexey Tsvetkov f18ec129fb Remove dependency on kotlin-test in IC test
KT-8487

Original commit: 4f2f0f0a60
2016-03-03 16:45:17 +03:00
Pavel V. Talanov 8f456556f6 Update existing test data depending on diagnostic parameter rendering
Original commit: a4c005fefd
2016-02-26 14:45:11 +03:00
Zalim Bashorov f511d4986f Minor: fix testdata
Original commit: 61cc8394e8
2016-02-20 13:11:23 +03:00
Zalim Bashorov 998dfacd5f KotlinBuilder: use proper API to update Java mappings
Original commit: d832a3d290
2016-02-19 19:11:10 +03:00
Zalim Bashorov e99513da07 New IC: don't fail on unsupported difference kinds and process SUPERTYPE_ID_LIST correctly
Original commit: 05eff9028f
2016-02-19 19:10:44 +03:00
Mikhail Glukhikh cb985c0d13 Effective visibility: concise diagnostic messages #KT-10761 Fixed
Also #KT-9760 Fixed

Original commit: 1bbc46729c
2016-02-16 15:58:50 +03:00
Zalim Bashorov 46253721f1 Minor: drop content from touch files
Original commit: 45f21bc7fd
2016-02-10 22:56:10 +03:00
Zalim Bashorov 74de0e6e7c New IC: add processing changes for constants
Original commit: ced23c02bd
2016-02-10 22:56:09 +03:00
Zalim Bashorov e30ef13260 KotlinBuilder: don't request additional round when it's unnecessary & fix warnings
Original commit: e33e31ad16
2016-02-10 21:37:12 +03:00
Zalim Bashorov df46352af0 Improve test multifilePackagePartMethodAdded: add file which should not be affected
Original commit: cf173d6963
2016-02-09 23:27:26 +03:00
Zalim Bashorov e7dcf02ffe Introduce TestingContext to pass data between tests and KotlinBuilder; introduce BuildLogger to log build events (build finished, files marked as dirty) in KotlinBuilder
Original commit: f6e7f8c3c0
2016-02-09 23:27:25 +03:00
Dmitry Petrov 2217761694 Better diagnostics for conflicting overloads.
Skip declarations without sources in reporting, not when determining redeclaration groups:
this allows emitting informative diagnostics for incremental compilation.
Provide containing declaration with "kind", e.g., "package '<root>'", "class A", and so on.

Original commit: 4afe98a0f6
2016-02-03 15:53:07 +03:00
Dmitry Petrov 4ff15aa21f Fix KT-10764 IDEA doesn't show overload conflict between constructor and function...
When checking for overloads in package, consider functions and top-level class constructors as possibly conflicting between each other. NB OverloadUtil uses containing package scope from module descriptor.

Change diagnostic message for CONFLICTING_OVERLOAD: it's misleading in case of fun vs constructor conflict.

Add custom multifile test for diagnostics in IDE (probably not the best; should preprocess file content if it's required to check highlighting in multiple files, not only in the first file).

Add test for KT-10765 Incremental compilation misses overload conflict between constructor and function ...

Original commit: 65f754ffca
2016-02-02 16:21:26 +03:00
Alexey Tsvetkov 4453f6c378 Fix updating java mappings for multifile facade
Original commit: 2abc422577
2016-01-27 12:28:44 +03:00
Alexey Tsvetkov 08e62d3303 Recompile subtypes when class member is changed
Original commit: a474165a8f
2016-01-27 12:28:44 +03:00
Yan Zhulanow 63282ffa9a "Inapplicable operator modifier" and "Inapplicable infix modifier" are now errors
Original commit: 3fa506fd45
2016-01-26 17:21:44 +03:00
Stanislav Erokhin 627384fe11 KT-10772 Problem with daemon on Idea 15.0.3 & 1-dev-25
# KT-10772 Fixed

Original commit: aca19ed27a
2016-01-24 12:29:23 +03:00
Alexey Tsvetkov 2219901fe7 Minor: fix test data
Original commit: cfc410261b
2016-01-22 21:04:46 +03:00
Alexey Tsvetkov d77e5a2b59 Recompile implicit type usages when class signature is changed
Original commit: f32ff42ba3
2016-01-22 16:01:36 +03:00
Alexey Tsvetkov ecd7b0c9d6 Add lookup for every expression's type
Original commit: 310a995bb1
2016-01-22 16:01:36 +03:00
Alexey Tsvetkov cc979e34b1 Add incremental compilation test with change of annotation class
Original commit: 1ef615e020
2016-01-22 16:01:36 +03:00
Alexey Tsvetkov 5ded4dd4b0 Add incremental compilation tests with changes of companion object
Original commit: a7c432ebe8
2016-01-22 16:01:35 +03:00
Ilya Gorbunov 00020f6d74 Fix testData in compiler: add collections and ranges package to fq-names.
Original commit: f4822cd757
2016-01-22 05:54:38 +03:00
Alexey Tsvetkov a2d58cca63 Test incremental facade to class conversion and vice versa
Original commit: 9bb876e6da
2016-01-21 18:16:01 +03:00
Alexey Tsvetkov cfec0481b4 Recompile all class usages when constructor is changed
Original commit: 94d4dae1fe
2016-01-21 18:14:56 +03:00
Stanislav Erokhin a907aeec4d Change resolution priority about implicit receivers and synthesized member-like descriptors.
Change resolution to consider extensions to implicit receiver before members of another implicit receiver.
Make synthesized member-like extensions resolve right after the members.

#KT-10510 Fixed
#KT-10219 Fixed

Original commit: 3a9ecf0bce
2016-01-15 13:11:38 +03:00