Commit Graph

12072 Commits

Author SHA1 Message Date
Mikhael Bogdanov 7520ff1420 KT-3308: Support local generic functions in codegen
#KT-3308 Fixed
2013-09-24 12:59:57 +04:00
Nikolay Krasko 46fec74797 Add task for downloading continuous idea build by id and version number 2013-09-23 15:31:06 +04:00
Nikolay Krasko 5aacf8f2b3 Merge pull request #306 from nskvortsov/master
Fix std lib generators: allow executing from command line.
2013-09-23 03:24:34 -07:00
Zalim Bashorov 24fde7110b J2K: reverted temporary fix after update to IDEA 132.325 EAP -- removed JavaToKotlinTranslator#NEVER_CHANGE. 2013-09-23 13:38:13 +04:00
Nikita Skvortsov aaf31945de Fix std lib generator: allow executing from command line. 2013-09-22 11:41:07 +04:00
Erokhin Stanislav dae791d7b1 JS backend: refactoring: extract CallArgumentTranslator from AbstractCallExpressionTranslator and CallExpressionTranslator 2013-09-20 21:22:54 +04:00
Erokhin Stanislav 0e6d9e857c JS backend: fix is for trait. #KT-3519 fixed 2013-09-20 21:21:39 +04:00
Erokhin Stanislav 649318a6c6 JS backend: drop Kotlin.keys 2013-09-20 21:07:34 +04:00
Erokhin Stanislav bdb338a271 JS backend: fix class object access A.object$() -> A.object 2013-09-20 21:07:34 +04:00
Erokhin Stanislav 9654bd9bc8 JS backend: fix inheritance from native class & remove createConstructor() function from stdLib 2013-09-20 21:07:27 +04:00
Erokhin Stanislav 571bcf63dc JS backend: remove RegressionMergeEcmaTest 2013-09-20 20:10:19 +04:00
Alexander Udalov 6f5cd974a3 Remove unneeded dependencies on 'frontend'
Move the two needed in 'descriptor.loader.java' classes to 'descriptors'
2013-09-20 18:02:13 +04:00
Alexander Udalov d6f656cc5d Fix library sources in .idea project 2013-09-20 18:02:12 +04:00
Alexander Udalov ae914efc12 Remove unneeded dependency of 'descriptors' on 'javax.inject'
ModuleDescriptorImpl.setModuleConfiguration is only called manually, never by
injectors
2013-09-20 18:02:12 +04:00
develar f4575b8c85 JS: report stack trace when test failed
(cherry picked from commit 70004ed)
2013-09-20 17:21:15 +04:00
develar 0182ec280a JS lib: made error message more understandable when module already defined.
(cherry picked from commit 28c8404)
2013-09-20 17:21:15 +04:00
Zalim Bashorov d4924b58b1 JS backend: generate sourcemap in IDEA every time. 2013-09-20 17:21:15 +04:00
develar cee4668e47 JS backend: don't add file:// prefix to sourcemap url.
Use name of generated source map file instead of absolute path.

(cherry picked from commit 126e977 and ec2fc20)
2013-09-20 17:21:15 +04:00
develar 6878a0b657 JS backend: added source mapping for some expressions.
(cherry picked from commit a35fe5a)
2013-09-20 17:21:14 +04:00
Zalim Bashorov 619e9758c8 JS backend: minor refactoring for LibrarySourcesConfig. 2013-09-20 17:21:14 +04:00
develar da68540ade JS backend: LibrarySourcesConfig accepts source dir as source.
Idea send files in any case, but for easy debug run configurations we want to specify only source dir.

(cherry picked from commit e194435)
2013-09-20 17:21:14 +04:00
develar 6c40cf371e JS backend: update dart-ast.jar.
(cherry picked from commit 1cc7586)
2013-09-20 17:21:14 +04:00
develar 711aee6026 JS backend: added replacer and space parameters to JSON.stringify
#KT-2983 in progress

(cherry picked from commit 058b147)
2013-09-20 17:21:14 +04:00
develar 1462e5cb7f JS backend: cleanup JsFor creation. Added source map for "for, while, break, continue, try".
#KT-927 in progress

(cherry picked from commit 4533f64)
2013-09-20 17:21:13 +04:00
develar 67592829b6 JS backend: translate labeled for expressions.
#KT-2986 fixed

(cherry picked from commit b0836a6)
2013-09-20 17:21:13 +04:00
develar 764b5c5a90 JS backend: use generated code(org.w3c.*) for browser API.
#KT-2983 in progress

(cherry picked from commit 8b839a9)
2013-09-20 17:21:13 +04:00
Natalia.Ukhorskaya f34003deac Fix exception when there is a non-configured library 2013-09-20 17:10:23 +04:00
Natalia.Ukhorskaya 9cbe0ef8c5 Fix absent UnsupportedAbiVersionNotification 2013-09-20 17:10:21 +04:00
Natalia.Ukhorskaya 9874eb67ba Updated to IDEA 132.325 EAP 2013-09-20 16:04:10 +04:00
Natalia.Ukhorskaya 5021bf3cd7 Fix line separators 2013-09-20 16:04:09 +04:00
Natalia.Ukhorskaya b0236b2dc3 Fix lexical mismatch 2013-09-19 17:55:23 +04:00
Alexey Sedunov ecab2a2039 Implement extension of method usages search to cover usages of overriding functions in Kotlin 2013-09-19 16:01:31 +04:00
Mikhael Bogdanov fc1c3a2e23 KT-3978: Kotlin: [Internal Error] org.jetbrains.jet.codegen.CompilationException: Back-end (JVM) Internal error: null
#KT-3978 Fixed
2013-09-19 15:40:28 +04:00
Mikhael Bogdanov 0486e6cf4c Substitute CALLABLE_REFERENCE slice with FUNCTION one 2013-09-19 15:11:52 +04:00
Mikhael Bogdanov 59c04bd4cf Do direct call to local functions, inplace closures, and callable references (not via bridge method) 2013-09-19 15:11:49 +04:00
Zalim Bashorov ebecc7b8ac J2K: Convert a Java code from clipboard only when paste it (to Kotlin file) instead of when copy to clipboard. 2013-09-18 21:25:09 +04:00
Zalim Bashorov 4dd880f99c J2K: improved asserts.
(Additionally it needs for investigate EA-37704)
2013-09-18 21:25:08 +04:00
Alexander Udalov 7faf8ef92a Change annoying LOG.error to warn
Must be fixed with thread-safe JDR
2013-09-18 20:14:42 +04:00
Alexander Udalov 5b03178820 Remove dependency of 'serialization' on 'frontend' 2013-09-18 18:45:35 +04:00
Alexander Udalov 5119afae52 Extract 'descriptors' module 2013-09-18 18:45:34 +04:00
Alexander Udalov 43596f7450 Move utilities from 'frontend' to 'util'
They're also used in 'serialization'
2013-09-18 17:21:12 +04:00
Alexander Udalov 3504246983 Move AbstractLazyTypeParameterDescriptor to descriptors/impl/ 2013-09-18 17:21:12 +04:00
Alexander Udalov 4bc410daa2 Move ErrorValueWithDiagnostic to CompileTimeConstantResolver 2013-09-18 17:21:12 +04:00
Alexander Udalov 4611f5f526 Move constant error types to TypeUtils
They're used from different places that will be available at runtime
2013-09-18 17:21:11 +04:00
Alexander Udalov 8e59e789dc Extract util.runtime module out of util
Cleanup module dependencies: a lot of modules depended on 'frontend.java' just
to use something from 'util' module, exported by 'frontend.java', whereas they
really need nothing from 'frontend.java'. Also 'frontend.java' just exported
'util', not using anything from it.

Create a new 'util.runtime' module, which will be available at runtime. Make
'util' export 'util.runtime' and make all modules who needed these utils depend
on 'util' directly instead of 'frontend.java'
2013-09-18 17:21:11 +04:00
Alexander Udalov 15efeaba22 Use 'generators' module and its dependencies for 'All Tests' 2013-09-18 17:21:11 +04:00
Alexander Udalov c029cbdf62 Do not escape AS_SAFE,NOT_IN,NOT_IS in DescriptorRenderer 2013-09-18 17:20:45 +04:00
Alexander Udalov 3da06ee110 Generate keyword strings for DescriptorRenderer
This is done in order to kill dependency of DescriptorRendererImpl on JetTokens
2013-09-18 17:01:41 +04:00
Alexander Udalov df875b892f Move generators sources to generators/src/ 2013-09-18 17:01:41 +04:00
Alexander Udalov e8b10b3e4d Delete ErrorUtils.isError(TypeConstructor) 2013-09-18 16:46:07 +04:00