Commit Graph

1486 Commits

Author SHA1 Message Date
Alexey Tsvetkov 5b1319b535 JS parser: removed unused messages 2014-12-15 19:16:20 +03:00
Alexey Tsvetkov 714b719204 JS parser: static messages load 2014-12-15 19:16:20 +03:00
Alexey Tsvetkov 21d51147bf JS parser: fixed labelled break/continue 2014-12-15 19:16:20 +03:00
Alexey Tsvetkov 939a8cce4e JS parser: removed @ from @author tag because of JetCodeConformanceTest 2014-12-15 19:16:20 +03:00
Alexey Tsvetkov 8c643d78f8 JS backend minor: formatting 2014-12-15 19:16:20 +03:00
Alexey Tsvetkov bc7afdf0b8 JS backend: expand jsCode at translator 2014-12-15 19:16:20 +03:00
Alexey Tsvetkov 41af895caa JS backend: added jsCode definition 2014-12-15 19:16:20 +03:00
Alexey Tsvetkov c3f67c54bd JS backend: added jsCode test cases 2014-12-15 19:16:20 +03:00
Alexey Tsvetkov 97bbcab77d JS parser: added description string to constructor arguments 2014-12-15 19:16:19 +03:00
Alexey Tsvetkov c814b9a8b8 JS parser: renamed sourceNameStub to comply with a codestyle (UPPERCASE) 2014-12-15 19:16:19 +03:00
Alexey Tsvetkov f69398b915 JS parser: literals creation 2014-12-15 19:16:19 +03:00
Alexey Tsvetkov 5256a99c54 JS parser: added insideFunction flag 2014-12-15 19:16:19 +03:00
Alexey Tsvetkov 420df315b4 JS parser: added NUMBER_INT token type 2014-12-15 19:16:19 +03:00
Alexey Tsvetkov 570010ed5c JS parser: fixed expression statement mapping 2014-12-15 19:16:19 +03:00
Alexey Tsvetkov 8f33dea8d3 JS parser: removed source info creation 2014-12-15 19:16:19 +03:00
Alexey Tsvetkov 706b93b5b8 JS parser minor: removed unused function 2014-12-15 19:16:19 +03:00
Alexey Tsvetkov 225c9cdf54 JS parser: updated imports 2014-12-15 19:16:19 +03:00
Alexey Tsvetkov df41400fe5 JS parser: auto-reformat JsParser.java 2014-12-15 19:16:19 +03:00
Alexey Tsvetkov 54dbdce908 JS parser: added original gwt code revision notice 2014-12-15 19:16:18 +03:00
Alexey Tsvetkov b1c005dccf JS parser: GWT parser copied 2014-12-15 19:16:18 +03:00
Alexey Tsvetkov 85b2df8c61 JS test minor: use getNamedArgument for mandatory directive arguments 2014-12-15 19:16:18 +03:00
Alexey Tsvetkov c52d6ba92e JS test minor: removed 'Inline' from name checkFooBoxWithInlineDirectives
checkFooBoxWithInlineDirectives was moved from InlineTest, but was not renamed
2014-12-15 19:16:18 +03:00
Svetlana Isakova da8fdbd23e More tests for varargs updated 2014-12-12 23:08:28 +03:00
Michael Nedzelsky f8f7ea8998 JS backend: check libraries in cli compiler before translation 2014-12-12 03:04:17 +03:00
Michael Nedzelsky 44e7af7f65 K2JS: get rid of MetaInfServices 2014-12-12 03:03:37 +03:00
Michael Nedzelsky a026f6d25e add LibraryUtils.copyJsFilesFromLibraries 2014-12-12 03:03:32 +03:00
Michael Nedzelsky 103307432e update kotlin javascript stdlib if needed 2014-12-12 03:03:24 +03:00
Michael Nedzelsky 61e9cbec66 K2JS: get kotlin js module name from Kotlin-JS-Module-Name attribute in manifest 2014-12-12 03:03:13 +03:00
Michael Nedzelsky 83ec20508a JS backend: isJsRuntimeLibrary -> isKotlinJavascriptStdLibrary 2014-12-12 03:03:11 +03:00
Denis Zharkov 34d408eb7b Simple workaround for problem described in KT-6437
JS backend generate invalid code when inlining within constructor using property
2014-12-11 16:04:04 +03:00
Denis Zharkov d345ba05dd Added inline function "Array" into stdlib
It has the same signature and semantics as Array constructor had
Also made Array constructor private and accepting no arguments
2014-12-11 16:04:03 +03:00
Zalim Bashorov 6b50d74056 JS backend: use special JsScope(JsDynamicScope) for names from dynamic calls instead of use containing scope to avoid the impact on local names. 2014-12-11 13:17:49 +03:00
Zalim Bashorov af82e69214 JS tests: added tests for dynamic. 2014-12-11 13:17:49 +03:00
Zalim Bashorov 7d9b824411 JS tests: use js files from some places by default:
* add all js files from testData/_commonFiles
* add all js files from <testDir>/_commonFiles
* add <testDir>/cases/<testName>.js if it exists
2014-12-11 13:17:48 +03:00
Zalim Bashorov 2f6a135135 JS tests: added doTest and checkFooBoxIsOkByPath to BasicTest to simplify using generated tests. 2014-12-11 13:17:47 +03:00
Zalim Bashorov 4c9fbcd525 JS frontend: introduce some JavaScript specific constants. 2014-12-10 22:48:02 +03:00
Zalim Bashorov bc3f53afff JS backend: added the support dynamic. 2014-12-10 22:48:02 +03:00
Zalim Bashorov 45b0fd9f4c Minor in JS backend: simplify CompareToBOIF::getIntrinsic. 2014-12-10 22:48:01 +03:00
Zalim Bashorov eadb2d8db5 Minor in JS backend: save operation token as member of BinaryOperationTranslator. 2014-12-10 22:48:01 +03:00
Zalim Bashorov e378bde43e JS backend: fix "is Boolean" check. 2014-12-10 22:48:01 +03:00
Zalim Bashorov 2ccc027ba5 Minor in JS AST: drop unused constructors from JsBinaryOperation, JsUnaryOperation, JsPrefixOperation and JsPostfixOperation. 2014-12-10 22:48:01 +03:00
Natalia Ukhorskaya 64dac7a19d Fix line separators in JsLibrarySourceConfig 2014-12-10 12:41:15 +03:00
Michael Nedzelsky 5db35125dd JS backend: fix KT-3692: js translator: Ensure that we don't create backing fields for traits
#KT-3692 Fixed
2014-12-04 02:42:12 +03:00
Michael Nedzelsky 7c9ea16d8e JS backend: fix translation for extension property 2014-12-04 02:42:07 +03:00
Michael Nedzelsky 5bf1d73199 JS backend: tests for translation for extension property 2014-12-04 02:42:04 +03:00
Valentin Kipyatkov b8d1f115bf Renamed JetType.isNullable() to isMarkedNullable() 2014-12-03 21:36:10 +03:00
Andrey Breslav fda7f63957 isBoolean() moved to KotlinBuiltIns 2014-12-03 15:39:16 +03:00
Andrey Breslav 80a32ee875 ModuleDescriptor knows its built-ins 2014-12-03 15:39:15 +03:00
Andrey Breslav ae7f38d891 Some usages of KotlinBuiltIns injected as components 2014-12-03 15:39:13 +03:00
Andrey Breslav 6efa0032e5 GenerateInjectors cleaned up 2014-12-03 15:39:12 +03:00