[Pkg-javascript-commits] [node-ast-types] 01/03: Import node-ast-types_0.8.14.orig.tar.gz

Julien Puydt julien.puydt at laposte.net
Sat Jan 2 09:42:18 UTC 2016


This is an automated email from the git hooks/post-receive script.

jpuydt-guest pushed a commit to branch master
in repository node-ast-types.

commit 9536b0bd56443307154fda0d5020c536f9e30213
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Sat Jan 2 10:13:27 2016 +0100

    Import node-ast-types_0.8.14.orig.tar.gz
---
 def/fb-harmony.js | 20 ++++++++++++++++++++
 package.json      |  2 +-
 2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/def/fb-harmony.js b/def/fb-harmony.js
index 3527be5..654c223 100644
--- a/def/fb-harmony.js
+++ b/def/fb-harmony.js
@@ -325,3 +325,23 @@ def("DeclareModule")
   .build("id", "body")
   .field("id", or(def("Identifier"), def("Literal")))
   .field("body", def("BlockStatement"));
+
+def("DeclareExportDeclaration")
+    .bases("Declaration")
+    .build("default", "declaration", "specifiers", "source")
+    .field("default", Boolean)
+    .field("declaration", or(
+        def("DeclareVariable"),
+        def("DeclareFunction"),
+        def("DeclareClass"),
+        def("Type"), // Implies default.
+        null
+    ))
+    .field("specifiers", [or(
+        def("ExportSpecifier"),
+        def("ExportBatchSpecifier")
+    )], defaults.emptyArray)
+    .field("source", or(
+        def("Literal"),
+        null
+    ), defaults["null"]);
diff --git a/package.json b/package.json
index ce3b256..5f5bf18 100644
--- a/package.json
+++ b/package.json
@@ -18,7 +18,7 @@
     "transformation",
     "syntax"
   ],
-  "version": "0.8.13",
+  "version": "0.8.14",
   "homepage": "http://github.com/benjamn/ast-types",
   "repository": {
     "type": "git",

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-ast-types.git



More information about the Pkg-javascript-commits mailing list