Commit Graph

22533 Commits

Author SHA1 Message Date
Alexey Sedunov fa03e4e76c Move: Implement "Update package directive" option 2015-05-18 21:18:56 +03:00
Alexey Sedunov d88e01e770 Convert to Kotlin: KotlinMoveFilesOrDirectoriesHandler.kt 2015-05-18 21:18:55 +03:00
Alexey Sedunov e854da386d Convert to Kotlin: Rename KotlinMoveFilesOrDirectoriesHandler.java -> .kt 2015-05-18 21:18:54 +03:00
Alexey Sedunov c34ba01513 Move: Place "Destination directory" panel under "To Package" option. Fix panel title. Add missing mnemonics 2015-05-18 21:18:54 +03:00
Alexey Sedunov 7bc5ec04c7 Move: Suggest deleting file when all declarations are moved 2015-05-18 21:18:53 +03:00
Alexey Sedunov 6c4b895f72 Move: Do not search/process usages if package is not changed 2015-05-18 21:18:52 +03:00
Alexey Sedunov da6b8b75ea Move File/Change Package: Change package directive prior to processing of internal usages (otherwise some necessary imports are not added) 2015-05-18 21:18:51 +03:00
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
Sergey Mashkov 72238c4d39 Maven: maven annotations is required in compile time in some cases 2015-05-18 19:59:55 +03:00
Mikhail Glukhikh 0d7f649cc2 Implementation of exhaustive whens in control flow analysis.
Now control flow analyzer knows when is exhaustive.
If despite of this all conditions are accidentally false, jump to error is generated.
A set of tests (diagnostic, control flow). #KT-5113 Fixed. #KT-6046 Fixed. #KT-1882 Fixed.
2015-05-18 19:44:29 +03:00
Mikhail Glukhikh c4aa6d01a9 Exhaustive when on boolean argument. A set of tests.
Compile-time constants are taken into account. #KT-3743 Fixed.
2015-05-18 19:44:22 +03:00
Mikhail Glukhikh 633b252ff5 Unnecessary comment removed 2015-05-18 19:43:02 +03:00
Sergey Mashkov 42662d7349 JS: example project to produce full artifacts set: production+test sources jar, production+test binary jar 2015-05-18 19:36:19 +03:00
Sergey Mashkov d04ec74217 Maven: use maven-annotations in kotlin-maven-plugin 2015-05-18 19:36:19 +03:00
Sergey Mashkov 35ed682714 Maven: Introduce test-js goal
#KT-7757 Fixed Maven K2JS should be able to build tests too
2015-05-18 19:36:18 +03:00
Sergey Mashkov b25ae3d7dd JS stdlib-gen shouldn't call outdated codegen 2015-05-18 19:35:48 +03:00
Sergey Mashkov 606ea7bb70 Do not pass non-existing source roots to the compiler
#KT-3679 Fixed Maven build fails when some source directories don't exist
2015-05-18 19:27:35 +03:00
Sergey Mashkov 0578f44fd0 Maven: don't scan target directories for annotations in multimodule project
#KT-7187 Fixed Maven K2JVM compiler scanning for annotations
2015-05-18 19:27:35 +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 5c3d8c1616 Update api usages in NoInternalVisibilityInStdLibTest
Broken by 01efbb1502
2015-05-18 16:01:31 +03:00
Michael Bogdanov 58183731f5 Test for obsolete KT-5448: VerifyError with mismatched stack types
#KT-5448 Obsolete
2015-05-18 15:28:58 +03:00
Michael Bogdanov 5cb9671803 Support inlining in scripts and outer expression capturing
#KT-7744 Fixed
2015-05-18 14:47:57 +03:00
Michael Bogdanov 226350b4ba Test data fixed: replace trait with interface 2015-05-18 11:57:39 +03:00
Pavel V. Talanov 119ffd2347 Minor: replace obsolete trait keyword in newly added test 2015-05-17 18:24:50 +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
Ilya Gorbunov f18b9caa8d JS: Provide MIN_VALUE and MAX_VALUE member constants for Int, Long, Short and Byte companion objects.
JVM: Make MIN_VALUE and MAX_VALUE not an extension but member constant properties of Int, Long, Short and Byte companion objects.
2015-05-17 17:26:25 +03:00
Valentin Kipyatkov c4b881c458 Fixed test data 2015-05-17 12:32:11 +03:00
Valentin Kipyatkov 617fe9b49d No duplicate "Expecting ')'" when parsing accessor 2015-05-16 17:15:16 +03:00
Valentin Kipyatkov 00fbf41bd8 More correct recovery after '.' in user type 2015-05-16 17:15:15 +03:00
Valentin Kipyatkov e4cf12f93e Corrected test data to not use obsolete syntax 2015-05-16 17:15:15 +03:00
Valentin Kipyatkov a05ffafc84 Added a test 2015-05-16 17:15:14 +03:00
Valentin Kipyatkov c94dc6d5f7 Better parsing of block after missing "->" after "else" in when 2015-05-16 17:15:14 +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