Andrey Breslav
69e74cb147
Confluence docs. Initial version
2012-05-30 14:41:40 +04: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
Nikolay Krasko
75277b0721
Add until-build attribute to generated plugin.xml
2012-05-30 14:20:04 +04:00
Evgeny Gerashchenko
e7ed224845
KT-2110 Some flaws in Colors & Fonts dialog
...
#KT-2110 fixed
2012-05-30 13:56:19 +04:00
James Strachan
e6f2f7043b
added more descriptive assertions if we get nulls when compiling
2012-05-30 10:27:10 +01:00
Maxim Manuylov
5bb489befb
Converter for KT-2041: JetRunConfiguration should store its settings in the same format as Java's ApplicationConfiguration to be able to reuse code in JPS
2012-05-30 00:12:02 +02:00
James Strachan
4ef8a3ce50
only log files compiled if verbose is enabled
2012-05-29 17:42:42 +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
Nikolay Krasko
8daeb735e4
KT-1719 Navigate -> Symbol... completions are not super helpful for extension functions
...
#KT-1719 fixed
2012-05-29 18:11:36 +04: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
4899c55673
added better diagnostic messages
2012-05-29 13:31:10 +01: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
Nikolay Krasko
d759d50811
Change representation of extension functions
2012-05-29 15:03:36 +04:00
pTalanov
097d03ebe2
Initial dirty and incomplete version of JS DOM API
2012-05-29 14:42:44 +04:00
pTalanov
d822f0f410
Better notification message
2012-05-29 14:41:28 +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
13dfda92d1
added the ability to run the sample either in a web browser or in Java 7 with JavaFX and the KoolApp browser
2012-05-29 08:50:12 +01:00
James Strachan
2898abb245
simplified the kotlin-js-library source generation so we can selectively include some of the kotlin standard library for use in JS compilation
2012-05-29 08:49:36 +01:00
James Strachan
629f0e6f6b
moved JVM specific code into DomJVM.kt
2012-05-29 08:48:13 +01:00
James Strachan
cb980e6f64
added RuntimeException, NoSuchElementException and missing Iterator.remove() function
2012-05-29 08:47:45 +01:00
Andrey Breslav
3d8fbb4761
idea.properties ignored
2012-05-29 11:42:20 +04:00
Andrey Breslav
0b33877144
Simplified SHEBANG comment detection
...
* %line & %column removed (zzCurrentPos used instead)
* jflex cmd arguments reverted
2012-05-29 11:41:54 +04:00
Andrey Breslav
85cffd9e90
Unused methods removed
2012-05-29 11:11:08 +04:00
Stepan Koltsov
25f71bcd3a
skip shebang in the first line
...
Something like this works now:
===
% PATH="./bin:$PATH" ./sum.ktscript 31 21
31 + 21 = 52
% cat sum.ktscript
#!/usr/bin/env kotlin -script
val a = Integer.parseInt(args[0])
val b = Integer.parseInt(args[1])
println("$a + $b = ${a + b}")
===
2012-05-28 22:59:03 +04:00
James Strachan
7f53b2f111
workaround for windows test failure
2012-05-28 19:50:22 +01:00
James Strachan
4d7ab80c3e
workaround for windows test failure
2012-05-28 19:08:31 +01:00
James Strachan
6486023feb
workaround for windows test failure
2012-05-28 18:48:53 +01:00
Nikolay Krasko
252ba5672e
KT-2122 Code completion after val with space should not add local variable's name (set priority in completion for local variables and parameters)
...
#KT-2122 fixed
2012-05-28 21:19:45 +04:00
Stepan Koltsov
30e44fdc5f
script parameters
...
still a lot of things to do
2012-05-28 20:31:29 +04:00
Stepan Koltsov
6244404344
JetTypeName utility
2012-05-28 20:31:29 +04:00
James Strachan
f353f84db8
Merge branch 'master' of github.com:JetBrains/kotlin
2012-05-28 17:30:25 +01:00
Stepan Koltsov
9402262e7c
CodegenTestFile
2012-05-28 20:19:23 +04:00
James Strachan
cb4ce8a4a5
Merge branch 'master' of github.com:JetBrains/kotlin
2012-05-28 17:16:23 +01:00
James Strachan
ec1a7f44ae
create a standard jar of the kotlin JS source that needs to be compiled when generating JS code so its easy to reuse using regular maven dependencies in build tools; updated the examples to reuse this so that its easy to build JS code without needing to know where on the file system a kotlin checkout lives
2012-05-28 17:16:12 +01:00
James Strachan
980db4d087
ignore the js package by default (its only used internally for annotations)
2012-05-28 17:13:38 +01:00
Andrey Breslav
e4007992c6
Extract interface: TypeParameterDescriptor
...
A lot of code relied on these descriptors being mutable. In most cases I managed to work around this,
but there're still are casts to raw List necessary in one or two places
2012-05-28 20:02:36 +04:00
Svetlana Isakova
2165d5b765
fix for 'JetControlFlowTest.testLocalDeclarations' test
2012-05-28 18:37:13 +04:00
Stepan Koltsov
b2cea09fcc
move inner classes of CodegenContext into CodegenContexts
2012-05-28 17:35:08 +04:00
Stepan Koltsov
c2c45669f0
Validate parameters in fillInSubstitutionContext
2012-05-28 17:34:44 +04:00
Stepan Koltsov
a1714d99cf
DependencyClassByFqNameResolver
2012-05-28 17:34:44 +04:00
Svetlana Isakova
84d60b8baa
check deeply inner local declarations added
2012-05-28 15:21:40 +04:00
Svetlana Isakova
b4f765bd76
no different objects for VariableInitState
2012-05-28 14:57:22 +04:00
Svetlana Isakova
de67cae571
no need in possible local initializers
...
for each variable for each instruction
rename
2012-05-28 13:48:49 +04:00
Svetlana Isakova
468052c3a5
renames
2012-05-28 13:00:47 +04:00
Svetlana Isakova
dfbd9922d9
fixes after merge
...
get rid of JetControlFlowDataTraceFactory
2012-05-28 12:32:45 +04:00
Svetlana Isakova
a79ea0c86b
changes in 'PseudocodeTraverser' interface
2012-05-28 12:09:45 +04:00
Svetlana Isakova
8acfa20a02
lazy computing of pseudocode variables data
...
no need in special 'data' classes
2012-05-28 12:09:45 +04:00
Svetlana Isakova
cdcedbe6ed
all traverse pseudocode methods made static
2012-05-28 12:09:45 +04:00