Sha256: c827d47bac1840d6c7ec2eac8a2661a79006f74f4264c134a79aef6312f216d9

Contents?: true

Size: 909 Bytes

Versions: 22

Compression:

Stored size: 909 Bytes

Contents

require("./es6");

var types = require("../lib/types");
var def = types.Type.def;
var or = types.Type.or;
var builtin = types.builtInTypes;
var defaults = require("../lib/shared").defaults;

def("Function")
    .field("async", Boolean, defaults["false"]);

def("SpreadProperty")
    .bases("Node")
    .build("argument")
    .field("argument", def("Expression"));

def("ObjectExpression")
    .field("properties", [or(def("Property"), def("SpreadProperty"))]);

def("SpreadPropertyPattern")
    .bases("Pattern")
    .build("argument")
    .field("argument", def("Pattern"));

def("ObjectPattern")
    .field("properties", [or(
        def("Property"),
        def("PropertyPattern"),
        def("SpreadPropertyPattern")
    )]);

def("AwaitExpression")
    .bases("Expression")
    .build("argument", "all")
    .field("argument", or(def("Expression"), null))
    .field("all", Boolean, defaults["false"]);

Version data entries

22 entries across 17 versions & 5 rubygems

Version Path
ilog-0.4.1 node_modules/recast/node_modules/ast-types/def/es7.js
ilog-0.4.0 node_modules/recast/node_modules/ast-types/def/es7.js
ilog-0.3.3 node_modules/recast/node_modules/ast-types/def/es7.js
xcodebuild-helper-1.2.5 externals/ios-sim-master/node_modules/ast-types/def/es7.js
brwy_rails-0.0.6 test/dummy/node_modules/ast-types/def/es7.js
brwy_rails-0.0.5 test/dummy/node_modules/ast-types/def/es7.js
xcodebuild-helper-1.2.3 externals/ios-sim-master/node_modules/ast-types/def/es7.js
brwy_rails-0.0.4 test/dummy/node_modules/ast-types/def/es7.js
brwy_rails-0.0.3 test/dummy/node_modules/ast-types/def/es7.js
brwy_rails-0.0.2 test/dummy/node_modules/ast-types/def/es7.js
brwy_rails-0.0.1 test/dummy/node_modules/ast-types/def/es7.js
es6_tilt-0.1.2 test/dummy/app/assets/javascripts/node_modules/ast-types/def/es7.js
es6_tilt-0.1.2 test/dummy/node_modules/ast-types/def/es7.js
es6_tilt-0.1.1 test/dummy/node_modules/ast-types/def/es7.js
es6_tilt-0.1.1 test/dummy/app/assets/javascripts/node_modules/ast-types/def/es7.js
es6_tilt-0.1.0 test/dummy/app/assets/javascripts/node_modules/ast-types/def/es7.js
gulp_assets-1.0.0.pre.5 template/node_modules/babel-core/node_modules/regexpu/node_modules/recast/node_modules/ast-types/def/es7.js
gulp_assets-1.0.0.pre.5 template/node_modules/babel-core/node_modules/regenerator/node_modules/recast/node_modules/ast-types/def/es7.js
gulp_assets-1.0.0.pre.4 template/node_modules/babel-core/node_modules/regexpu/node_modules/recast/node_modules/ast-types/def/es7.js
gulp_assets-1.0.0.pre.4 template/node_modules/babel-core/node_modules/regenerator/node_modules/recast/node_modules/ast-types/def/es7.js