Valentin Kipyatkov
3fad68ad4c
Completion: no "else" in first when entry
2015-04-13 14:30:03 +03:00
Valentin Kipyatkov
3faf6cc3e8
Correct value passed as containingDeclarationOrModule to SmartCastUtils
2015-04-13 14:30:02 +03:00
Valentin Kipyatkov
33f119a65a
Renamed "containingDeclaration" parameters to "containingDeclarationOrModule" to make it more clear that we can pass ModuleDescriptor instead of precise containing declaration
2015-04-13 14:30:02 +03:00
Valentin Kipyatkov
f73a41aa15
Completion should not generate deprecated lambda syntax
2015-04-13 14:30:02 +03:00
Valentin Kipyatkov
723bf0ecf9
Minor
2015-04-13 14:30:02 +03:00
Valentin Kipyatkov
5954307147
Fixed KT-7308 Exception on completion inside anonymous object
...
#KT-7308 Fixed
2015-04-13 14:30:02 +03:00
Valentin Kipyatkov
8b5be4febc
Minor
2015-04-13 13:41:44 +03:00
Valentin Kipyatkov
f02e2b3ed6
Corrected generated tests after rebase
2015-04-13 13:41:44 +03:00
Valentin Kipyatkov
03270af430
Added scrollbar
2015-04-13 13:41:43 +03:00
Valentin Kipyatkov
066a7c3002
Code style setting for packages to always use star imports and UI for it
2015-04-13 13:41:43 +03:00
Valentin Kipyatkov
1a54886720
Basic UI for import code style settings
2015-04-13 13:41:43 +03:00
Valentin Kipyatkov
a8d737bf87
One more test for import nested classes setting
2015-04-13 13:41:43 +03:00
Valentin Kipyatkov
04b2bdcc79
Added test for "import packages" code style setting
2015-04-13 13:41:43 +03:00
Valentin Kipyatkov
0f9858bb75
Code style setting to import nested classes
2015-04-13 13:41:43 +03:00
Nikolay Krasko
be896b7d8e
Fix test data: non-inherited elements are shown in file structure popup
2015-04-13 13:03:02 +03:00
Nikolay Krasko
b359cd2af0
Update to idea 141.588.1
2015-04-13 13:03:00 +03:00
Valentin Kipyatkov
965f3da2b1
Fixed bug with bad conversion on paste when top-level java class copied
2015-04-13 11:05:31 +03:00
Alexey Sedunov
aff17a9fa1
Introduce Parameter: Implement dialog advertisement and switch
2015-04-10 21:57:10 +03:00
Alexey Sedunov
f038a2d1d8
In-place Introduce: Track active instance of KotlinInplaceVariableIntroducer
2015-04-10 21:57:09 +03:00
Alexey Sedunov
68a5b05af9
Introduce Parameter: Implement dialog UI
2015-04-10 21:57:08 +03:00
Alexey Sedunov
da14222c4a
Introduce Parameter: Do not apply to expressions of type Unit or Nothing
2015-04-10 21:57:07 +03:00
Alexey Sedunov
54392e7064
Minor: Fix refactoring name
2015-04-10 21:57:06 +03:00
Alexander Udalov
92fa107471
Delete three diagnostic tests which rendered parts of JRE
...
- PackageLocalClassNotImportedWithDefaultImport.kt goes to codegen multi-file
tests. File in java.lang moved to kotlin.jvm, which seems irrelevant to the
test, because java.lang is prohibited by the VM
- MergePackagesWithJava.kt (KT-689, Java and Kotlin in the same package) and
kt955.kt (Unable to import from default package) are considered too obsolete
to even test and are thus deleted
Also check that there's no more than 1000 lines in the .txt file in diagnostic
tests.
2015-04-10 20:35:18 +03:00
Alexander Udalov
94df191f86
Regenerate tests
2015-04-10 20:26:34 +03:00
Alexander Udalov
69e7a25b08
Drop InnerTestClasses annotation, use Java reflection
2015-04-10 20:26:33 +03:00
Alexander Udalov
5c06204658
Move ExpectLoadError from tests to testData
...
To avoid loading all sources under "compiler/tests" in each test. Saves about
20-25% when running LoadJavaTestGenerated
2015-04-10 20:26:33 +03:00
Ilya Gorbunov
845d755fdd
Make Char-related constants to be properties in Char companion object.
2015-04-10 15:22:02 +03:00
Alexander Udalov
646e81bc61
Regenerate tests
2015-04-10 12:34:31 +03:00
Alexander Udalov
b2e0eda953
Include protobuf to kotlin-for-upsource.jar
2015-04-10 12:32:46 +03:00
Michael Bogdanov
67c2f7105b
Fix for KT-6863: Internal compiler error folding functions
...
#KT-6863 Fixed
2015-04-10 08:59:27 +03:00
Michael Bogdanov
a24d845bd0
Test for KT-7009: VerifyError: Bad type on operand stack in daload
...
#KT-7009 Obsolete
2015-04-10 08:59:27 +03:00
Michael Bogdanov
824d1ac556
Fix for KT-7306: Implicit array conversions cause ClassCastException at runtime
...
#KT-7306 Fixed
2015-04-10 08:59:26 +03:00
Alexander Udalov
405038b2d8
Change sources of kotlin-runtime project library
...
Use sources from the project instead of ones in kotlin-runtime-sources.jar.
This is not very accurate, but fixes the problem with debugging anything from
'core' in the project (sources from the project were clashing with the sources
from the library)
2015-04-09 19:46:49 +03:00
Alexander Udalov
6182b3ff5c
Prohibit Array::class, require type arguments for reified parameters
2015-04-09 19:46:47 +03:00
Valentin Kipyatkov
a0d2b00287
Code corrections on code review
2015-04-09 19:09:09 +03:00
Valentin Kipyatkov
498f24b98b
KT-7291 Copy/paste of java declaration with preceding comment omitted does not convert it to Kotlin propertly
...
#KT-7291 Fixed
2015-04-09 19:09:09 +03:00
Valentin Kipyatkov
bfadd489a3
Imports on paste tests: generate result if does not exist and use default target file text
2015-04-09 19:09:09 +03:00
Valentin Kipyatkov
c5a785577b
Imports on paste: code refactoring
2015-04-09 19:09:09 +03:00
Valentin Kipyatkov
4a3592be50
Imports on paste: don't try to import symbols not visible from current module
2015-04-09 19:09:09 +03:00
Valentin Kipyatkov
ea7732883e
Tests: use errors dump instead of ALLOW_UNRESOLVED_REFERENCE
2015-04-09 19:09:08 +03:00
Valentin Kipyatkov
84a6f72ab3
Imports on paste: fixed overloaded extensions import
2015-04-09 19:09:08 +03:00
Valentin Kipyatkov
8d31a5c3a6
Imports on paste: do not suggest to import already imported extensions
2015-04-09 19:09:08 +03:00
Valentin Kipyatkov
0abc912208
Test to generate expected output if absent
2015-04-09 19:09:08 +03:00
Valentin Kipyatkov
93f1210f25
Imports on paste: added checking of symbols to import into test + fixed bug on copy/paste import/package directive
2015-04-09 19:09:08 +03:00
Valentin Kipyatkov
11380358ee
Converted to Kotlin
2015-04-09 19:09:08 +03:00
Valentin Kipyatkov
fe14107848
More simple code doing the same
2015-04-09 19:09:07 +03:00
Valentin Kipyatkov
f6e363abb8
J2K: replace overloads with optional parameters not only for constructors but for methods too
2015-04-09 19:09:07 +03:00
Valentin Kipyatkov
ff4ff78307
Use of Kotlin wrapper methods instead of Application.runReadAction/runWriteAction and CommandProcessor.executeCommand
2015-04-09 19:09:07 +03:00
Valentin Kipyatkov
00660bc59e
No explicit runReadAction needed
2015-04-09 19:09:07 +03:00
Valentin Kipyatkov
2440371cd9
Refactored code
2015-04-09 19:09:07 +03:00