Alexey Sedunov
9e69b74a15
Extract Function: Extract smart-cast value as parameter
...
#KT-7576 Fixed
2015-05-27 18:41:42 +03:00
Alexey Sedunov
58ef7f2691
Extraction Engine: Suggest both bounds for nullability-flexible types without nullability annotations. Do not omit return type if inferred one is flexible
...
#KT-6837 Fixed
2015-05-26 22:42:46 +03:00
Alexey Sedunov
72205540d6
Extract Function: Show possible types for receiver in Extract Function/Introduce Lambda Parameter dialogs
...
#KT-7578 Fixed
2015-05-26 22:42:43 +03:00
Alexey Sedunov
5166cdbc96
Introduce...: Allow semicolon extraction
...
#KT-7583 Fixed
2015-05-21 19:29:46 +03:00
Alexey Sedunov
b69b66feab
Extraction Engine: Do not extract type parameter if it's resolved in the target scope
...
#KT-7246 Fixed
2015-05-14 15:47:50 +03:00
Dmitry Jemerov
625096466e
IDE testdata: s/trait/interface
2015-05-13 16:13:13 +02:00
Alexey Sedunov
339383b5b1
Extract Function: Add test for ===
...
#KT-7663 Fixed
2015-05-11 20:57:59 +03:00
Dmitry Jemerov
f93eeeb563
fix tests by adding missing 'init' keywords to testdata
2015-04-29 14:07:05 +02:00
Denis Zharkov
44a55e5bf6
Adjust testData to new labels syntax
2015-04-29 14:03:11 +03:00
Alexey Sedunov
daebf569ab
Extract Function: Allow capturing local function references as lambda parameters
2015-04-17 13:04:56 +03:00
Alexey Sedunov
d036edb5c6
Extraction Engine: Respect smart casts applied to "this" references
...
#KT-7447
2015-04-15 23:20:54 +03:00
Alexey Sedunov
eb594a2897
Extract Function: Approximate non-resolvable types with nearest resolvable supertype when possible
...
#KT-7120 Fixed
2015-04-01 13:41:26 +03:00
Alexey Sedunov
a90d020859
Extraction Engine: Fix extraction of labeled and non-local returns
2015-04-01 13:41:24 +03:00
Alexey Sedunov
dcfefb0847
Extract Function: Do not extract extension function reference as parameter
2015-03-26 23:11:51 +03:00
Alexey Sedunov
93f00db871
Extraction Engine: Consider declarations when comparing descriptors
...
#KT-6960 Fixed
2015-03-24 16:41:05 +03:00
Pavel V. Talanov
06916d98c6
default -> companion: replace all mentions of default and default object
2015-03-17 15:47:39 +03:00
Alexey Sedunov
bff709da10
Convert to Expression Body Intention: Do not remove declaration type if it affects the type of body expression
2015-03-13 23:16:58 +03:00
Alexey Sedunov
9cb42944d1
Extraction Engine: Generate function/property accessor with expression body (whenever applicable)
...
#KT-6405 Fixed
2015-03-13 23:16:57 +03:00
Alexey Sedunov
9d8cfd04d9
Extraction Engine: Suggest function names based on the name of the result variable (if applicable)
...
#KT-6291 Fixed
2015-03-13 23:16:55 +03:00
Stanislav Erokhin
3b92cab9e0
Changed containing declaration for PropertyDeclarationInnerScope
2015-03-12 17:11:43 +03:00
Pavel V. Talanov
59f192ef90
Replace 'class object' with 'default object' in renderers and test data
...
Includes changes to decompiled text
Old syntax is used in builtins and project code for now
2015-03-06 19:36:54 +03:00
Alexey Sedunov
5517c6c539
Extraction Engine: Report invisible types in the generated declaration header
...
#KT-6734 Fixed
2015-03-06 14:37:25 +03:00
Alexey Sedunov
1202e624ce
Extraction Engine: Assume internal visibility for trait members
2015-03-06 14:37:20 +03:00
Alexey Sedunov
4aac24956c
Extraction Engine: Skip named argument references while analyzing extractable code
...
#KT-6896 Fixed
2015-03-06 14:37:16 +03:00
Alexey Sedunov
03fada71d7
Introduce Property: Initial support (properties with getter)
2015-03-04 23:06:02 +03:00
Natalia Ukhorskaya
0391fbd764
Evaluate Expression: support anonymous objects evaluation
2015-03-04 12:42:59 +03:00
Pavel V. Talanov
989f07962b
Write to trace in case class qualifier is a short reference to default object
...
This allows to fix some cases when there is a difference between explicit and short reference to default object
Fix shorten reference, optimize imports and import insert helper for default objects
ShortenReferences always transforms default object references to shorter form for now
Fix DescriptorUtils#getFqName() for default objects (affects test data mostly)
Fix DescriptorUtils#getImportableDescriptor()
2015-03-03 13:04:30 +03:00
Alexey Sedunov
9f3ba50dc5
Extract function: Do not report conflicts for fake overrides/delegates of the same callable declaration
2015-02-11 14:45:12 +03:00
Andrey Breslav
da238cffaf
Visibility of local classes is LOCAL
2015-01-29 16:07:29 +03:00
Alexey Sedunov
70b202dfa6
Extract Function: Do not extract extension receiver from 'implicit invoke'
...
call
#KT-6302 Fixed
2015-01-19 20:58:54 +03:00
Alexey Sedunov
d54b261c61
Extract Function: Fix 'this' label (extension case)
...
#KT-5456 Fixed
2015-01-19 20:58:53 +03:00
Alexey Sedunov
8d40ca1a74
Extract Function: Merge jumps with default exits if all exit points are equivalent
...
#KT-6598 Fixed
2015-01-19 20:58:51 +03:00
Alexey Sedunov
9278dee1a4
Pseudocode: Bind nondeterministic jump caused by local declaration to declaration iself instead of its parent element
...
#KT-6261 Fixed
#KT-6416 Fixed
2015-01-19 20:58:50 +03:00
Valentin Kipyatkov
c915eb4eac
KT-6566 Generate Override/Implement method does not work for locally declared classes
...
#KT-6566 Fixed
2015-01-14 20:59:23 +03:00
Alexey Sedunov
86d5bd9365
Extract Function: Do not suggest "unit" as function name
...
#KT-6402 Fixed
2015-01-12 22:55:33 +03:00
Alexey Sedunov
64ddd52e60
Extract Function: Fix type candidates for parameters with flexibly nullable types
...
#KT-6546 Fixed
2015-01-12 22:55:32 +03:00
Alexey Sedunov
59d646bc16
Extract Function: Generate function in property's enclosing declaration if original expression belongs to initializer of that property
...
#KT-6290 Fixed
2015-01-12 22:55:30 +03:00
Natalia Ukhorskaya
a894979c81
Extract function: add default name for parameter
2014-12-24 13:48:16 +03:00
Alexey Sedunov
d597c98445
Extract Function: Fix NPE when extracting this in object
...
#KT-6238 Fixed
2014-11-26 13:07:27 +03:00
Nikolay Krasko
365319a8e6
LTDA: Make supertypes in lazy type parameters be recorded in order of declaration
2014-11-17 16:15:26 +03:00
Alexey Sedunov
558e038ba5
Extract Function: Replace non-denotable parameter types with their super types when possible
...
#KT-6187 Fixed
2014-11-13 17:27:29 +03:00
Alexey Sedunov
b5e1fe613c
Extract Function: Take duplicates into account when choosing placement of extracted function
...
#KT-5916 Fixed
2014-10-22 18:42:57 +04:00
Alexey Sedunov
c492ffee08
PSI Pattern Matching: Prefer strongly matched children over weakly matched parents
2014-10-22 18:42:55 +04:00
Alexey Sedunov
40da4bd423
Extract Function: Do not allow property extraction if return type is Unit
...
#KT-6017 Fixed
2014-10-22 18:42:55 +04:00
Alexey Sedunov
b18b888161
PSI Pattern Matching: Fix matching of !!
...
#KT-6021 Fixed
2014-10-15 15:41:47 +04:00
Alexey Sedunov
5a0b786cb9
Extract Function: Fix syntax error in test
2014-09-19 13:50:38 +04:00
Alexey Sedunov
40761dfc4c
Extract Function: Generate named argument for extracted lambda (when necessary)
2014-09-19 13:50:38 +04:00
Alexey Sedunov
741e5f61e9
Extract Function: Implement duplicate search
2014-09-18 13:28:30 +04:00
Alexey Sedunov
feb393e4c8
Extract Function: Merge initialized declarations on call site when possible
2014-09-10 16:44:50 +04:00
Alexey Sedunov
dd78ed6d4a
Extract Function: Generate variables when boxing multiline expressions
2014-09-10 16:44:49 +04:00