7458 Commits

Author SHA1 Message Date
Andrey Breslav 91606a3901 Introduce 'reified' instead of 'erased' 2012-06-05 20:19:07 +04:00
pTalanov 6b9495a159 Cosmetics 2012-06-05 19:29:25 +04:00
pTalanov 95e3080cc7 Manually assemble kotlinLib.js from ecma version independent and dependent parts and it to dist 2012-06-05 19:29:24 +04:00
pTalanov b4a0ecf04e Fix copyrights to their previous state (not sure they're needed at all) 2012-06-05 19:29:23 +04:00
pTalanov 104061b7f8 Cosmetics after pulling https://github.com/JetBrains/kotlin/pull/67 2012-06-05 19:29:21 +04:00
develar d4d300d0e9 Requested only one commit pull request (was: https://github.com/JetBrains/kotlin/pull/59/files).
Note: all tests passed, but I haven't tested this build in real life (opposite to my master branch).

Don't remember about critical issue — http://youtrack.jetbrains.com/issue/KT-2154 Fix for this issue is not included in this patch (because unrelated). Fix for it and for all other unrelated changes will be opened as separated pull-requests.
2012-06-05 19:29:20 +04:00
pTalanov 494bd32636 Remove outdated js.examples module 2012-06-05 16:48:16 +04:00
pTalanov d11b0a617c WebDemoCanvas test files synched with actual version in WD 2012-06-05 16:48:15 +04:00
pTalanov c5ebfdcea7 Fix EcmaVersion.fromString() which caused translator to default to EcmaScript v5 in IDE 2012-06-05 16:48:14 +04:00
pTalanov 39dc1a1cb8 revert 9f0fcc280b 2012-06-01 19:14:00 +04:00
James Strachan 9f0fcc280b added support for generation of QUnit unit tests from Kotlin JUnit test cases 2012-06-01 15:25:35 +01:00
pTalanov 144fef96cd Clean up some code commenting out preconditions for now 2012-06-01 15:42:50 +04:00
pTalanov cbcee10618 K2JSCompiler and K2JSTranslator fixes (mostly codestyle) 2012-06-01 15:19:47 +04:00
James Strachan 23db5d7fc8 fixed bug in property generation on the JS DOM API 2012-06-01 11:40:30 +01:00
James Strachan ee1e7d5906 attempt to fix the build - whoops, sorry again :) 2012-06-01 08:38:27 +01:00
James Strachan 1bf6ebac57 fixed a test case 2012-06-01 08:28:39 +01:00
James Strachan bc7104a8fe update the DOM API so that we implement using the property style access of properties which work natively in JS and avoid using getter/setter methods in the DOM library so that they can easily compile to JS too from the same org.w3c.dom API on the JVM 2012-06-01 07:45:55 +01:00
James Strachan 570f9d765d for now switch to the org.w3c.dom API 2012-06-01 07:45:02 +01:00
James Strachan d450acf99c made the test case fail if there is a compile error - and temporarily commented out a few JS library files that don't compile yet 2012-06-01 07:44:38 +01:00
pTalanov 22fe0d80a7 Remove redundant canvas helper 2012-05-31 20:45:56 +04:00
pTalanov 5fa3e96e4b drop interval/timeout funs. Modify traffic light example 2012-05-31 20:45:55 +04:00
pTalanov 44c0baa9e1 Creatures example working with the new library 2012-05-31 20:45:54 +04:00
pTalanov 0fb7032f4c Remove old image element and canvas APIs 2012-05-31 20:45:54 +04:00
pTalanov 7e07414a75 More lib API tweaks 2012-05-31 20:45:53 +04:00
pTalanov aa656cac7b Remove js.DomElement from standard library 2012-05-31 20:45:52 +04:00
pTalanov f07523df1d "Hello, Kotlin" example working with the new library 2012-05-31 20:45:51 +04:00
pTalanov 527c4585a3 jquery -> js.jquery 2012-05-31 20:45:50 +04:00
pTalanov a1b0af2cfa Optional parameters in generated lib files 2012-05-31 20:45:49 +04:00
pTalanov cd0bc43624 Adding an early version of js dom library. Fancy lines example passing (others failing) 2012-05-31 20:45:48 +04:00
Andrey Breslav 6f28638e80 Remove useless ObservableBindingTrace from DI 2012-05-31 19:29:06 +04:00
James Strachan c4439f33f0 avoided JS compile barf in JS generation and fix compile error of Node vals in generated DOM API 2012-05-31 09:26:55 +01:00
James Strachan fe68aeaa78 generate the Node.ELEMENT_NODE fields on the JS DOM API and refactored the kotlin.dom API so that it uses the Node.getNodeType() API rather than using "is" which is troublesome to implement on a browser/JS 2012-05-31 09:08:12 +01:00
James Strachan 4cff5f9759 modified the JS compiler so that it can have definitions and library sources specified or discovered on the classpath; so for example we can then discover the kotlin standard library kotlin that needs to be compiled; plus the JS library definitions (which map to the kotlin-lib.js file) 2012-05-30 15:51:08 +01:00
James Strachan d7573b49a6 allow the JS compiler to take a list of files, verbose flag and a flag to indicate if a main call is required; plus added a test case to ensure we can compile some of the kotlin standard library using the K2JSCompiler directly 2012-05-30 11:31:35 +01:00
James Strachan 782773fca9 fixed compile errors 2012-05-30 11:30:36 +01:00
James Strachan e6f2f7043b added more descriptive assertions if we get nulls when compiling 2012-05-30 10:27:10 +01:00
James Strachan 4921aeafc3 refactored the maven plugin to use the vanilla K2JSCompiler directly and avoid using the K2JVMCompiler when generating JS code; also included a default LibrarySourceConfig which detects JS library code on the classpath which works nicer in maven/ant style worlds where dependencies tend to be specified rather than file paths to zip files 2012-05-29 17:28:15 +01:00
James Strachan 1a77c36040 got the kotlin/Dom.kt, Preconditions.kt and AbstractIterator.kt compiling as JS; needs more testing of using these APIs from JS though... 2012-05-29 15:02:17 +01:00
pTalanov 64703106ea Add tests which check that web demo canvas examples compile correctly 2012-05-29 17:29:39 +04:00
James Strachan 35aa899cb1 making progress on porting kotlin/dom to JS; added AbstractList and RuntimeException/UnsupportedOperationException support to the kotlin-lib.js and fixed up a gremlin (Iterator is a trait not a class) 2012-05-29 12:33:34 +01:00
pTalanov 097d03ebe2 Initial dirty and incomplete version of JS DOM API 2012-05-29 14:42:44 +04:00
James Strachan bed2ec95d1 added a test case to compile some of the standard kotlin library as JS 2012-05-29 10:29:18 +01:00
James Strachan cb980e6f64 added RuntimeException, NoSuchElementException and missing Iterator.remove() function 2012-05-29 08:47:45 +01:00
Stepan Koltsov 30e44fdc5f script parameters
still a lot of things to do
2012-05-28 20:31:29 +04:00
Stepan Koltsov a1714d99cf DependencyClassByFqNameResolver 2012-05-28 17:34:44 +04:00
Svetlana Isakova dfbd9922d9 fixes after merge
get rid of JetControlFlowDataTraceFactory
2012-05-28 12:32:45 +04:00
Nikolay Krasko e946a0f908 - Out of block modification strategy for Kotlin block expression
- Separate project analysis for IDEA needs: headers + bodies
2012-05-27 17:39:56 +04:00
James Strachan aecb5c72c5 code generate the JS dom.kt file so its got full W3C DOM API compatibility based on the API that ships with the JDK 2012-05-25 21:43:04 +01:00
James Strachan adf38a0648 added a working JS test case using the standard kotlin browser API for interacting with the DOM 2012-05-25 20:38:04 +01:00
Pavel V. Talanov 2bb647bdb8 Some magic to make test work 2012-05-25 14:45:01 +04:00