Commit Graph

8559 Commits

Author SHA1 Message Date
Andrey Breslav ef403cc91a Alternative methods for progress reporting 2012-11-13 13:45:45 +04:00
Andrey Breslav 1e3b334f15 Source files made available where "emitting" is reported 2012-11-13 13:45:45 +04:00
Andrey Breslav cca21e96c1 Progress class moved to jvm backend 2012-11-13 13:45:44 +04:00
Evgeny Gerashchenko 3fce07b83a Arranged generator classes into packages to make it possible to compile GenerateInjectors separately. 2012-11-12 20:40:23 +04:00
Evgeny Gerashchenko 4916921849 Moved & renamed GenerateTuplesAndFunctions. 2012-11-12 20:01:06 +04:00
Evgeny Gerashchenko 666aecf716 Extracted generator of ranges into GenerateRanges class. 2012-11-12 19:54:23 +04:00
Evgeny Gerashchenko 97d749f361 Made GenerateTests even more compact! 2012-11-12 19:54:22 +04:00
Evgeny Gerashchenko 799a986812 Renamed *.jet to *.kt in test data of JetPsiCheckerTest. 2012-11-12 19:54:22 +04:00
Evgeny Gerashchenko 8d7e79c806 Renamed & moved AllInjectorsGenerator. 2012-11-12 19:54:22 +04:00
Evgeny Gerashchenko 47dd399cdd Regenerated tests. 2012-11-12 19:54:22 +04:00
Evgeny Gerashchenko 7b677d7ff1 Moved test generating code into TestsGenerator, got rid of duplicates. 2012-11-12 18:30:50 +04:00
Evgeny Gerashchenko cdc96225d0 Introduced simplest GenerateTests. 2012-11-12 18:30:50 +04:00
Svetlana Isakova 2f77202d29 Refactoring: change signature 2012-11-12 15:32:12 +04:00
Svetlana Isakova 82e9d1f4fa logic for fake value arguments creation
moved to 'resolveFakeCall' method
2012-11-12 15:32:12 +04:00
Svetlana Isakova 32391e217a 'resolveExactSignature' removed 2012-11-12 15:32:12 +04:00
Svetlana Isakova a90db452ff resolveFakeCall instead of resolveExactSignature
usage changed in tests
2012-11-12 15:32:12 +04:00
Svetlana Isakova e9c8be8449 complete type inference only for one candidate
(the most specific)
to avoid exponential resolve of value arguments for several candidates
where type inference is incomplete (or depends on expected type)
2012-11-12 15:32:11 +04:00
Svetlana Isakova dda3091dfb 'CANNOT_COMPLETE_RESOLVE' error added 2012-11-12 15:32:11 +04:00
Svetlana Isakova eb5b551114 'moreSpecific' fix
if both functions are generic, no need to check receiver and parameters
before recursive call with substituted bounds
2012-11-12 15:32:11 +04:00
Svetlana Isakova e7750c6dc7 OverloadingConflictResolver made singleton 2012-11-12 15:32:11 +04:00
Svetlana Isakova adcb9e6e8a moved code for successful / failed candidates separation
to ResolutionResultsHandler
2012-11-12 15:32:11 +04:00
Svetlana Isakova a6f437d363 removed ResolutionStatus.TYPE_INFERENCE_ERROR constant 2012-11-12 15:32:11 +04:00
Natalia.Ukhorskaya b5a3486131 Back-end: correct indexes of local variables for double and long
#KT-3033 Fixed
2012-11-12 15:03:54 +04:00
Natalia.Ukhorskaya 94fbf2bdf4 Add labels for extension properties
#KT-2824 Fixed
2012-11-12 13:23:00 +04:00
Andrey Breslav d4212ecdfc Ignoring proguard errors from xstream 2012-11-12 13:10:52 +04:00
Andrey Breslav b4907efd80 Updating to IDEA public preview 122.746 2012-11-12 12:52:27 +04:00
Andrey Breslav 8fc46680d6 Usinf io.File instead of concatenating paths 2012-11-12 11:55:19 +04:00
Andrey Breslav 9619de2060 Module script generator fixed
It used to put system-dependent paths into script files, which resulted in syntactically incorrect string literals on Windows:
 sources += "C:\foo.kt" // \f is wrong here

 Solution: convert paths to system-independent form (forward slashes)
2012-11-12 11:54:45 +04:00
Andrey Breslav d6c8b8683b Failed test toutput improved 2012-11-12 11:52:59 +04:00
Andrey Breslav 57120e6d5c Migrating script generation onto java.io.File 2012-11-09 21:56:32 +04:00
Andrey Breslav 0b6b8873b9 Module names in exception messages 2012-11-09 21:56:32 +04:00
Andrey Breslav 8920920686 Helper method 2012-11-09 21:56:32 +04:00
Andrey Breslav c01587a0b1 Common functionality factored out of OutputItemsCollectorImpl
To be re-used by external build
2012-11-09 21:56:31 +04:00
Andrey Breslav e2d504c78e Report raw paths, not URLs, convert when needed 2012-11-09 21:56:31 +04:00
Andrey Breslav 3d394cc49b The code that executes the KotlinToJVM compiler moved to an independent module
To be re-used by external build
2012-11-09 21:56:31 +04:00
Andrey Breslav e9e9ebba9c Exceptions are reported through message collector
This will later allow us to move this code to a separate module, where loggers are not available
2012-11-09 21:56:30 +04:00
Andrey Breslav 4926dd7189 Code that runs the compiler is migrated onto MessageCollector
CompilerEnvironment migrated to use io.Files instead of VirtualFiles

This prepares the move of this code to the separate module, to be re-used by external build
2012-11-09 21:56:30 +04:00
Andrey Breslav 2584ba5246 Module script generation moved to a separate module
To be re-used by the external build later
2012-11-09 21:56:30 +04:00
Andrey Breslav 32745f1202 cli-common module extracted, to be used by the compiler-runner module 2012-11-09 21:56:29 +04:00
Andrey Breslav 3a96559ce2 TipsManager moved to idea module 2012-11-09 21:56:29 +04:00
Nikolay Krasko 0b33bf5ff6 Merge pull request #140 from crazyproger/KT-1985
KT-1985 Creating class body in time of override/implement, if necessary
2012-11-09 08:52:44 -08:00
Nikolay Krasko aca747390b KT-2849 Object that are not imported do not show up in completion
#KT-2849 Fixed
2012-11-09 14:49:28 +04:00
Nikolay Krasko cb602496e3 Index for top level objects 2012-11-09 14:49:27 +04:00
Nikolay Krasko 5cf708d056 Don't insert fqn even if current element is resolved into constructor 2012-11-09 14:49:26 +04:00
Nikolay Krasko dc5402337a KT-2796 Variable name is not completed in the receiver position of a chained call
#KT-2796 Fixed
2012-11-09 14:49:26 +04:00
Nikolay Krasko 91f7a094fe KT-1931 Duplicate class from Kotlin runtime in completion
#KT-1931 Fixed
2012-11-09 14:49:25 +04:00
Nikolay Krasko 8bb6b651b0 Fix bug - search in classDescriptorCache with javaClassToKotlinFqName 2012-11-09 14:49:24 +04:00
Nikolay Krasko c081ced616 KT-2499 If Java class is imported, it is visible in completion three times: as Java class, Kotlin class and package
- Add java trace into delegation for lazy resolve session
 #KT-2499 Fixed
2012-11-09 14:49:23 +04:00
Vladimir Rudev 2dd47d6339 KT-1985 Add test case and fix minor bug
Reference compacting must be done before adding body to class.
2012-11-08 23:23:49 +04:00
Evgeny Gerashchenko b88336d663 Added detailed comments for submethods of isTypeErased() and buildDeepSubstitutionMultimap() 2012-11-08 22:02:52 +04:00