Commit Graph

18449 Commits

Author SHA1 Message Date
Alexey Sedunov 2f98af1a8e Callable Builder: Do not skip unused type parameters 2014-11-10 21:10:35 +03:00
Alexey Sedunov 88dcd858a6 CallableBuilder: Add option to suppress substitution 2014-11-10 21:10:33 +03:00
Alexey Sedunov 59e4325fc0 Move JetCodeFragment-related logic to JetIntentionActionsFactory 2014-11-10 21:10:33 +03:00
Alexey Sedunov 850f1ebccd JetIntentionActionsFactory, JetSingleIntentionActionFactory: Translate to Kotlin 2014-11-10 21:10:31 +03:00
Alexey Sedunov aa2c10446b JetIntentionActionsFactory, JetSingleIntentionActionFactory: Rename to .kt 2014-11-10 21:10:30 +03:00
Alexey Sedunov 42a74f55da Create From Usage: Remove "from usage" words from action text 2014-11-10 21:10:29 +03:00
Alexey Sedunov d343bb4dc3 Move declaration: Create new file when needed 2014-11-10 21:10:27 +03:00
Andrey Breslav 74ec7728c8 Actually create .kt files in the file system for Kotlin multifile tests 2014-11-10 18:38:48 +02:00
Andrey Breslav 993c6d82c2 Minor. Formatting 2014-11-10 17:24:08 +02:00
Andrey Breslav 8dcd81e0b3 KT-6178 False "Overriden methods are not annotated" when using delegation
#KT-6178 Fixed
2014-11-10 17:24:07 +02:00
Andrey Breslav 586b7e3dee Base class for multi-file tests extracted 2014-11-10 17:24:06 +02:00
Andrey Breslav f16dcdd8a9 Do not annotate Kotlin members returning platform types as @Nullable
This leads to pointless warning in Java code
2014-11-10 17:24:06 +02:00
Andrey Breslav 19afb2fcb8 Make candidate resolver force-resolve type arguments on argument count mismatch 2014-11-10 17:24:05 +02:00
Andrey Breslav 4892369cf4 Diagnostic tests are logging their lazy activity 2014-11-10 17:24:04 +02:00
Andrey Breslav 8436147cec KT-1056 Don't allow passing type arguments to T
#KT-1056 Fixed
2014-11-10 17:23:58 +02:00
Andrey Breslav 35766dfa20 Additional/forced resolve for lazy types 2014-11-10 17:23:58 +02:00
Andrey Breslav 7d9be42969 LazinessTokens introduced to enable/disable building lazy types 2014-11-08 15:51:41 +02:00
Andrey Breslav 2334bf4c70 Resolution of type constructors in TypeResolver is now lazy (for types in declarations) 2014-11-08 15:51:41 +02:00
Andrey Breslav adafd70730 Abstract lazy type moved to descriptors 2014-11-08 15:51:41 +02:00
Andrey Breslav 266262df68 TypeResolver converted to Kotlin 2014-11-08 15:51:40 +02:00
Andrey Breslav ccc489abfd Inter-field dependencies fixed for fields used as context
The problem was that when GivenExpression was used to initialize a feld, the generator did not know that there's
a dependency on the receiver of the call inside the expression, so it could place the call before the initialization of the receiver,
 which caused a compilation error. Now dependencies are tracked explicitly
2014-11-08 15:51:40 +02:00
Svetlana Isakova fad4261448 KT-6132 No smart completion for argument of java static method
#KT-6132 Fixed
2014-11-08 10:36:25 +03:00
Valentin Kipyatkov d4275e1110 Added test for KT-6132 2014-11-08 10:36:25 +03:00
Svetlana Isakova de6cdf19ac Improved assert error message 2014-11-08 10:36:24 +03:00
Zalim Bashorov ab8979c614 Revert "Workaround for bootstrapping with changes in kotlin2js ant task and cli compiler."
This reverts commit a5b928782b.
2014-11-07 19:53:03 +03:00
Natalia Ukhorskaya 42257218b6 Fix tests after adding lineNumber for functions without return expression 2014-11-07 17:18:02 +03:00
Denis Mekhanikov 323df9498a stdlib: fix DropStream & TakeStream mutliple iteration 2014-11-07 17:14:58 +03:00
Denis Mekhanikov 80493aa4e6 stdlib: improve tests 2014-11-07 17:14:57 +03:00
Denis Mekhanikov 495967a573 stdlib: fix documentation for some IO functions 2014-11-07 17:14:57 +03:00
Denis Mekhanikov 23397d17dc stdlib: simplify File.recurse and File.extension functions 2014-11-07 17:14:56 +03:00
Denis Mekhanikov 1a4c11cb98 stdlib: rearrange IO functions 2014-11-07 17:14:56 +03:00
Zalim Bashorov 3e7b0be68d K2JS: test that UNUSED_PARAM warnings inside native declarations and all warnings from stdlib was suppressed. 2014-11-07 16:30:52 +03:00
Zalim Bashorov a5b928782b Workaround for bootstrapping with changes in kotlin2js ant task and cli compiler. 2014-11-07 16:30:52 +03:00
Zalim Bashorov adab0445de K2JS: introduce "no-stdlb" parameter and use stdlib from compiler by default. 2014-11-07 16:30:52 +03:00
Zalim Bashorov e457eea438 Use JarFileSystem for collect kotlin files inside archive instead of own implementation. 2014-11-07 16:30:52 +03:00
Zalim Bashorov aecd2be25e Introduce constant for "kt". 2014-11-07 16:30:51 +03:00
Zalim Bashorov ab5d34c373 Reset extensions cache in DiagnosticsWithSuppression when Application changed(that hepens in tests). 2014-11-07 16:30:51 +03:00
Zalim Bashorov b3defdbf90 JS tests: create JetFiles by JetPsiFactory instead of by PsiManager to avoid to access to PsiManager after it disposed.
That fixed js tests after changes in DiagnosticsWithSuppression.
2014-11-07 16:30:51 +03:00
Zalim Bashorov 38d5f2ee2b Extract the suppressing logic for debugger. 2014-11-07 16:30:51 +03:00
Zalim Bashorov cd20301283 JS frontend: suppress warnings from stdlib. 2014-11-07 16:30:51 +03:00
Zalim Bashorov c8556ec1f7 JS frontend: suppress UNUSED_PARAM for native declarations.
#KT-2141 Fixed
2014-11-07 16:30:51 +03:00
Zalim Bashorov 624f5c4c34 Minor: moved test for check the iterating over String to common place.
#KT-3617 Fixed
2014-11-07 16:30:50 +03:00
Alexander Udalov 70d0c2ff92 Generate generic signature to collection method stubs
#KT-6213 Fixed
2014-11-07 16:10:12 +03:00
Natalia Ukhorskaya d4b0977381 Debugger: stop at closing bracket for functions without return statement 2014-11-07 15:10:41 +03:00
Evgeny Gerashchenko 878aac1acb Fixed test on Windows (slashes issue). 2014-11-07 14:52:40 +03:00
Evgeny Gerashchenko d72f31de61 Updating Java mappings only for incremental mode.
Avoiding executing this code on TeamCity, which fails on TeamCity 8.x
2014-11-07 14:52:05 +03:00
Evgeny Gerashchenko fe2d54dc5d Correct checking for action availability. 2014-11-07 14:52:05 +03:00
Evgeny Gerashchenko e51296b047 Extracted function which creates compiler environment. 2014-11-07 14:52:04 +03:00
Evgeny Gerashchenko a840e4d122 Extracted functions which update incremental caches, etc 2014-11-07 14:52:04 +03:00
Evgeny Gerashchenko a797f82ce2 Extracted methods compiling to JS and JVM in KotlinBuilder. 2014-11-07 14:52:03 +03:00