Commit Graph

18460 Commits

Author SHA1 Message Date
Michael Nedzelsky 5f576c4c05 JS backend: test for toGenerator from stdlib 2014-11-11 17:08:56 +03:00
Alexey Sedunov afeb03f383 Create From Usage: Create class by annotation entry/super-call delegation specifier 2014-11-11 14:42:48 +03:00
Alexey Sedunov 1b1eb10979 Create From Usage: Create class by constructor call 2014-11-11 14:42:45 +03:00
Alexey Sedunov b8f68acdbb Create From Usage: Create class by reference expression 2014-11-11 14:42:42 +03:00
Alexey Sedunov 1f14d93412 Create From Usage: Create class by type reference 2014-11-11 14:42:39 +03:00
Alexey Sedunov a76607beca Callable Builder: Support class generation 2014-11-11 14:42:37 +03:00
Alexey Sedunov aaf4283531 JetTypeParameterListOwner: Add getTypeParameterList() and getTypeConstraintList() methods 2014-11-11 14:42:34 +03:00
Alexey Sedunov 7123ca8ea0 Name suggester: Respect type parameter name when suggesting name for
variables based on that type parameter
2014-11-10 21:10:39 +03:00
Alexey Sedunov f81c2d5ff7 Name suggester: Improve name suggestion strategy for type parameters 2014-11-10 21:10:37 +03:00
Alexey Sedunov 7cb77314bc Callable Builder: Allow to forbid substitution for any TypeInfo 2014-11-10 21:10:37 +03:00
Alexey Sedunov 538248cafa Callable Builder: Do not skip unused type parameters 2014-11-10 21:10:35 +03:00
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