Nikita Bobko
a94d2211e4
Cleanup getLineCount
2020-06-04 14:56:23 +03:00
Dmitry Gridin
50506658c0
fix some tests for as36
2020-05-08 19:13:28 +07:00
Dmitry Gridin
11a3482970
tests: apply official code style
...
#KT-38632 Fixed
2020-05-07 12:36:44 +00:00
Dmitriy Novozhilov
b66bbdf7a6
[IDE-NI-MIGRATE] [BAD] Migrate testdata of Extraction tests
...
Bad tests:
- IntroduceTypeParameter.testDuplicates
- IntroduceTypeParameter.testNullableType
- IntroduceTypeParameter.testUserType
- IntroduceTypeParameter.testFunctionType
- IntroduceTypeParameter.testInClass
- ExtractFunction.TypeParameters.testNoVarianceInFun
- ExtractFunction.Parameters.CandidateTypes.testNonNullableTypes
- ExtractFunction.Parameters.CandidateTypes.testMultipleTypes
- ExtractFunction.ControlFlow.OutputValues.testGenericPair
- IntroduceVariable.ExplicateTypeArguments.testDeeperNestedCall
2019-05-06 11:36:28 +03:00
Yan Zhulanow
6cb2146d31
Remove 'allowSpecialClassNames' extraction option
2019-02-25 14:43:58 +03:00
Yan Zhulanow
4ae01badff
Extract function: avoid same parameter names
2019-02-25 14:43:55 +03:00
Yan Zhulanow
e958a9771f
Extract refactoring: Make an extracted function 'inline' if any of its type parameters are reified (#KT-23983)
2018-07-12 20:36:38 +03:00
Alexey Sedunov
16dbc6fb4d
Extract Function: Forbid inappropriate declarations inside extractable fragment
...
#KT-20467 Fixed
#KT-20469 Fixed
2018-06-19 12:22:40 +03:00
Alexey Sedunov
2104a0fa2b
Extract Function: Drop extra space in modifier list
...
#KT-23274 Fixed
2018-03-30 12:37:30 +03:00
Alexey Sedunov
5f43bd56b4
Extract Function: Use 'public' visibility for function extracted from public inline
...
#KT-15228 Fixed
2018-03-06 15:15:41 +03:00
Mikhail Glukhikh
a960fa78cb
Use expression body: add new line more accurately
2017-07-07 18:15:36 +03:00
Mikhail Glukhikh
523cbc6723
Convert to expression body: insert new-line after = for long lines
2017-07-07 18:15:07 +03:00
Dmitry Petrov
c83b764c73
Update testData after changes in diagnostics
2017-05-26 13:58:46 +03:00
Mikhail Zarechenskiy
b17b3f4c63
Resolve local function parameters with function inner scope
...
This allows to use type parameters and value paramters in default value expressions
#KT-7984 Fixed
#KT-7985 Fixed
2017-04-17 16:21:06 +03:00
Kirill Rakhman
646f50dd66
Extract method refactoring should order parameters by first usage
...
Fixes #KT-16198
2017-03-07 18:10:02 +03:00
Alexey Sedunov
add16dec3d
Extract Function: Fix detection of suspend calls containing extracted parameters
...
#KT-16251 Fixed
2017-02-13 14:53:17 +03:00
Alexey Sedunov
7382d7c7d6
Extract Function: Add 'suspend' modifier if extracted function contains suspend-calls
...
#KT-14704 Fixed
2017-01-25 14:24:49 +03:00
Alexey Sedunov
25cebbab4b
Extraction Engine: Do not wrap companion member references inside of the with call if it's disabled in extraction options
...
#KT-13781 Fixed
2016-12-02 14:14:04 +03:00
Alexander Udalov
035d6156a7
Drop Cloneable in JS, synthesize it at compile-time on JVM
...
Use the same approach that is used for creating function type classes
(Function{0,1,...}) + add Cloneable to supertypes of Array and primitive arrays
#KT-5537 Fixed
2016-10-25 15:42:33 +03:00
Valentin Kipyatkov
7f0063013c
Corrected test data
2016-10-11 23:38:52 +03:00
Valentin Kipyatkov
41ee06ec96
Use parameter names in DescriptorRenderer
2016-10-11 23:38:49 +03:00
Alexey Sedunov
d3c14ce7d6
Extract Function: Support implicit abnormal exits via Nothing-typed expressions
2016-10-07 20:20:39 +03:00
Alexey Sedunov
b793252a5f
Extract Function: Skip callable reference selectors
...
#KT-13218 Fixed
2016-08-10 11:45:38 +03:00
Alexey Sedunov
59a714ca5c
Presentation: Render function signature in RefactoringDescriptionLocation
...
#KT-12943 Fixed
2016-08-10 11:45:29 +03:00
Alexey Sedunov
b5828a5fa1
Refactoring: Allow multiple ElementKinds when choosing element to refactor
2016-07-25 12:44:26 +03:00
Stanislav Erokhin
03241419bd
Minor. removed several tests with error calls.
2016-06-10 21:28:04 +03:00
Stanislav Erokhin
4b9aac6318
Replace not debug usages of DescriptorRenderer.DEBUG_TEXT to DescriptorRenderer.FQ_NAMES_IN_TYPES.
2016-05-25 16:31:34 +03:00
Kirill
6e08f06bfd
Format spaces in infix call (KT-12018)
...
#KT-12018 Fixed
2016-04-26 15:21:33 +03:00
Stanislav Erokhin
693461e2ee
Minor. Remove failed tests for KT-8116.
2016-04-04 23:12:38 +03:00
Valentin Kipyatkov
4cd7193047
KT-11018 Ctrl + Mouse Hover shows a var as val
...
#KT-11018 Fixed
2016-02-13 10:20:20 +03:00
Denis Zharkov
c1f57b743b
Do not build enhanced descriptors if they are unchanged
2016-02-08 16:40:47 +03:00
Ilya Gorbunov
25c4453dc5
Cleanup deprecated symbol usages in testData
2016-01-22 05:54:38 +03:00
Ilya Gorbunov
f4822cd757
Fix testData in compiler: add collections and ranges package to fq-names.
2016-01-22 05:54:38 +03:00
Denis Zharkov
e2c02f825f
Refine member scope for types with projections
...
Instead of erasing descriptors with conflicting substitution,
use invariant CapturedType(<projection>) as replacement for type parameter
within default member scope.
After substitution leave such types 'as is' everywhere except return types,
use common approximation for them.
#KT-9294 In Progress
#KT-5411 Fixed
#KT-8647 Fixed
#KT-9462 Fixed
#KT-9893 Fixed
#KT-7581 Fixed
#KT-7296 In Progress
2015-12-28 11:13:37 +03:00
Pavel V. Talanov
a667aa2f71
Tests: add runtime (and runtime sources) to some tests that rely on being able to resolve references to built ins
2015-12-15 20:22:09 +03:00
Alexander Udalov
239502368a
Update test data for tower resolution algorithm
...
- locals win
- unary calls to plus/minus are not supported in favor of unaryPlus/unaryMinus
- unqualified nested classes are temporarily reported as unresolved
- function without receiver win against extension function
- explicit import win against star import
2015-12-11 17:01:02 +03:00
Alexey Sedunov
354e1dc337
Extract Function: Parenthesize binary expressions if operation reference starts with a new line
2015-12-10 20:07:23 +03:00
Pavel V. Talanov
b9ce9f8576
Script, IDE: tweak extract based refactorings to behave better in scripts
...
Fix not being able to invoke introduce variable for top level script expression
Prohibit introduce parameter and introduce property for scripts on top level
Basic test for introduce function (produces red code atm)
2015-12-02 15:14:25 +03:00
Alexey Sedunov
6abf13be41
Extract Function: Consider member property with invoke() a receiver candidate
...
#KT-9774 Fixed
2015-12-02 13:54:03 +03:00
Alexey Sedunov
03e1480476
Extraction Engine: Get rid of explicit element offset manipulation and use copyable user data instead
2015-12-02 13:54:02 +03:00
Yan Zhulanow
a3ff3ffc45
Fix tests: "Placing function type parameters after the function name" error
2015-11-27 15:51:11 +03:00
Alexey Sedunov
6e8acc6453
Psi Unifier: Do not unify parameters with block expressions
2015-11-24 20:40:20 +03:00
Alexey Sedunov
741489f4a5
Extract Function/Introduce Property: Support extraction of string template fragments
2015-11-24 20:40:18 +03:00
Denis Zharkov
deea0643ad
Refine type arguments resolution and rendering
...
In case of type constructors captured parameters from outer classes
#KT-5510 Fixed
#KT-3112 Fixed
#KT-6325 Fixed
#KT-408 Fixed
#KT-6337 Fixed
2015-11-13 14:47:28 +03:00
Natalia Ukhorskaya
5fcd5396b6
Add option to extract function for wrapping member extension function with with { }
2015-11-10 18:38:11 +03:00
Mikhail Glukhikh
41ebfd025e
More precise diagnostics of smart cast impossible #KT-7240 Fixed
2015-11-03 13:38:51 +03:00
Alexey Sedunov
3fd6864461
Extraction Engine: When extracting to enum class body, place new declaration after the last entry
...
#KT-9629 Fixed
2015-10-24 19:50:52 +03:00
Alexey Sedunov
bdd495460b
Extraction Engine: Properly retrieve declaration for overriden/delegated Java synthetic properties
...
#KT-9554 Fixed
2015-10-20 18:39:43 +03:00
Denis Zharkov
d71b0144d5
Adjust testData to *Map transformation
2015-10-14 20:39:40 +03:00
Denis Zharkov
f0e3fd617d
Adjust testData to CharSequence.length transformation
2015-10-14 20:39:35 +03:00