Alexey Sedunov
1a60995ea9
Move: Forbid refactoring if target file is the same as the original one
2015-05-18 21:18:50 +03:00
Alexey Sedunov
35bdf9c261
Minor: Code cleanup
2015-05-18 21:18:49 +03:00
Alexey Sedunov
38ae9349fc
Move: Move entire file if all declarations are selected ("Move to Package" mode)
2015-05-18 21:18:48 +03:00
Alexey Sedunov
7cf7a14d9b
Move: Warn about moving to the existing file in "Move to Package" mode
2015-05-18 21:18:47 +03:00
Alexey Sedunov
870c9c4668
Move: Allow the user to choose target file name when moving declarations to package
2015-05-18 21:18:47 +03:00
Alexey Sedunov
2bd21b0f37
Move: Allow moving several files represented by their top-level declarations in the Project View (provided there is only one declaration per file)
2015-05-18 21:18:46 +03:00
Alexey Sedunov
f08438c53c
Move: Fix dialog layout (member selection panel should take as much space as possible)
...
#KT-7696 In Progress
2015-05-18 21:18:45 +03:00
Alexey Sedunov
d88d7a0ac5
Move: Do not use existing file name when moving its top-level declaration(s)
...
#KT-7697 Fixed
2015-05-18 21:18:44 +03:00
Andrey Breslav
df6c20efa4
KT-7689 Wrong error message format for type of ... doesn't match to the type of overridden var-property
...
#KT-7689 Fixed
2015-05-18 19:26:29 +03:00
Mikhail Glukhikh
fdf0ea5546
Enum warnings fixed: deprecated delimiters, short super constructors, both in project and in libraries
2015-05-18 16:08:16 +03:00
Pavel V. Talanov
268d43d14a
Change ModuleContext#module type to ModuleDescriptor instead of ModuleDescriptorImpl
2015-05-17 18:24:50 +03:00
Pavel V. Talanov
01efbb1502
Introduce ModuleContext, ProjectContext and use it some of the APIs
2015-05-17 18:24:49 +03:00
Pavel V. Talanov
9d22a39924
Refactor: TopDownAnalysisParameters -> TopDownAnalysisMode
...
No longer implements TypeLazinessToken (was unused)
2015-05-17 18:24:49 +03:00
Pavel V. Talanov
d9c70b5927
Drop TopDownAnalysisParameters#isAnalyzingBootstrapLibrary()
2015-05-17 18:24:48 +03:00
Pavel V. Talanov
f9b6c25498
Refactor: TopDownAnalysisParameters doesn't implement GlobalContext
2015-05-17 18:24:47 +03:00
Valentin Kipyatkov
c4b881c458
Fixed test data
2015-05-17 12:32:11 +03:00
Valentin Kipyatkov
e4cf12f93e
Corrected test data to not use obsolete syntax
2015-05-16 17:15:15 +03:00
Valentin Kipyatkov
56c3f7b7db
Minor code corrections on code review
2015-05-16 17:15:13 +03:00
Valentin Kipyatkov
cdf6229fff
KT-7486 Auto import inserts qualified name in companion object
...
#KT-7486 Fixed
2015-05-16 17:15:13 +03:00
Valentin Kipyatkov
60b0236101
Corrected parser: incomplete code should never cause brace disbalance
...
Fixed KT-7539 fq name inserted when completing nested traits name
#KT-7539
2015-05-16 17:15:12 +03:00
Valentin Kipyatkov
c8b1dd6425
Minor code refactoring
2015-05-16 17:15:12 +03:00
Valentin Kipyatkov
7641c3cb84
Moved classes into separate files
2015-05-16 17:15:11 +03:00
Valentin Kipyatkov
858adfb2db
KT-7731 Completion: replacement of call with no parameters with property by Tab
...
#KT-7731 Fixed
2015-05-16 17:15:11 +03:00
Valentin Kipyatkov
8ea0441348
KT-7349 Replace keyword "companion" in completion with "companion object"
2015-05-16 17:15:10 +03:00
Valentin Kipyatkov
db40f1ee5a
More reliable testing of keyword completion (introduced directive "NOTHING_ELSE" instead of "NUMBER")
2015-05-16 17:15:10 +03:00
Valentin Kipyatkov
5807d03a52
Keyword completion: "reified" keyword is now supported
2015-05-16 17:15:09 +03:00
Valentin Kipyatkov
5ecf33c88e
KT-6330 When completion for boolean method/property is finished by typing '!' symbol it should insert selected item with negation
...
#KT-6330 Fixed
2015-05-16 17:15:09 +03:00
Valentin Kipyatkov
892b2b0f83
KT-7195 Smart completion after "return ": the function itself should get smaller priority + declarations in the same file to have higher priority than default-imported
...
#KT-7195 Fixed
2015-05-16 17:15:08 +03:00
Valentin Kipyatkov
09f478fc0f
Fixed duplication of some generic functions in code completion
2015-05-16 17:15:08 +03:00
Valentin Kipyatkov
ce3492f270
KT-6393 Smart completion of anonymous object inserts type with "!" for type parameter
...
#KT-6393 Fixed
2015-05-16 17:09:51 +03:00
Valentin Kipyatkov
833d474876
Smart completion when only named argument possible
2015-05-16 17:09:51 +03:00
Valentin Kipyatkov
67cfd9d516
KT-4909 Smart completion does not work for named arguments
...
KT-7668 Named argument completion does not work after vararg
#KT-4909 Fixed
#KT-7668 Fixed
2015-05-16 17:09:51 +03:00
Valentin Kipyatkov
58ac497bd7
KT-5041 Smart completion for last argument lambda outside parenthesis
...
#KT-5041 Fixed
2015-05-16 17:09:51 +03:00
Valentin Kipyatkov
023c5eabf4
KT-6780 Completion inserts incorrect comma in end of parameter list when lambda parameter exists
...
#KT-6780 Fixed
2015-05-16 17:09:51 +03:00
Valentin Kipyatkov
a036a6435b
Fixed not working item in completion list for infix call
2015-05-16 17:09:51 +03:00
Valentin Kipyatkov
2adf0a3e9a
KT-4908 Smart completion does not work for arguments of function with vararg
...
#KT-4908 Fixed
2015-05-16 17:09:50 +03:00
Valentin Kipyatkov
4c315b6219
KT-7452 Code completion does not honor smart casts for 'this'
...
#KT-7452 Fixed
2015-05-16 17:09:50 +03:00
Dmitry Jemerov
dc9523016a
report 'trait' keyword as deprecated, provide quickfix for replacing with 'interface'
2015-05-15 18:20:39 +02:00
Mikhail Glukhikh
983339e1c9
Detection of semicolon between enum entries together with the correct delimiter quick fix for this case.
...
Error message reported directly on semicolon.
2015-05-15 16:13:41 +03:00
Mikhail Glukhikh
edd269f5ff
Quick fix for enum entry delimiter syntax fix, together with a set of tests.
...
Possible NPE in getNextSiblingIgnoringWhitespace fixed. Some warnings also removed.
Last comma is replaced by semicolon. Comments are taken into account.
2015-05-15 16:13:39 +03:00
Mikhail Glukhikh
da3d083dc0
Quick fix for enum entry super constructor syntax fix, together with a set of tests
2015-05-15 16:13:36 +03:00
Mikhail Glukhikh
147bca3d22
Enum deprecated syntax detection implemented and integrated into DeclarationsChecker.
...
A lot of tests was changed to refactor deprecated syntax. Six new tests were added to check deprecated syntax detection.
Diagnostic for "enum entry uses deprecated super constructor": constructor is highlighted
Diagnostic for "enum entry uses deprecated or no delimiter".
One warning removed.
2015-05-15 16:13:34 +03:00
Mikhail Glukhikh
1a312140e9
New enum syntax: Short constructor syntax introduced for entries, optional commas between entries, semicolon after entries. #KT-7605 Fixed.
...
Grammar changed accordingly.
Semicolons prohibited after an entry except the last one.
Only one initializer is allowed per entry.
EnumReferenceExpression AST node introduced.
Some tests fixed, a pair of new tests written. Kotlin code inside project fixed.
Formatter and intendation tests fixed accordingly.
Stub version is incremented.
2015-05-15 16:13:32 +03:00
Mikhail Glukhikh
67cce57aeb
Decompiler & stub builder fixed accordingly with new enum syntax.
...
Companion object now directly follows enum entries to avoid having them at the middle.
Some decompiler & stub builder tests fixed accordingly.
2015-05-15 16:13:29 +03:00
Mikhail Glukhikh
cf741cb868
Enum parsing changed: first entries, then members. Grammar fixed accordingly.
...
A set of compiler tests and some plugin tests changed accordingly.
Compiler Kotlin code changed accordingly.
2015-05-15 16:13:27 +03:00
Nikolay Krasko
6b64ae77f3
Test light classes from sources have priority over decompiled light classes
2015-05-15 15:29:31 +03:00
Natalia Ukhorskaya
b6e885ba84
Minor: rename
2015-05-15 13:22:50 +03:00
Natalia Ukhorskaya
b9a45172c8
refactoring: do not create dialog in ChangeSignatureTests
2015-05-15 13:09:17 +03:00
Evgeny Gerashchenko
a93cc083d6
Don't try to find local descriptors in decompiled classes.
2015-05-14 21:51:08 +03:00
Evgeny Gerashchenko
533935f2c0
KT-7472 function of anonymous class is never used
...
#KT-7472 fixed
2015-05-14 21:51:07 +03:00