fanExamples / jskw.diff

diff -r 73e8ad2c0656 src/compilerJs/fan/ast/JsNode.fan
--- a/src/compilerJs/fan/ast/JsNode.fan	Tue Mar 29 09:48:14 2011 -0400
+++ b/src/compilerJs/fan/ast/JsNode.fan	Mon Apr 04 22:58:17 2011 +0700
@@ -80,15 +80,37 @@
   // must keep in sync with fan.sys.Slot.prototype.$$name
   private const Str:Bool vnames :=
   [
-    "char":   true,
-    "delete": true,
-    "fan":    true,
-    "import": true,
-    "in":     true,
-    "name":   true,
-    "typeof": true,
-    "var":    true,
-    "with":   true
+    "boolean":      true,
+    "byte":         true,
+    "char":         true,
+    "debugger":     true,
+    "delete":       true,
+    "double":       true,
+    "enum":         true,
+    "export":       true,
+    "extends":      true,
+    "fan":          true,
+    "float":        true,
+    "function":     true,
+    "goto":         true,
+    "implements":   true,
+    "import":       true,
+    "in":           true,
+    "instanceof":   true,
+    "int":          true,
+    "interface":    true,
+    "let":          true,
+    "long":         true,
+    "name":         true,
+    "package":      true,
+    "short":        true,
+    "synchronized": true,
+    "throws":       true,
+    "typeof":       true,
+    "transient":    true,
+    "var":          true,
+    "with":         true,
+    "yield":        true
   ].toImmutable
 
   **
diff -r 73e8ad2c0656 src/sys/js/fan/Slot.js
--- a/src/sys/js/fan/Slot.js	Tue Mar 29 09:48:14 2011 -0400
+++ b/src/sys/js/fan/Slot.js	Mon Apr 04 22:58:17 2011 +0700
@@ -114,15 +114,37 @@
   // must keep in sync with compilerJs::JsNode
   switch (n)
   {
-    case "char":   return "$char";
-    case "delete": return "$delete";
-    case "fan":    return "$fan";
-    case "import": return "$import";
-    case "in":     return "$in";
-    case "name":   return "$name";
-    case "typeof": return "$typeof";
-    case "var":    return "$var";
-    case "with":   return "$with";
+    case "boolean":      return "$boolean";
+    case "byte":         return "$byte";
+    case "char":         return "$char";
+    case "debugger":     return "$debugger";
+    case "delete":       return "$delete";
+    case "double":       return "$double";
+    case "enum":         return "$enum";
+    case "export":       return "$export";
+    case "extends":      return "$extends";
+    case "fan":          return "$fan";
+    case "float":        return "$float";
+    case "function":     return "$function";
+    case "goto":         return "$goto";
+    case "implements":   return "$implements";
+    case "import":       return "$import";
+    case "in":           return "$in";
+    case "instanceof":   return "$instanceof";
+    case "int":          return "$int";
+    case "interface":    return "$interface";
+    case "let":          return "$let";
+    case "long":         return "$long";
+    case "name":         return "$name";
+    case "package":      return "$package";
+    case "short":        return "$short";
+    case "synchronized": return "$synchronized";
+    case "throws":       return "$throws";
+    case "typeof":       return "$typeof";
+    case "transient":    return "$transient";
+    case "var":          return "$var";
+    case "with":         return "$with";
+    case "yield":        return "$yield";
   }
   return n;
 }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.