Commit Graph

7160 Commits

Author SHA1 Message Date
Nikolay Krasko 3f53f9d9fb Allow storing dot qualified expression in annotations arguments (KT-23738) 2018-11-06 13:43:21 +03:00
Nikolay Krasko a9c3b27d3e Don't generate stub for value arguments list when no arguments present (KT-23738)
Need this to conform stubs list obtained by decompiler.
Also ignore green stub, because is might not contain actual psi node.
2018-11-06 13:43:19 +03:00
Nikolay Krasko efa59bfc7e Make stubs for string entries (KT-23738) 2018-11-06 13:43:17 +03:00
Nikolay Krasko 37d7e618da Stub element for KtStringTemplateExpression (KT-23738) 2018-11-06 13:43:16 +03:00
Nikolay Krasko 11543ba897 Make possible store constant values in stubs (KT-23738) 2018-11-06 13:43:15 +03:00
Nikolay Krasko d9bc512556 Put arguments name to stubs in annotations (KT-23738) 2018-11-06 13:43:14 +03:00
Nikolay Krasko 12f127d631 Add stub for annotations value arguments (KT-23738) 2018-11-06 13:43:13 +03:00
Nikolay Krasko fbb0e7d927 Stubbed VALUE_ARGUMENT_LIST and store it for annotations (KT-23738) 2018-11-06 13:43:12 +03:00
Nikolay Krasko f892714bea Test for stubs in annotations (KT-23738) 2018-11-06 13:43:07 +03:00
Toshiaki Kameyama 4a82f50e79 Convert concatenation to template: omit braces when converting 'this' #KT-7555 Fixed 2018-11-06 11:03:08 +03:00
Toshiaki Kameyama 7a9effe30d Redundant companion reference: Fix false positive in enum entry #KT-27861 Fixed 2018-11-06 11:02:35 +03:00
Mikhail Glukhikh 329e4f6000 New MPP highlighting test: add test without errors (KT-27494) 2018-11-02 15:42:39 +03:00
Mikhail Glukhikh 62e9eae48d New MPP highlighting test: check also line markers (KT-27494)
We have to do complex operations with tags, because otherwise
tags in different files prevent correct analysis of the current one
2018-11-02 15:42:06 +03:00
Mikhail Glukhikh 9be23bb21c Add first test for new multiplatform highlighting #KT-27494 Fixed 2018-11-02 15:41:45 +03:00
Nikolay Krasko 6fcb1716eb Do additional resolve for inline properties for backend (KT-27460)
There's an additional resolve for inline declarations to make backend
happy with the passed binding context object. Unlike functions,
properties were not processed.

 #KT-27460 Fixed
2018-11-01 17:12:45 +03:00
Natalia Selezneva e48fbe4aa3 Do not insert additional new lines in REPL 2018-11-01 15:00:41 +03:00
Nikolay Krasko 6198641cb7 Fix test after adding line with force ranking directive 2018-11-01 12:24:03 +03:00
Nikolay Krasko 6f719a9460 Use binary expression as parent for better spacing (KT-27717)
When BINARY_EXPRESSION is used as parent, spacing rules for it are applied.
There're no rules for OPERATION_REFERENCE on the other side.

 #KT-27717 Fixed
2018-11-01 12:24:02 +03:00
Nikolay Krasko 2684974a33 Single indent for multi-declarations for official codestyle (KT-27847)
#KT-27847 Fixed
2018-11-01 12:24:01 +03:00
Toshiaki Kameyama e8e51d1db4 Safe cast with return: fix false negative on lambda last statement #KT-27906 Fixed 2018-11-01 10:59:18 +03:00
Mikhail Glukhikh 9bc1dbb5bc Fix testCleanup 2018-10-31 19:00:29 +03:00
Mikhail Glukhikh 318d6e7111 Introduce inspection for unused main parameter #KT-26999 Fixed 2018-10-31 19:00:29 +03:00
Mikhail Glukhikh ad44118605 Delay UNUSED_PARAMETER on main parameter until 1.4 (part of KT-26999) 2018-10-31 19:00:29 +03:00
Toshiaki Kameyama 1df15612d6 Unnecessary parentheses in function call with lambda: fix false positive #KT-26669 Fixed 2018-10-31 11:45:48 +03:00
Natalia Selezneva a79785727e Update testdata: coroutines are not experimental since 1.3.0 2018-10-31 11:01:14 +03:00
Natalia Selezneva 43fa2d59fc Configurator: repositories are inserted in one line 2018-10-31 11:01:13 +03:00
Natalia Selezneva cbd54e7867 Fix configuration tests with latest runtime 2018-10-31 11:01:12 +03:00
Mikhail Glukhikh 700bcb5984 Unused symbol: fix false positives on inline class constructors
#KT-27434 Fixed
2018-10-27 12:13:52 +03:00
Mikhail Glukhikh 6e10235208 Make "Add name(s) to call arguments" available for generic arguments
#KT-15550 Fixed
2018-10-27 12:13:42 +03:00
Nikolay Krasko 7009b261d6 Don't rank local classes (KT-27712)
Allow enable ranking even for single source file in tests

 #KT-27712
2018-10-26 18:02:36 +03:00
Nikolay Krasko 8d7829be31 Allow to assert rank value in ranking test
Update test data for lambdas.kt because of same rank check bug fixed.
2018-10-26 18:02:36 +03:00
Mikhail Glukhikh e39953c4a0 Check also drop-box content in multi-module line marker tests
Related to KT-26957
2018-10-26 16:21:49 +03:00
Toshiaki Kameyama 3e6007e3d3 Lift return out: report also on 'return' keywords #KT-27173 Fixed 2018-10-25 19:51:36 +03:00
Mikhail Glukhikh 387efc3791 Highlight unused parameters in main function in 1.3 (KT-26999) 2018-10-25 19:11:45 +03:00
Mikhail Glukhikh b9161c5293 Gradle configurator: handle kotlin options correctly with new-mpp plugin
#KT-27052 Fixed
2018-10-25 18:13:08 +03:00
Mikhail Glukhikh bb19d4c598 Do not create expect / actual markers for parameters & enum entries
Part of KT-26957
2018-10-25 18:11:45 +03:00
Alexander Udalov c1ab08c8ce Refactor KClassValue to store ClassLiteralValue internally
Only invariant array projections and non-null element types will be
supported soon (see KT-26568), so it makes no sense to store the
complete type in KClassValue. What we need is only the ClassId of the
class, and the number of times it's wrapped into kotlin/Array, which is
exactly what ClassLiteralValue represents.

This change helps in decoupling annotation values from
descriptors/types. The only constant value that depends on descriptors
is now AnnotationValue.

 #KT-26582 Fixed
2018-10-25 16:27:23 +02:00
Yan Zhulanow 9dd6efeb46 Fix sporadic false-positive "Receiver parameter is never used" for local functions (KT-26481) 2018-10-24 20:12:42 +03:00
Yan Zhulanow b8c756a4e8 Debugger: Remove false-positive assertion (KT-24343) 2018-10-24 20:12:25 +03:00
Yan Zhulanow 713dc589e0 Debugger: Allow to evaluate private properties from companion objects (KT-26795) 2018-10-24 20:12:24 +03:00
Yan Zhulanow fee0cfcecb Debugger: Add a stepping test for inline classes (KT-26798) 2018-10-24 20:12:23 +03:00
Toshiaki Kameyama 90529dfda4 "Remove redundant receiver" quick fix: Remove unused type parameter #KT-23512 2018-10-23 13:02:44 +03:00
Toshiaki Kameyama 0cd25353bc Lift assignment: do not report in cases where argument are of different types #KT-21520 Fixed 2018-10-23 12:48:03 +03:00
Toshiaki Kameyama 29cc727c5a Add inspection for suspicious 'var' property #KT-23691 Fixed 2018-10-23 12:31:42 +03:00
Toshiaki Kameyama 3ede93df11 Introduce inspection: "Setter backing field should be assigned"
#KT-20273 Fixed
2018-10-23 11:22:40 +03:00
Mikhail Glukhikh a5e508a083 Unused symbol: handle functions with inline class parameters correctly
#KT-27357 Fixed
2018-10-19 19:07:59 +03:00
Toshiaki Kameyama ecba862dc9 Expand selection for labeled return #KT-26987 Fixed 2018-10-19 12:24:47 +03:00
Matthew Runo 374eec04d4 KT-27445: Add QuickFix for DEPRECATED_JAVA_ANNOTATION compiler warning 2018-10-18 15:56:15 +03:00
Dmitry Savvinov e2bf43c54f Minor: update testdata in ClsStubBuilder test on contracts 2018-10-18 13:15:05 +03:00
Dmitry Savvinov 7887bafc5b Minor: update testdata in completion test on contracts 2018-10-18 12:09:10 +03:00