Sha256: 00707c9b03a52d3fa0ab8307de428cfad93ce3072d7aacbd74c344f1dcd748f9

Contents?: true

Size: 1.93 KB

Versions: 22

Compression:

Stored size: 1.93 KB

Contents

require("./core");
var types = require("../lib/types");
var def = types.Type.def;
var or = types.Type.or;

// Note that none of these types are buildable because the Mozilla Parser
// API doesn't specify any builder functions, and nobody uses E4X anymore.

def("XMLDefaultDeclaration")
    .bases("Declaration")
    .field("namespace", def("Expression"));

def("XMLAnyName").bases("Expression");

def("XMLQualifiedIdentifier")
    .bases("Expression")
    .field("left", or(def("Identifier"), def("XMLAnyName")))
    .field("right", or(def("Identifier"), def("Expression")))
    .field("computed", Boolean);

def("XMLFunctionQualifiedIdentifier")
    .bases("Expression")
    .field("right", or(def("Identifier"), def("Expression")))
    .field("computed", Boolean);

def("XMLAttributeSelector")
    .bases("Expression")
    .field("attribute", def("Expression"));

def("XMLFilterExpression")
    .bases("Expression")
    .field("left", def("Expression"))
    .field("right", def("Expression"));

def("XMLElement")
    .bases("XML", "Expression")
    .field("contents", [def("XML")]);

def("XMLList")
    .bases("XML", "Expression")
    .field("contents", [def("XML")]);

def("XML").bases("Node");

def("XMLEscape")
    .bases("XML")
    .field("expression", def("Expression"));

def("XMLText")
    .bases("XML")
    .field("text", String);

def("XMLStartTag")
    .bases("XML")
    .field("contents", [def("XML")]);

def("XMLEndTag")
    .bases("XML")
    .field("contents", [def("XML")]);

def("XMLPointTag")
    .bases("XML")
    .field("contents", [def("XML")]);

def("XMLName")
    .bases("XML")
    .field("contents", or(String, [def("XML")]));

def("XMLAttribute")
    .bases("XML")
    .field("value", String);

def("XMLCdata")
    .bases("XML")
    .field("contents", String);

def("XMLComment")
    .bases("XML")
    .field("contents", String);

def("XMLProcessingInstruction")
    .bases("XML")
    .field("target", String)
    .field("contents", or(String, null));

Version data entries

22 entries across 17 versions & 5 rubygems

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