set with keyword updated

This commit is contained in:
Sergey Ignatov
2011-11-15 15:18:42 +04:00
parent f5c1f098be
commit 6a979e540d
9 changed files with 15 additions and 33 deletions
+1 -4
View File
@@ -17,10 +17,7 @@ public abstract class Node implements INode {
}
final static Set<String> ONLY_KOTLIN_KEYWORDS = new HashSet<String>(Arrays.asList(
"namespace", "in", "val", "var", "when", "object",
"out", "in", "is", "as", "ref", "override",
"open", "attribute", "lazy", "set", "get",
"fun", "where", "by", "trait", "type", "This"
"namespace", "as", "type", "val", "var", "fun", "is", "in", "object", "when", "trait", "This"
));
public final static Set<String> PRIMITIVE_TYPES = new HashSet<String>(Arrays.asList(
@@ -1 +1 @@
System.`out`?.println("Hello, world")
System.out?.println("Hello, world")
@@ -38,8 +38,8 @@ public open class User() {
class object {
open public fun main() : Unit {
var customer : Customer? = org.test.customer.CustomerBuilder().WithFirstName("Homer")?.WithLastName("Simpson")?.Build()
System.`out`?.println(customer?.getFirstName())
System.`out`?.println(customer?.getLastName())
System.out?.println(customer?.getFirstName())
System.out?.println(customer?.getLastName())
}
}
}
@@ -5,6 +5,6 @@ RED
YELLOW
BLUE
override public fun run() : Unit {
System.`out`?.println(("name()=" + name() + ", toString()=" + toString()))
System.out?.println(("name()=" + name() + ", toString()=" + toString()))
}
}
@@ -1,5 +1 @@
int
namespace, in, val, var, when, object,
out, in, is, as, ref, override,
open, attribute, lazy, set, get,
fun, where, by, trait, type, This;
int namespace, as, type, val, var, fun, is, in, object, when, trait, This;
+6 -17
View File
@@ -1,23 +1,12 @@
var `namespace` : Int
var `in` : Int
var `as` : Int
var `type` : Int
var `val` : Int
var `var` : Int
var `when` : Int
var `object` : Int
var `out` : Int
var `in` : Int
var `is` : Int
var `as` : Int
var `ref` : Int
var `override` : Int
var `open` : Int
var `attribute` : Int
var `lazy` : Int
var `set` : Int
var `get` : Int
var `fun` : Int
var `where` : Int
var `by` : Int
var `is` : Int
var `in` : Int
var `object` : Int
var `when` : Int
var `trait` : Int
var `type` : Int
var `This` : Int
@@ -21,7 +21,7 @@ break@test
}
}
}
System.`out`?.println((if (foundIt)
System.out?.println((if (foundIt)
"Found it"
else
"Didn't find it"))
@@ -1 +1 @@
`when`(`open`, `trait`)
`when`(open, `trait`)
@@ -1,5 +1,5 @@
java.lang.Runnable() {
override public fun run() : Unit {
System.`out`?.println("Run")
System.out?.println("Run")
}
}