ast-types
Advanced tools
Comparing version 0.13.4 to 0.14.0
"use strict";; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var es_proposals_1 = tslib_1.__importDefault(require("./es-proposals")); | ||
var types_1 = tslib_1.__importDefault(require("../lib/types")); | ||
var shared_1 = tslib_1.__importDefault(require("../lib/shared")); | ||
var es7_1 = tslib_1.__importDefault(require("./es7")); | ||
function default_1(fork) { | ||
fork.use(es7_1.default); | ||
fork.use(es_proposals_1.default); | ||
var types = fork.use(types_1.default); | ||
@@ -20,5 +20,2 @@ var defaults = fork.use(shared_1.default).defaults; | ||
.field("body", [def("Statement")]); | ||
def("Super") | ||
.bases("Expression") | ||
.build(); | ||
def("BindExpression") | ||
@@ -29,15 +26,2 @@ .bases("Expression") | ||
.field("callee", def("Expression")); | ||
def("Decorator") | ||
.bases("Node") | ||
.build("expression") | ||
.field("expression", def("Expression")); | ||
def("Property") | ||
.field("decorators", or([def("Decorator")], null), defaults["null"]); | ||
def("MethodDefinition") | ||
.field("decorators", or([def("Decorator")], null), defaults["null"]); | ||
def("MetaProperty") | ||
.bases("Expression") | ||
.build("meta", "property") | ||
.field("meta", def("Identifier")) | ||
.field("property", def("Identifier")); | ||
def("ParenthesizedExpression") | ||
@@ -47,26 +31,2 @@ .bases("Expression") | ||
.field("expression", def("Expression")); | ||
def("ImportSpecifier") | ||
.bases("ModuleSpecifier") | ||
.build("imported", "local") | ||
.field("imported", def("Identifier")); | ||
def("ImportDefaultSpecifier") | ||
.bases("ModuleSpecifier") | ||
.build("local"); | ||
def("ImportNamespaceSpecifier") | ||
.bases("ModuleSpecifier") | ||
.build("local"); | ||
def("ExportDefaultDeclaration") | ||
.bases("Declaration") | ||
.build("declaration") | ||
.field("declaration", or(def("Declaration"), def("Expression"))); | ||
def("ExportNamedDeclaration") | ||
.bases("Declaration") | ||
.build("declaration", "specifiers", "source") | ||
.field("declaration", or(def("Declaration"), null)) | ||
.field("specifiers", [def("ExportSpecifier")], defaults.emptyArray) | ||
.field("source", or(def("Literal"), null), defaults["null"]); | ||
def("ExportSpecifier") | ||
.bases("ModuleSpecifier") | ||
.build("local", "exported") | ||
.field("exported", def("Identifier")); | ||
def("ExportNamespaceSpecifier") | ||
@@ -80,7 +40,2 @@ .bases("Specifier") | ||
.field("exported", def("Identifier")); | ||
def("ExportAllDeclaration") | ||
.bases("Declaration") | ||
.build("exported", "source") | ||
.field("exported", or(def("Identifier"), null)) | ||
.field("source", def("Literal")); | ||
def("CommentBlock") | ||
@@ -221,11 +176,2 @@ .bases("Comment") | ||
}); | ||
def("ClassPrivateProperty") | ||
.bases("ClassProperty") | ||
.build("key", "value") | ||
.field("key", def("PrivateName")) | ||
.field("value", or(def("Expression"), null), defaults["null"]); | ||
def("PrivateName") | ||
.bases("Expression", "Pattern") | ||
.build("id") | ||
.field("id", def("Identifier")); | ||
var ObjectPatternProperty = or(def("Property"), def("PropertyPattern"), def("SpreadPropertyPattern"), def("SpreadProperty"), // Used by Esprima | ||
@@ -232,0 +178,0 @@ def("ObjectProperty"), // Babel 6 |
"use strict";; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var core_operators_1 = require("./core-operators"); | ||
var types_1 = tslib_1.__importDefault(require("../lib/types")); | ||
@@ -112,4 +113,3 @@ var shared_1 = tslib_1.__importDefault(require("../lib/shared")); | ||
.build("param", "guard", "body") | ||
// https://github.com/tc39/proposal-optional-catch-binding | ||
.field("param", or(def("Pattern"), null), defaults["null"]) | ||
.field("param", def("Pattern")) | ||
.field("guard", or(def("Expression"), null), defaults["null"]) | ||
@@ -189,4 +189,3 @@ .field("body", def("BlockStatement")); | ||
.field("prefix", Boolean, defaults["true"]); | ||
var BinaryOperator = or("==", "!=", "===", "!==", "<", "<=", ">", ">=", "<<", ">>", ">>>", "+", "-", "*", "/", "%", "**", "&", // TODO Missing from the Parser API. | ||
"|", "^", "in", "instanceof"); | ||
var BinaryOperator = or.apply(void 0, core_operators_1.BinaryOperators); | ||
def("BinaryExpression") | ||
@@ -198,3 +197,3 @@ .bases("Expression") | ||
.field("right", def("Expression")); | ||
var AssignmentOperator = or("=", "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=", "|=", "^=", "&="); | ||
var AssignmentOperator = or.apply(void 0, core_operators_1.AssignmentOperators); | ||
def("AssignmentExpression") | ||
@@ -213,3 +212,3 @@ .bases("Expression") | ||
.field("prefix", Boolean); | ||
var LogicalOperator = or("||", "&&"); | ||
var LogicalOperator = or.apply(void 0, core_operators_1.LogicalOperators); | ||
def("LogicalExpression") | ||
@@ -216,0 +215,0 @@ .bases("Expression") |
@@ -6,5 +6,5 @@ "use strict";; | ||
var shared_1 = tslib_1.__importDefault(require("../lib/shared")); | ||
var core_1 = tslib_1.__importDefault(require("./core")); | ||
var es2020_1 = tslib_1.__importDefault(require("./es2020")); | ||
function default_1(fork) { | ||
fork.use(core_1.default); | ||
fork.use(es2020_1.default); | ||
var types = fork.use(types_1.default); | ||
@@ -16,20 +16,27 @@ var Type = types.Type; | ||
var defaults = shared.defaults; | ||
// https://github.com/tc39/proposal-optional-chaining | ||
// `a?.b` as per https://github.com/estree/estree/issues/146 | ||
def("OptionalMemberExpression") | ||
.bases("MemberExpression") | ||
.build("object", "property", "computed", "optional") | ||
.field("optional", Boolean, defaults["true"]); | ||
// a?.b() | ||
def("OptionalCallExpression") | ||
.bases("CallExpression") | ||
.build("callee", "arguments", "optional") | ||
.field("optional", Boolean, defaults["true"]); | ||
// https://github.com/tc39/proposal-nullish-coalescing | ||
// `a ?? b` as per https://github.com/babel/babylon/pull/761/files | ||
var LogicalOperator = or("||", "&&", "??"); | ||
def("LogicalExpression") | ||
.field("operator", LogicalOperator); | ||
def("AwaitExpression") | ||
.build("argument", "all") | ||
.field("argument", or(def("Expression"), null)) | ||
.field("all", Boolean, defaults["false"]); | ||
// Decorators | ||
def("Decorator") | ||
.bases("Node") | ||
.build("expression") | ||
.field("expression", def("Expression")); | ||
def("Property") | ||
.field("decorators", or([def("Decorator")], null), defaults["null"]); | ||
def("MethodDefinition") | ||
.field("decorators", or([def("Decorator")], null), defaults["null"]); | ||
// Private names | ||
def("PrivateName") | ||
.bases("Expression", "Pattern") | ||
.build("id") | ||
.field("id", def("Identifier")); | ||
def("ClassPrivateProperty") | ||
.bases("ClassProperty") | ||
.build("key", "value") | ||
.field("key", def("PrivateName")) | ||
.field("value", or(def("Expression"), null), defaults["null"]); | ||
} | ||
exports.default = default_1; | ||
module.exports = exports["default"]; |
"use strict";; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var es7_1 = tslib_1.__importDefault(require("./es7")); | ||
var core_operators_1 = require("./core-operators"); | ||
var es2019_1 = tslib_1.__importDefault(require("./es2019")); | ||
var types_1 = tslib_1.__importDefault(require("../lib/types")); | ||
var shared_1 = tslib_1.__importDefault(require("../lib/shared")); | ||
function default_1(fork) { | ||
fork.use(es7_1.default); | ||
fork.use(es2019_1.default); | ||
var types = fork.use(types_1.default); | ||
var def = types.Type.def; | ||
var or = types.Type.or; | ||
var shared = fork.use(shared_1.default); | ||
var defaults = shared.defaults; | ||
def("ImportExpression") | ||
@@ -14,4 +19,21 @@ .bases("Expression") | ||
.field("source", def("Expression")); | ||
def("ExportAllDeclaration") | ||
.build("source", "exported") | ||
.field("source", def("Literal")) | ||
.field("exported", or(def("Identifier"), null)); | ||
// Optional chaining | ||
def("OptionalMemberExpression") | ||
.bases("MemberExpression") | ||
.build("object", "property", "computed", "optional") | ||
.field("optional", Boolean, defaults["true"]); | ||
def("OptionalCallExpression") | ||
.bases("CallExpression") | ||
.build("callee", "arguments", "optional") | ||
.field("optional", Boolean, defaults["true"]); | ||
// Nullish coalescing | ||
var LogicalOperator = or.apply(void 0, tslib_1.__spreadArrays(core_operators_1.LogicalOperators, ["??"])); | ||
def("LogicalExpression") | ||
.field("operator", LogicalOperator); | ||
} | ||
exports.default = default_1; | ||
module.exports = exports["default"]; |
@@ -17,3 +17,3 @@ "use strict";; | ||
.field("defaults", [or(def("Expression"), null)], defaults.emptyArray) | ||
// TODO This could be represented as a RestElement in .params. | ||
// Legacy | ||
.field("rest", or(def("Identifier"), null), defaults["null"]); | ||
@@ -32,7 +32,7 @@ // The ESTree way of representing a ...rest parameter. | ||
def("FunctionDeclaration") | ||
.build("id", "params", "body", "generator", "expression"); | ||
.build("id", "params", "body", "generator", "expression") | ||
// May be `null` in the context of `export default function () {}` | ||
.field("id", or(def("Identifier"), null)); | ||
def("FunctionExpression") | ||
.build("id", "params", "body", "generator", "expression"); | ||
// The Parser API calls this ArrowExpression, but Esprima and all other | ||
// actual parsers use ArrowFunctionExpression. | ||
def("ArrowFunctionExpression") | ||
@@ -100,10 +100,2 @@ .bases("Function", "Expression") | ||
.field("elements", [or(def("Pattern"), null)]); | ||
def("MethodDefinition") | ||
.bases("Declaration") | ||
.build("kind", "key", "value", "static") | ||
.field("kind", or("constructor", "method", "get", "set")) | ||
.field("key", def("Expression")) | ||
.field("value", def("Function")) | ||
.field("computed", Boolean, defaults["false"]) | ||
.field("static", Boolean, defaults["false"]); | ||
def("SpreadElement") | ||
@@ -130,2 +122,10 @@ .bases("Node") | ||
.field("right", def("Expression")); | ||
def("MethodDefinition") | ||
.bases("Declaration") | ||
.build("kind", "key", "value", "static") | ||
.field("kind", or("constructor", "method", "get", "set")) | ||
.field("key", def("Expression")) | ||
.field("value", def("Function")) | ||
.field("computed", Boolean, defaults["false"]) | ||
.field("static", Boolean, defaults["false"]); | ||
var ClassBodyElement = or(def("MethodDefinition"), def("VariableDeclarator"), def("ClassPropertyDefinition"), def("ClassProperty")); | ||
@@ -158,2 +158,5 @@ def("ClassProperty") | ||
.field("superClass", or(def("Expression"), null), defaults["null"]); | ||
def("Super") | ||
.bases("Expression") | ||
.build(); | ||
// Specifier and ModuleSpecifier are abstract non-standard types | ||
@@ -177,15 +180,15 @@ // introduced for definitional convenience. | ||
.field("name", or(def("Identifier"), null), defaults["null"]); | ||
// Like ModuleSpecifier, except type:"ImportSpecifier" and buildable. | ||
// import {<id [as name]>} from ...; | ||
def("ImportSpecifier") | ||
.bases("ModuleSpecifier") | ||
.build("id", "name"); | ||
.build("imported", "local") | ||
.field("imported", def("Identifier")); | ||
// import <id> from ...; | ||
def("ImportDefaultSpecifier") | ||
.bases("ModuleSpecifier") | ||
.build("local"); | ||
// import <* as id> from ...; | ||
def("ImportNamespaceSpecifier") | ||
.bases("ModuleSpecifier") | ||
.build("id"); | ||
// import <id> from ...; | ||
def("ImportDefaultSpecifier") | ||
.bases("ModuleSpecifier") | ||
.build("id"); | ||
.build("local"); | ||
def("ImportDeclaration") | ||
@@ -199,2 +202,20 @@ .bases("Declaration") | ||
}); | ||
def("ExportNamedDeclaration") | ||
.bases("Declaration") | ||
.build("declaration", "specifiers", "source") | ||
.field("declaration", or(def("Declaration"), null)) | ||
.field("specifiers", [def("ExportSpecifier")], defaults.emptyArray) | ||
.field("source", or(def("Literal"), null), defaults["null"]); | ||
def("ExportSpecifier") | ||
.bases("ModuleSpecifier") | ||
.build("local", "exported") | ||
.field("exported", def("Identifier")); | ||
def("ExportDefaultDeclaration") | ||
.bases("Declaration") | ||
.build("declaration") | ||
.field("declaration", or(def("Declaration"), def("Expression"))); | ||
def("ExportAllDeclaration") | ||
.bases("Declaration") | ||
.build("source") | ||
.field("source", def("Literal")); | ||
def("TaggedTemplateExpression") | ||
@@ -215,4 +236,9 @@ .bases("Expression") | ||
.field("tail", Boolean); | ||
def("MetaProperty") | ||
.bases("Expression") | ||
.build("meta", "property") | ||
.field("meta", def("Identifier")) | ||
.field("property", def("Identifier")); | ||
} | ||
exports.default = default_1; | ||
module.exports = exports["default"]; |
"use strict";; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var es7_1 = tslib_1.__importDefault(require("./es7")); | ||
var es2020_1 = tslib_1.__importDefault(require("./es2020")); | ||
var types_1 = tslib_1.__importDefault(require("../lib/types")); | ||
var shared_1 = tslib_1.__importDefault(require("../lib/shared")); | ||
function default_1(fork) { | ||
fork.use(es7_1.default); | ||
fork.use(es2020_1.default); | ||
var types = fork.use(types_1.default); | ||
@@ -10,0 +10,0 @@ var defaults = fork.use(shared_1.default).defaults; |
"use strict";; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var es7_1 = tslib_1.__importDefault(require("./es7")); | ||
var es_proposals_1 = tslib_1.__importDefault(require("./es-proposals")); | ||
var type_annotations_1 = tslib_1.__importDefault(require("./type-annotations")); | ||
@@ -9,3 +9,3 @@ var types_1 = tslib_1.__importDefault(require("../lib/types")); | ||
function default_1(fork) { | ||
fork.use(es7_1.default); | ||
fork.use(es_proposals_1.default); | ||
fork.use(type_annotations_1.default); | ||
@@ -32,5 +32,11 @@ var types = fork.use(types_1.default); | ||
.build(); | ||
def("SymbolTypeAnnotation") | ||
.bases("FlowType") | ||
.build(); | ||
def("NumberTypeAnnotation") | ||
.bases("FlowType") | ||
.build(); | ||
def("BigIntTypeAnnotation") | ||
.bases("FlowType") | ||
.build(); | ||
def("NumberLiteralTypeAnnotation") | ||
@@ -48,2 +54,7 @@ .bases("FlowType") | ||
.field("raw", String); | ||
def("BigIntLiteralTypeAnnotation") | ||
.bases("FlowType") | ||
.build("value", "raw") | ||
.field("value", null) | ||
.field("raw", String); | ||
def("StringTypeAnnotation") | ||
@@ -98,3 +109,3 @@ .bases("FlowType") | ||
.build("name", "typeAnnotation", "optional") | ||
.field("name", def("Identifier")) | ||
.field("name", or(def("Identifier"), null)) | ||
.field("typeAnnotation", def("FlowType")) | ||
@@ -117,2 +128,5 @@ .field("optional", Boolean); | ||
.field("internalSlots", [def("ObjectTypeInternalSlot")], defaults.emptyArray); | ||
def("ObjectTypeIndexer") | ||
.field("id", or(def("Identifier"), null)) | ||
.field("static", Boolean); | ||
def("Variance") | ||
@@ -191,6 +205,7 @@ .bases("Node") | ||
.bases("FlowType") | ||
.build("name", "variance", "bound") | ||
.build("name", "variance", "bound", "default") | ||
.field("name", String) | ||
.field("variance", LegacyVariance, defaults["null"]) | ||
.field("bound", or(def("TypeAnnotation"), null), defaults["null"]); | ||
.field("bound", or(def("TypeAnnotation"), null), defaults["null"]) | ||
.field("default", or(def("FlowType"), null), defaults["null"]); | ||
def("ClassProperty") | ||
@@ -230,2 +245,5 @@ .field("variance", LegacyVariance, defaults["null"]); | ||
.field("right", def("FlowType")); | ||
def("DeclareTypeAlias") | ||
.bases("TypeAlias") | ||
.build("id", "typeParameters", "right"); | ||
def("OpaqueType") | ||
@@ -237,9 +255,7 @@ .bases("Declaration") | ||
.field("impltype", def("FlowType")) | ||
.field("supertype", def("FlowType")); | ||
def("DeclareTypeAlias") | ||
.bases("TypeAlias") | ||
.build("id", "typeParameters", "right"); | ||
.field("supertype", or(def("FlowType"), null)); | ||
def("DeclareOpaqueType") | ||
.bases("TypeAlias") | ||
.build("id", "typeParameters", "supertype"); | ||
.bases("OpaqueType") | ||
.build("id", "typeParameters", "supertype") | ||
.field("impltype", or(def("FlowType"), null)); | ||
def("TypeCastExpression") | ||
@@ -261,3 +277,4 @@ .bases("Expression") | ||
.build("id") | ||
.field("id", def("Identifier")); | ||
.field("id", def("Identifier")) | ||
.field("predicate", or(def("FlowPredicate"), null), defaults["null"]); | ||
def("DeclareClass") | ||
@@ -280,3 +297,5 @@ .bases("InterfaceDeclaration") | ||
.field("declaration", or(def("DeclareVariable"), def("DeclareFunction"), def("DeclareClass"), def("FlowType"), // Implies default. | ||
null)) | ||
def("TypeAlias"), // Implies named type | ||
def("DeclareOpaqueType"), // Implies named opaque type | ||
def("InterfaceDeclaration"), null)) | ||
.field("specifiers", [or(def("ExportSpecifier"), def("ExportBatchSpecifier"))], defaults.emptyArray) | ||
@@ -288,2 +307,4 @@ .field("source", or(def("Literal"), null), defaults["null"]); | ||
.field("source", or(def("Literal"), null), defaults["null"]); | ||
def("ImportDeclaration") | ||
.field("importKind", or("value", "type", "typeof"), function () { return "value"; }); | ||
def("FlowPredicate").bases("Flow"); | ||
@@ -297,2 +318,4 @@ def("InferredPredicate") | ||
.field("value", def("Expression")); | ||
def("Function") | ||
.field("predicate", or(def("FlowPredicate"), null), defaults["null"]); | ||
def("CallExpression") | ||
@@ -302,4 +325,40 @@ .field("typeArguments", or(null, def("TypeParameterInstantiation")), defaults["null"]); | ||
.field("typeArguments", or(null, def("TypeParameterInstantiation")), defaults["null"]); | ||
// Enums | ||
def("EnumDeclaration") | ||
.bases("Declaration") | ||
.build("id", "body") | ||
.field("id", def("Identifier")) | ||
.field("body", or(def("EnumBooleanBody"), def("EnumNumberBody"), def("EnumStringBody"), def("EnumSymbolBody"))); | ||
def("EnumBooleanBody") | ||
.build("members", "explicitType") | ||
.field("members", [def("EnumBooleanMember")]) | ||
.field("explicitType", Boolean); | ||
def("EnumNumberBody") | ||
.build("members", "explicitType") | ||
.field("members", [def("EnumNumberMember")]) | ||
.field("explicitType", Boolean); | ||
def("EnumStringBody") | ||
.build("members", "explicitType") | ||
.field("members", or([def("EnumStringMember")], [def("EnumDefaultedMember")])) | ||
.field("explicitType", Boolean); | ||
def("EnumSymbolBody") | ||
.build("members") | ||
.field("members", [def("EnumDefaultedMember")]); | ||
def("EnumBooleanMember") | ||
.build("id", "init") | ||
.field("id", def("Identifier")) | ||
.field("init", or(def("Literal"), Boolean)); | ||
def("EnumNumberMember") | ||
.build("id", "init") | ||
.field("id", def("Identifier")) | ||
.field("init", def("Literal")); | ||
def("EnumStringMember") | ||
.build("id", "init") | ||
.field("id", def("Identifier")) | ||
.field("init", def("Literal")); | ||
def("EnumDefaultedMember") | ||
.build("id") | ||
.field("id", def("Identifier")); | ||
} | ||
exports.default = default_1; | ||
module.exports = exports["default"]; |
"use strict";; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var es7_1 = tslib_1.__importDefault(require("./es7")); | ||
var es2020_1 = tslib_1.__importDefault(require("./es2020")); | ||
var types_1 = tslib_1.__importDefault(require("../lib/types")); | ||
var shared_1 = tslib_1.__importDefault(require("../lib/shared")); | ||
function default_1(fork) { | ||
fork.use(es7_1.default); | ||
fork.use(es2020_1.default); | ||
var types = fork.use(types_1.default); | ||
@@ -19,2 +19,4 @@ var def = types.Type.def; | ||
def("JSXExpressionContainer"), // attr={value} | ||
def("JSXElement"), // attr=<div /> | ||
def("JSXFragment"), // attr=<></> | ||
null // attr= or just attr | ||
@@ -46,3 +48,5 @@ ), defaults["null"]); | ||
.build("expression") | ||
.field("expression", def("Expression")); | ||
.field("expression", or(def("Expression"), def("JSXEmptyExpression"))); | ||
var JSXChildren = [or(def("JSXText"), def("JSXExpressionContainer"), def("JSXSpreadChild"), def("JSXElement"), def("JSXFragment"), def("Literal") // Legacy: Esprima should return JSXText instead. | ||
)]; | ||
def("JSXElement") | ||
@@ -53,4 +57,3 @@ .bases("Expression") | ||
.field("closingElement", or(def("JSXClosingElement"), null), defaults["null"]) | ||
.field("children", [or(def("JSXElement"), def("JSXExpressionContainer"), def("JSXFragment"), def("JSXText"), def("Literal") // TODO Esprima should return JSXText instead. | ||
)], defaults.emptyArray) | ||
.field("children", JSXChildren, defaults.emptyArray) | ||
.field("name", JSXElementName, function () { | ||
@@ -71,3 +74,3 @@ // Little-known fact: the `this` object inside a default function | ||
def("JSXOpeningElement") | ||
.bases("Node") // TODO Does this make sense? Can't really be an JSXElement. | ||
.bases("Node") | ||
.build("name", "attributes", "selfClosing") | ||
@@ -78,3 +81,3 @@ .field("name", JSXElementName) | ||
def("JSXClosingElement") | ||
.bases("Node") // TODO Same concern. | ||
.bases("Node") | ||
.build("name") | ||
@@ -84,22 +87,24 @@ .field("name", JSXElementName); | ||
.bases("Expression") | ||
.build("openingElement", "closingElement", "children") | ||
.field("openingElement", def("JSXOpeningFragment")) | ||
.field("closingElement", def("JSXClosingFragment")) | ||
.field("children", [or(def("JSXElement"), def("JSXExpressionContainer"), def("JSXFragment"), def("JSXText"), def("Literal") // TODO Esprima should return JSXText instead. | ||
)], defaults.emptyArray); | ||
.build("openingFragment", "closingFragment", "children") | ||
.field("openingFragment", def("JSXOpeningFragment")) | ||
.field("closingFragment", def("JSXClosingFragment")) | ||
.field("children", JSXChildren, defaults.emptyArray); | ||
def("JSXOpeningFragment") | ||
.bases("Node") // TODO Same concern. | ||
.bases("Node") | ||
.build(); | ||
def("JSXClosingFragment") | ||
.bases("Node") // TODO Same concern. | ||
.bases("Node") | ||
.build(); | ||
def("JSXText") | ||
.bases("Literal") | ||
.build("value") | ||
.field("value", String); | ||
def("JSXEmptyExpression").bases("Expression").build(); | ||
// This PR has caused many people issues, but supporting it seems like a | ||
// good idea anyway: https://github.com/babel/babel/pull/4988 | ||
.build("value", "raw") | ||
.field("value", String) | ||
.field("raw", String, function () { | ||
return this.value; | ||
}); | ||
def("JSXEmptyExpression") | ||
.bases("Node") | ||
.build(); | ||
def("JSXSpreadChild") | ||
.bases("Expression") | ||
.bases("Node") | ||
.build("expression") | ||
@@ -106,0 +111,0 @@ .field("expression", def("Expression")); |
import { namedTypes } from "./namedTypes"; | ||
export declare type PrintableKind = namedTypes.File | namedTypes.Program | namedTypes.Identifier | namedTypes.BlockStatement | namedTypes.EmptyStatement | namedTypes.ExpressionStatement | namedTypes.IfStatement | namedTypes.LabeledStatement | namedTypes.BreakStatement | namedTypes.ContinueStatement | namedTypes.WithStatement | namedTypes.SwitchStatement | namedTypes.SwitchCase | namedTypes.ReturnStatement | namedTypes.ThrowStatement | namedTypes.TryStatement | namedTypes.CatchClause | namedTypes.WhileStatement | namedTypes.DoWhileStatement | namedTypes.ForStatement | namedTypes.VariableDeclaration | namedTypes.ForInStatement | namedTypes.DebuggerStatement | namedTypes.FunctionDeclaration | namedTypes.FunctionExpression | namedTypes.VariableDeclarator | namedTypes.ThisExpression | namedTypes.ArrayExpression | namedTypes.ObjectExpression | namedTypes.Property | namedTypes.Literal | namedTypes.SequenceExpression | namedTypes.UnaryExpression | namedTypes.BinaryExpression | namedTypes.AssignmentExpression | namedTypes.MemberExpression | namedTypes.UpdateExpression | namedTypes.LogicalExpression | namedTypes.ConditionalExpression | namedTypes.NewExpression | namedTypes.CallExpression | namedTypes.RestElement | namedTypes.TypeAnnotation | namedTypes.TSTypeAnnotation | namedTypes.SpreadElementPattern | namedTypes.ArrowFunctionExpression | namedTypes.ForOfStatement | namedTypes.YieldExpression | namedTypes.GeneratorExpression | namedTypes.ComprehensionBlock | namedTypes.ComprehensionExpression | namedTypes.ObjectProperty | namedTypes.PropertyPattern | namedTypes.ObjectPattern | namedTypes.ArrayPattern | namedTypes.MethodDefinition | namedTypes.SpreadElement | namedTypes.AssignmentPattern | namedTypes.ClassPropertyDefinition | namedTypes.ClassProperty | namedTypes.ClassBody | namedTypes.ClassDeclaration | namedTypes.ClassExpression | namedTypes.ImportSpecifier | namedTypes.ImportNamespaceSpecifier | namedTypes.ImportDefaultSpecifier | namedTypes.ImportDeclaration | namedTypes.TaggedTemplateExpression | namedTypes.TemplateLiteral | namedTypes.TemplateElement | namedTypes.SpreadProperty | namedTypes.SpreadPropertyPattern | namedTypes.AwaitExpression | namedTypes.ImportExpression | namedTypes.JSXAttribute | namedTypes.JSXIdentifier | namedTypes.JSXNamespacedName | namedTypes.JSXExpressionContainer | namedTypes.JSXMemberExpression | namedTypes.JSXSpreadAttribute | namedTypes.JSXElement | namedTypes.JSXOpeningElement | namedTypes.JSXClosingElement | namedTypes.JSXFragment | namedTypes.JSXText | namedTypes.JSXOpeningFragment | namedTypes.JSXClosingFragment | namedTypes.JSXEmptyExpression | namedTypes.JSXSpreadChild | namedTypes.TypeParameterDeclaration | namedTypes.TSTypeParameterDeclaration | namedTypes.TypeParameterInstantiation | namedTypes.TSTypeParameterInstantiation | namedTypes.ClassImplements | namedTypes.TSExpressionWithTypeArguments | namedTypes.AnyTypeAnnotation | namedTypes.EmptyTypeAnnotation | namedTypes.MixedTypeAnnotation | namedTypes.VoidTypeAnnotation | namedTypes.NumberTypeAnnotation | namedTypes.NumberLiteralTypeAnnotation | namedTypes.NumericLiteralTypeAnnotation | namedTypes.StringTypeAnnotation | namedTypes.StringLiteralTypeAnnotation | namedTypes.BooleanTypeAnnotation | namedTypes.BooleanLiteralTypeAnnotation | namedTypes.NullableTypeAnnotation | namedTypes.NullLiteralTypeAnnotation | namedTypes.NullTypeAnnotation | namedTypes.ThisTypeAnnotation | namedTypes.ExistsTypeAnnotation | namedTypes.ExistentialTypeParam | namedTypes.FunctionTypeAnnotation | namedTypes.FunctionTypeParam | namedTypes.ArrayTypeAnnotation | namedTypes.ObjectTypeAnnotation | namedTypes.ObjectTypeProperty | namedTypes.ObjectTypeSpreadProperty | namedTypes.ObjectTypeIndexer | namedTypes.ObjectTypeCallProperty | namedTypes.ObjectTypeInternalSlot | namedTypes.Variance | namedTypes.QualifiedTypeIdentifier | namedTypes.GenericTypeAnnotation | namedTypes.MemberTypeAnnotation | namedTypes.UnionTypeAnnotation | namedTypes.IntersectionTypeAnnotation | namedTypes.TypeofTypeAnnotation | namedTypes.TypeParameter | namedTypes.InterfaceTypeAnnotation | namedTypes.InterfaceExtends | namedTypes.InterfaceDeclaration | namedTypes.DeclareInterface | namedTypes.TypeAlias | namedTypes.OpaqueType | namedTypes.DeclareTypeAlias | namedTypes.DeclareOpaqueType | namedTypes.TypeCastExpression | namedTypes.TupleTypeAnnotation | namedTypes.DeclareVariable | namedTypes.DeclareFunction | namedTypes.DeclareClass | namedTypes.DeclareModule | namedTypes.DeclareModuleExports | namedTypes.DeclareExportDeclaration | namedTypes.ExportSpecifier | namedTypes.ExportBatchSpecifier | namedTypes.DeclareExportAllDeclaration | namedTypes.InferredPredicate | namedTypes.DeclaredPredicate | namedTypes.ExportDeclaration | namedTypes.Block | namedTypes.Line | namedTypes.Noop | namedTypes.DoExpression | namedTypes.Super | namedTypes.BindExpression | namedTypes.Decorator | namedTypes.MetaProperty | namedTypes.ParenthesizedExpression | namedTypes.ExportDefaultDeclaration | namedTypes.ExportNamedDeclaration | namedTypes.ExportNamespaceSpecifier | namedTypes.ExportDefaultSpecifier | namedTypes.ExportAllDeclaration | namedTypes.CommentBlock | namedTypes.CommentLine | namedTypes.Directive | namedTypes.DirectiveLiteral | namedTypes.InterpreterDirective | namedTypes.StringLiteral | namedTypes.NumericLiteral | namedTypes.BigIntLiteral | namedTypes.NullLiteral | namedTypes.BooleanLiteral | namedTypes.RegExpLiteral | namedTypes.ObjectMethod | namedTypes.ClassPrivateProperty | namedTypes.ClassMethod | namedTypes.ClassPrivateMethod | namedTypes.PrivateName | namedTypes.RestProperty | namedTypes.ForAwaitStatement | namedTypes.Import | namedTypes.TSQualifiedName | namedTypes.TSTypeReference | namedTypes.TSAsExpression | namedTypes.TSNonNullExpression | namedTypes.TSAnyKeyword | namedTypes.TSBigIntKeyword | namedTypes.TSBooleanKeyword | namedTypes.TSNeverKeyword | namedTypes.TSNullKeyword | namedTypes.TSNumberKeyword | namedTypes.TSObjectKeyword | namedTypes.TSStringKeyword | namedTypes.TSSymbolKeyword | namedTypes.TSUndefinedKeyword | namedTypes.TSUnknownKeyword | namedTypes.TSVoidKeyword | namedTypes.TSThisType | namedTypes.TSArrayType | namedTypes.TSLiteralType | namedTypes.TSUnionType | namedTypes.TSIntersectionType | namedTypes.TSConditionalType | namedTypes.TSInferType | namedTypes.TSTypeParameter | namedTypes.TSParenthesizedType | namedTypes.TSFunctionType | namedTypes.TSConstructorType | namedTypes.TSDeclareFunction | namedTypes.TSDeclareMethod | namedTypes.TSMappedType | namedTypes.TSTupleType | namedTypes.TSNamedTupleMember | namedTypes.TSRestType | namedTypes.TSOptionalType | namedTypes.TSIndexedAccessType | namedTypes.TSTypeOperator | namedTypes.TSIndexSignature | namedTypes.TSPropertySignature | namedTypes.TSMethodSignature | namedTypes.TSTypePredicate | namedTypes.TSCallSignatureDeclaration | namedTypes.TSConstructSignatureDeclaration | namedTypes.TSEnumMember | namedTypes.TSTypeQuery | namedTypes.TSImportType | namedTypes.TSTypeLiteral | namedTypes.TSTypeAssertion | namedTypes.TSEnumDeclaration | namedTypes.TSTypeAliasDeclaration | namedTypes.TSModuleBlock | namedTypes.TSModuleDeclaration | namedTypes.TSImportEqualsDeclaration | namedTypes.TSExternalModuleReference | namedTypes.TSExportAssignment | namedTypes.TSNamespaceExportDeclaration | namedTypes.TSInterfaceBody | namedTypes.TSInterfaceDeclaration | namedTypes.TSParameterProperty | namedTypes.OptionalMemberExpression | namedTypes.OptionalCallExpression; | ||
export declare type PrintableKind = namedTypes.File | namedTypes.Program | namedTypes.Identifier | namedTypes.BlockStatement | namedTypes.EmptyStatement | namedTypes.ExpressionStatement | namedTypes.IfStatement | namedTypes.LabeledStatement | namedTypes.BreakStatement | namedTypes.ContinueStatement | namedTypes.WithStatement | namedTypes.SwitchStatement | namedTypes.SwitchCase | namedTypes.ReturnStatement | namedTypes.ThrowStatement | namedTypes.TryStatement | namedTypes.CatchClause | namedTypes.WhileStatement | namedTypes.DoWhileStatement | namedTypes.ForStatement | namedTypes.VariableDeclaration | namedTypes.ForInStatement | namedTypes.DebuggerStatement | namedTypes.FunctionDeclaration | namedTypes.FunctionExpression | namedTypes.VariableDeclarator | namedTypes.ThisExpression | namedTypes.ArrayExpression | namedTypes.ObjectExpression | namedTypes.Property | namedTypes.Literal | namedTypes.SequenceExpression | namedTypes.UnaryExpression | namedTypes.BinaryExpression | namedTypes.AssignmentExpression | namedTypes.MemberExpression | namedTypes.UpdateExpression | namedTypes.LogicalExpression | namedTypes.ConditionalExpression | namedTypes.NewExpression | namedTypes.CallExpression | namedTypes.RestElement | namedTypes.TypeAnnotation | namedTypes.TSTypeAnnotation | namedTypes.SpreadElementPattern | namedTypes.ArrowFunctionExpression | namedTypes.ForOfStatement | namedTypes.YieldExpression | namedTypes.GeneratorExpression | namedTypes.ComprehensionBlock | namedTypes.ComprehensionExpression | namedTypes.ObjectProperty | namedTypes.PropertyPattern | namedTypes.ObjectPattern | namedTypes.ArrayPattern | namedTypes.SpreadElement | namedTypes.AssignmentPattern | namedTypes.MethodDefinition | namedTypes.ClassPropertyDefinition | namedTypes.ClassProperty | namedTypes.ClassBody | namedTypes.ClassDeclaration | namedTypes.ClassExpression | namedTypes.Super | namedTypes.ImportSpecifier | namedTypes.ImportDefaultSpecifier | namedTypes.ImportNamespaceSpecifier | namedTypes.ImportDeclaration | namedTypes.ExportNamedDeclaration | namedTypes.ExportSpecifier | namedTypes.ExportDefaultDeclaration | namedTypes.ExportAllDeclaration | namedTypes.TaggedTemplateExpression | namedTypes.TemplateLiteral | namedTypes.TemplateElement | namedTypes.MetaProperty | namedTypes.AwaitExpression | namedTypes.SpreadProperty | namedTypes.SpreadPropertyPattern | namedTypes.ImportExpression | namedTypes.OptionalMemberExpression | namedTypes.OptionalCallExpression | namedTypes.JSXAttribute | namedTypes.JSXIdentifier | namedTypes.JSXNamespacedName | namedTypes.JSXExpressionContainer | namedTypes.JSXElement | namedTypes.JSXFragment | namedTypes.JSXMemberExpression | namedTypes.JSXSpreadAttribute | namedTypes.JSXEmptyExpression | namedTypes.JSXText | namedTypes.JSXSpreadChild | namedTypes.JSXOpeningElement | namedTypes.JSXClosingElement | namedTypes.JSXOpeningFragment | namedTypes.JSXClosingFragment | namedTypes.Decorator | namedTypes.PrivateName | namedTypes.ClassPrivateProperty | namedTypes.TypeParameterDeclaration | namedTypes.TSTypeParameterDeclaration | namedTypes.TypeParameterInstantiation | namedTypes.TSTypeParameterInstantiation | namedTypes.ClassImplements | namedTypes.TSExpressionWithTypeArguments | namedTypes.AnyTypeAnnotation | namedTypes.EmptyTypeAnnotation | namedTypes.MixedTypeAnnotation | namedTypes.VoidTypeAnnotation | namedTypes.SymbolTypeAnnotation | namedTypes.NumberTypeAnnotation | namedTypes.BigIntTypeAnnotation | namedTypes.NumberLiteralTypeAnnotation | namedTypes.NumericLiteralTypeAnnotation | namedTypes.BigIntLiteralTypeAnnotation | namedTypes.StringTypeAnnotation | namedTypes.StringLiteralTypeAnnotation | namedTypes.BooleanTypeAnnotation | namedTypes.BooleanLiteralTypeAnnotation | namedTypes.NullableTypeAnnotation | namedTypes.NullLiteralTypeAnnotation | namedTypes.NullTypeAnnotation | namedTypes.ThisTypeAnnotation | namedTypes.ExistsTypeAnnotation | namedTypes.ExistentialTypeParam | namedTypes.FunctionTypeAnnotation | namedTypes.FunctionTypeParam | namedTypes.ArrayTypeAnnotation | namedTypes.ObjectTypeAnnotation | namedTypes.ObjectTypeProperty | namedTypes.ObjectTypeSpreadProperty | namedTypes.ObjectTypeIndexer | namedTypes.ObjectTypeCallProperty | namedTypes.ObjectTypeInternalSlot | namedTypes.Variance | namedTypes.QualifiedTypeIdentifier | namedTypes.GenericTypeAnnotation | namedTypes.MemberTypeAnnotation | namedTypes.UnionTypeAnnotation | namedTypes.IntersectionTypeAnnotation | namedTypes.TypeofTypeAnnotation | namedTypes.TypeParameter | namedTypes.InterfaceTypeAnnotation | namedTypes.InterfaceExtends | namedTypes.InterfaceDeclaration | namedTypes.DeclareInterface | namedTypes.TypeAlias | namedTypes.DeclareTypeAlias | namedTypes.OpaqueType | namedTypes.DeclareOpaqueType | namedTypes.TypeCastExpression | namedTypes.TupleTypeAnnotation | namedTypes.DeclareVariable | namedTypes.DeclareFunction | namedTypes.DeclareClass | namedTypes.DeclareModule | namedTypes.DeclareModuleExports | namedTypes.DeclareExportDeclaration | namedTypes.ExportBatchSpecifier | namedTypes.DeclareExportAllDeclaration | namedTypes.InferredPredicate | namedTypes.DeclaredPredicate | namedTypes.EnumDeclaration | namedTypes.ExportDeclaration | namedTypes.Block | namedTypes.Line | namedTypes.Noop | namedTypes.DoExpression | namedTypes.BindExpression | namedTypes.ParenthesizedExpression | namedTypes.ExportNamespaceSpecifier | namedTypes.ExportDefaultSpecifier | namedTypes.CommentBlock | namedTypes.CommentLine | namedTypes.Directive | namedTypes.DirectiveLiteral | namedTypes.InterpreterDirective | namedTypes.StringLiteral | namedTypes.NumericLiteral | namedTypes.BigIntLiteral | namedTypes.NullLiteral | namedTypes.BooleanLiteral | namedTypes.RegExpLiteral | namedTypes.ObjectMethod | namedTypes.ClassMethod | namedTypes.ClassPrivateMethod | namedTypes.RestProperty | namedTypes.ForAwaitStatement | namedTypes.Import | namedTypes.TSQualifiedName | namedTypes.TSTypeReference | namedTypes.TSAsExpression | namedTypes.TSNonNullExpression | namedTypes.TSAnyKeyword | namedTypes.TSBigIntKeyword | namedTypes.TSBooleanKeyword | namedTypes.TSNeverKeyword | namedTypes.TSNullKeyword | namedTypes.TSNumberKeyword | namedTypes.TSObjectKeyword | namedTypes.TSStringKeyword | namedTypes.TSSymbolKeyword | namedTypes.TSUndefinedKeyword | namedTypes.TSUnknownKeyword | namedTypes.TSVoidKeyword | namedTypes.TSThisType | namedTypes.TSArrayType | namedTypes.TSLiteralType | namedTypes.TSUnionType | namedTypes.TSIntersectionType | namedTypes.TSConditionalType | namedTypes.TSInferType | namedTypes.TSTypeParameter | namedTypes.TSParenthesizedType | namedTypes.TSFunctionType | namedTypes.TSConstructorType | namedTypes.TSDeclareFunction | namedTypes.TSDeclareMethod | namedTypes.TSMappedType | namedTypes.TSTupleType | namedTypes.TSNamedTupleMember | namedTypes.TSRestType | namedTypes.TSOptionalType | namedTypes.TSIndexedAccessType | namedTypes.TSTypeOperator | namedTypes.TSIndexSignature | namedTypes.TSPropertySignature | namedTypes.TSMethodSignature | namedTypes.TSTypePredicate | namedTypes.TSCallSignatureDeclaration | namedTypes.TSConstructSignatureDeclaration | namedTypes.TSEnumMember | namedTypes.TSTypeQuery | namedTypes.TSImportType | namedTypes.TSTypeLiteral | namedTypes.TSTypeAssertion | namedTypes.TSEnumDeclaration | namedTypes.TSTypeAliasDeclaration | namedTypes.TSModuleBlock | namedTypes.TSModuleDeclaration | namedTypes.TSImportEqualsDeclaration | namedTypes.TSExternalModuleReference | namedTypes.TSExportAssignment | namedTypes.TSNamespaceExportDeclaration | namedTypes.TSInterfaceBody | namedTypes.TSInterfaceDeclaration | namedTypes.TSParameterProperty; | ||
export declare type SourceLocationKind = namedTypes.SourceLocation; | ||
export declare type NodeKind = namedTypes.File | namedTypes.Program | namedTypes.Identifier | namedTypes.BlockStatement | namedTypes.EmptyStatement | namedTypes.ExpressionStatement | namedTypes.IfStatement | namedTypes.LabeledStatement | namedTypes.BreakStatement | namedTypes.ContinueStatement | namedTypes.WithStatement | namedTypes.SwitchStatement | namedTypes.SwitchCase | namedTypes.ReturnStatement | namedTypes.ThrowStatement | namedTypes.TryStatement | namedTypes.CatchClause | namedTypes.WhileStatement | namedTypes.DoWhileStatement | namedTypes.ForStatement | namedTypes.VariableDeclaration | namedTypes.ForInStatement | namedTypes.DebuggerStatement | namedTypes.FunctionDeclaration | namedTypes.FunctionExpression | namedTypes.VariableDeclarator | namedTypes.ThisExpression | namedTypes.ArrayExpression | namedTypes.ObjectExpression | namedTypes.Property | namedTypes.Literal | namedTypes.SequenceExpression | namedTypes.UnaryExpression | namedTypes.BinaryExpression | namedTypes.AssignmentExpression | namedTypes.MemberExpression | namedTypes.UpdateExpression | namedTypes.LogicalExpression | namedTypes.ConditionalExpression | namedTypes.NewExpression | namedTypes.CallExpression | namedTypes.RestElement | namedTypes.TypeAnnotation | namedTypes.TSTypeAnnotation | namedTypes.SpreadElementPattern | namedTypes.ArrowFunctionExpression | namedTypes.ForOfStatement | namedTypes.YieldExpression | namedTypes.GeneratorExpression | namedTypes.ComprehensionBlock | namedTypes.ComprehensionExpression | namedTypes.ObjectProperty | namedTypes.PropertyPattern | namedTypes.ObjectPattern | namedTypes.ArrayPattern | namedTypes.MethodDefinition | namedTypes.SpreadElement | namedTypes.AssignmentPattern | namedTypes.ClassPropertyDefinition | namedTypes.ClassProperty | namedTypes.ClassBody | namedTypes.ClassDeclaration | namedTypes.ClassExpression | namedTypes.ImportSpecifier | namedTypes.ImportNamespaceSpecifier | namedTypes.ImportDefaultSpecifier | namedTypes.ImportDeclaration | namedTypes.TaggedTemplateExpression | namedTypes.TemplateLiteral | namedTypes.TemplateElement | namedTypes.SpreadProperty | namedTypes.SpreadPropertyPattern | namedTypes.AwaitExpression | namedTypes.ImportExpression | namedTypes.JSXAttribute | namedTypes.JSXIdentifier | namedTypes.JSXNamespacedName | namedTypes.JSXExpressionContainer | namedTypes.JSXMemberExpression | namedTypes.JSXSpreadAttribute | namedTypes.JSXElement | namedTypes.JSXOpeningElement | namedTypes.JSXClosingElement | namedTypes.JSXFragment | namedTypes.JSXText | namedTypes.JSXOpeningFragment | namedTypes.JSXClosingFragment | namedTypes.JSXEmptyExpression | namedTypes.JSXSpreadChild | namedTypes.TypeParameterDeclaration | namedTypes.TSTypeParameterDeclaration | namedTypes.TypeParameterInstantiation | namedTypes.TSTypeParameterInstantiation | namedTypes.ClassImplements | namedTypes.TSExpressionWithTypeArguments | namedTypes.AnyTypeAnnotation | namedTypes.EmptyTypeAnnotation | namedTypes.MixedTypeAnnotation | namedTypes.VoidTypeAnnotation | namedTypes.NumberTypeAnnotation | namedTypes.NumberLiteralTypeAnnotation | namedTypes.NumericLiteralTypeAnnotation | namedTypes.StringTypeAnnotation | namedTypes.StringLiteralTypeAnnotation | namedTypes.BooleanTypeAnnotation | namedTypes.BooleanLiteralTypeAnnotation | namedTypes.NullableTypeAnnotation | namedTypes.NullLiteralTypeAnnotation | namedTypes.NullTypeAnnotation | namedTypes.ThisTypeAnnotation | namedTypes.ExistsTypeAnnotation | namedTypes.ExistentialTypeParam | namedTypes.FunctionTypeAnnotation | namedTypes.FunctionTypeParam | namedTypes.ArrayTypeAnnotation | namedTypes.ObjectTypeAnnotation | namedTypes.ObjectTypeProperty | namedTypes.ObjectTypeSpreadProperty | namedTypes.ObjectTypeIndexer | namedTypes.ObjectTypeCallProperty | namedTypes.ObjectTypeInternalSlot | namedTypes.Variance | namedTypes.QualifiedTypeIdentifier | namedTypes.GenericTypeAnnotation | namedTypes.MemberTypeAnnotation | namedTypes.UnionTypeAnnotation | namedTypes.IntersectionTypeAnnotation | namedTypes.TypeofTypeAnnotation | namedTypes.TypeParameter | namedTypes.InterfaceTypeAnnotation | namedTypes.InterfaceExtends | namedTypes.InterfaceDeclaration | namedTypes.DeclareInterface | namedTypes.TypeAlias | namedTypes.OpaqueType | namedTypes.DeclareTypeAlias | namedTypes.DeclareOpaqueType | namedTypes.TypeCastExpression | namedTypes.TupleTypeAnnotation | namedTypes.DeclareVariable | namedTypes.DeclareFunction | namedTypes.DeclareClass | namedTypes.DeclareModule | namedTypes.DeclareModuleExports | namedTypes.DeclareExportDeclaration | namedTypes.ExportSpecifier | namedTypes.ExportBatchSpecifier | namedTypes.DeclareExportAllDeclaration | namedTypes.InferredPredicate | namedTypes.DeclaredPredicate | namedTypes.ExportDeclaration | namedTypes.Noop | namedTypes.DoExpression | namedTypes.Super | namedTypes.BindExpression | namedTypes.Decorator | namedTypes.MetaProperty | namedTypes.ParenthesizedExpression | namedTypes.ExportDefaultDeclaration | namedTypes.ExportNamedDeclaration | namedTypes.ExportNamespaceSpecifier | namedTypes.ExportDefaultSpecifier | namedTypes.ExportAllDeclaration | namedTypes.Directive | namedTypes.DirectiveLiteral | namedTypes.InterpreterDirective | namedTypes.StringLiteral | namedTypes.NumericLiteral | namedTypes.BigIntLiteral | namedTypes.NullLiteral | namedTypes.BooleanLiteral | namedTypes.RegExpLiteral | namedTypes.ObjectMethod | namedTypes.ClassPrivateProperty | namedTypes.ClassMethod | namedTypes.ClassPrivateMethod | namedTypes.PrivateName | namedTypes.RestProperty | namedTypes.ForAwaitStatement | namedTypes.Import | namedTypes.TSQualifiedName | namedTypes.TSTypeReference | namedTypes.TSAsExpression | namedTypes.TSNonNullExpression | namedTypes.TSAnyKeyword | namedTypes.TSBigIntKeyword | namedTypes.TSBooleanKeyword | namedTypes.TSNeverKeyword | namedTypes.TSNullKeyword | namedTypes.TSNumberKeyword | namedTypes.TSObjectKeyword | namedTypes.TSStringKeyword | namedTypes.TSSymbolKeyword | namedTypes.TSUndefinedKeyword | namedTypes.TSUnknownKeyword | namedTypes.TSVoidKeyword | namedTypes.TSThisType | namedTypes.TSArrayType | namedTypes.TSLiteralType | namedTypes.TSUnionType | namedTypes.TSIntersectionType | namedTypes.TSConditionalType | namedTypes.TSInferType | namedTypes.TSTypeParameter | namedTypes.TSParenthesizedType | namedTypes.TSFunctionType | namedTypes.TSConstructorType | namedTypes.TSDeclareFunction | namedTypes.TSDeclareMethod | namedTypes.TSMappedType | namedTypes.TSTupleType | namedTypes.TSNamedTupleMember | namedTypes.TSRestType | namedTypes.TSOptionalType | namedTypes.TSIndexedAccessType | namedTypes.TSTypeOperator | namedTypes.TSIndexSignature | namedTypes.TSPropertySignature | namedTypes.TSMethodSignature | namedTypes.TSTypePredicate | namedTypes.TSCallSignatureDeclaration | namedTypes.TSConstructSignatureDeclaration | namedTypes.TSEnumMember | namedTypes.TSTypeQuery | namedTypes.TSImportType | namedTypes.TSTypeLiteral | namedTypes.TSTypeAssertion | namedTypes.TSEnumDeclaration | namedTypes.TSTypeAliasDeclaration | namedTypes.TSModuleBlock | namedTypes.TSModuleDeclaration | namedTypes.TSImportEqualsDeclaration | namedTypes.TSExternalModuleReference | namedTypes.TSExportAssignment | namedTypes.TSNamespaceExportDeclaration | namedTypes.TSInterfaceBody | namedTypes.TSInterfaceDeclaration | namedTypes.TSParameterProperty | namedTypes.OptionalMemberExpression | namedTypes.OptionalCallExpression; | ||
export declare type NodeKind = namedTypes.File | namedTypes.Program | namedTypes.Identifier | namedTypes.BlockStatement | namedTypes.EmptyStatement | namedTypes.ExpressionStatement | namedTypes.IfStatement | namedTypes.LabeledStatement | namedTypes.BreakStatement | namedTypes.ContinueStatement | namedTypes.WithStatement | namedTypes.SwitchStatement | namedTypes.SwitchCase | namedTypes.ReturnStatement | namedTypes.ThrowStatement | namedTypes.TryStatement | namedTypes.CatchClause | namedTypes.WhileStatement | namedTypes.DoWhileStatement | namedTypes.ForStatement | namedTypes.VariableDeclaration | namedTypes.ForInStatement | namedTypes.DebuggerStatement | namedTypes.FunctionDeclaration | namedTypes.FunctionExpression | namedTypes.VariableDeclarator | namedTypes.ThisExpression | namedTypes.ArrayExpression | namedTypes.ObjectExpression | namedTypes.Property | namedTypes.Literal | namedTypes.SequenceExpression | namedTypes.UnaryExpression | namedTypes.BinaryExpression | namedTypes.AssignmentExpression | namedTypes.MemberExpression | namedTypes.UpdateExpression | namedTypes.LogicalExpression | namedTypes.ConditionalExpression | namedTypes.NewExpression | namedTypes.CallExpression | namedTypes.RestElement | namedTypes.TypeAnnotation | namedTypes.TSTypeAnnotation | namedTypes.SpreadElementPattern | namedTypes.ArrowFunctionExpression | namedTypes.ForOfStatement | namedTypes.YieldExpression | namedTypes.GeneratorExpression | namedTypes.ComprehensionBlock | namedTypes.ComprehensionExpression | namedTypes.ObjectProperty | namedTypes.PropertyPattern | namedTypes.ObjectPattern | namedTypes.ArrayPattern | namedTypes.SpreadElement | namedTypes.AssignmentPattern | namedTypes.MethodDefinition | namedTypes.ClassPropertyDefinition | namedTypes.ClassProperty | namedTypes.ClassBody | namedTypes.ClassDeclaration | namedTypes.ClassExpression | namedTypes.Super | namedTypes.ImportSpecifier | namedTypes.ImportDefaultSpecifier | namedTypes.ImportNamespaceSpecifier | namedTypes.ImportDeclaration | namedTypes.ExportNamedDeclaration | namedTypes.ExportSpecifier | namedTypes.ExportDefaultDeclaration | namedTypes.ExportAllDeclaration | namedTypes.TaggedTemplateExpression | namedTypes.TemplateLiteral | namedTypes.TemplateElement | namedTypes.MetaProperty | namedTypes.AwaitExpression | namedTypes.SpreadProperty | namedTypes.SpreadPropertyPattern | namedTypes.ImportExpression | namedTypes.OptionalMemberExpression | namedTypes.OptionalCallExpression | namedTypes.JSXAttribute | namedTypes.JSXIdentifier | namedTypes.JSXNamespacedName | namedTypes.JSXExpressionContainer | namedTypes.JSXElement | namedTypes.JSXFragment | namedTypes.JSXMemberExpression | namedTypes.JSXSpreadAttribute | namedTypes.JSXEmptyExpression | namedTypes.JSXText | namedTypes.JSXSpreadChild | namedTypes.JSXOpeningElement | namedTypes.JSXClosingElement | namedTypes.JSXOpeningFragment | namedTypes.JSXClosingFragment | namedTypes.Decorator | namedTypes.PrivateName | namedTypes.ClassPrivateProperty | namedTypes.TypeParameterDeclaration | namedTypes.TSTypeParameterDeclaration | namedTypes.TypeParameterInstantiation | namedTypes.TSTypeParameterInstantiation | namedTypes.ClassImplements | namedTypes.TSExpressionWithTypeArguments | namedTypes.AnyTypeAnnotation | namedTypes.EmptyTypeAnnotation | namedTypes.MixedTypeAnnotation | namedTypes.VoidTypeAnnotation | namedTypes.SymbolTypeAnnotation | namedTypes.NumberTypeAnnotation | namedTypes.BigIntTypeAnnotation | namedTypes.NumberLiteralTypeAnnotation | namedTypes.NumericLiteralTypeAnnotation | namedTypes.BigIntLiteralTypeAnnotation | namedTypes.StringTypeAnnotation | namedTypes.StringLiteralTypeAnnotation | namedTypes.BooleanTypeAnnotation | namedTypes.BooleanLiteralTypeAnnotation | namedTypes.NullableTypeAnnotation | namedTypes.NullLiteralTypeAnnotation | namedTypes.NullTypeAnnotation | namedTypes.ThisTypeAnnotation | namedTypes.ExistsTypeAnnotation | namedTypes.ExistentialTypeParam | namedTypes.FunctionTypeAnnotation | namedTypes.FunctionTypeParam | namedTypes.ArrayTypeAnnotation | namedTypes.ObjectTypeAnnotation | namedTypes.ObjectTypeProperty | namedTypes.ObjectTypeSpreadProperty | namedTypes.ObjectTypeIndexer | namedTypes.ObjectTypeCallProperty | namedTypes.ObjectTypeInternalSlot | namedTypes.Variance | namedTypes.QualifiedTypeIdentifier | namedTypes.GenericTypeAnnotation | namedTypes.MemberTypeAnnotation | namedTypes.UnionTypeAnnotation | namedTypes.IntersectionTypeAnnotation | namedTypes.TypeofTypeAnnotation | namedTypes.TypeParameter | namedTypes.InterfaceTypeAnnotation | namedTypes.InterfaceExtends | namedTypes.InterfaceDeclaration | namedTypes.DeclareInterface | namedTypes.TypeAlias | namedTypes.DeclareTypeAlias | namedTypes.OpaqueType | namedTypes.DeclareOpaqueType | namedTypes.TypeCastExpression | namedTypes.TupleTypeAnnotation | namedTypes.DeclareVariable | namedTypes.DeclareFunction | namedTypes.DeclareClass | namedTypes.DeclareModule | namedTypes.DeclareModuleExports | namedTypes.DeclareExportDeclaration | namedTypes.ExportBatchSpecifier | namedTypes.DeclareExportAllDeclaration | namedTypes.InferredPredicate | namedTypes.DeclaredPredicate | namedTypes.EnumDeclaration | namedTypes.ExportDeclaration | namedTypes.Noop | namedTypes.DoExpression | namedTypes.BindExpression | namedTypes.ParenthesizedExpression | namedTypes.ExportNamespaceSpecifier | namedTypes.ExportDefaultSpecifier | namedTypes.Directive | namedTypes.DirectiveLiteral | namedTypes.InterpreterDirective | namedTypes.StringLiteral | namedTypes.NumericLiteral | namedTypes.BigIntLiteral | namedTypes.NullLiteral | namedTypes.BooleanLiteral | namedTypes.RegExpLiteral | namedTypes.ObjectMethod | namedTypes.ClassMethod | namedTypes.ClassPrivateMethod | namedTypes.RestProperty | namedTypes.ForAwaitStatement | namedTypes.Import | namedTypes.TSQualifiedName | namedTypes.TSTypeReference | namedTypes.TSAsExpression | namedTypes.TSNonNullExpression | namedTypes.TSAnyKeyword | namedTypes.TSBigIntKeyword | namedTypes.TSBooleanKeyword | namedTypes.TSNeverKeyword | namedTypes.TSNullKeyword | namedTypes.TSNumberKeyword | namedTypes.TSObjectKeyword | namedTypes.TSStringKeyword | namedTypes.TSSymbolKeyword | namedTypes.TSUndefinedKeyword | namedTypes.TSUnknownKeyword | namedTypes.TSVoidKeyword | namedTypes.TSThisType | namedTypes.TSArrayType | namedTypes.TSLiteralType | namedTypes.TSUnionType | namedTypes.TSIntersectionType | namedTypes.TSConditionalType | namedTypes.TSInferType | namedTypes.TSTypeParameter | namedTypes.TSParenthesizedType | namedTypes.TSFunctionType | namedTypes.TSConstructorType | namedTypes.TSDeclareFunction | namedTypes.TSDeclareMethod | namedTypes.TSMappedType | namedTypes.TSTupleType | namedTypes.TSNamedTupleMember | namedTypes.TSRestType | namedTypes.TSOptionalType | namedTypes.TSIndexedAccessType | namedTypes.TSTypeOperator | namedTypes.TSIndexSignature | namedTypes.TSPropertySignature | namedTypes.TSMethodSignature | namedTypes.TSTypePredicate | namedTypes.TSCallSignatureDeclaration | namedTypes.TSConstructSignatureDeclaration | namedTypes.TSEnumMember | namedTypes.TSTypeQuery | namedTypes.TSImportType | namedTypes.TSTypeLiteral | namedTypes.TSTypeAssertion | namedTypes.TSEnumDeclaration | namedTypes.TSTypeAliasDeclaration | namedTypes.TSModuleBlock | namedTypes.TSModuleDeclaration | namedTypes.TSImportEqualsDeclaration | namedTypes.TSExternalModuleReference | namedTypes.TSExportAssignment | namedTypes.TSNamespaceExportDeclaration | namedTypes.TSInterfaceBody | namedTypes.TSInterfaceDeclaration | namedTypes.TSParameterProperty; | ||
export declare type CommentKind = namedTypes.Block | namedTypes.Line | namedTypes.CommentBlock | namedTypes.CommentLine; | ||
@@ -9,5 +9,5 @@ export declare type PositionKind = namedTypes.Position; | ||
export declare type ProgramKind = namedTypes.Program; | ||
export declare type StatementKind = namedTypes.BlockStatement | namedTypes.EmptyStatement | namedTypes.ExpressionStatement | namedTypes.IfStatement | namedTypes.LabeledStatement | namedTypes.BreakStatement | namedTypes.ContinueStatement | namedTypes.WithStatement | namedTypes.SwitchStatement | namedTypes.ReturnStatement | namedTypes.ThrowStatement | namedTypes.TryStatement | namedTypes.WhileStatement | namedTypes.DoWhileStatement | namedTypes.ForStatement | namedTypes.VariableDeclaration | namedTypes.ForInStatement | namedTypes.DebuggerStatement | namedTypes.FunctionDeclaration | namedTypes.ForOfStatement | namedTypes.MethodDefinition | namedTypes.ClassPropertyDefinition | namedTypes.ClassProperty | namedTypes.ClassBody | namedTypes.ClassDeclaration | namedTypes.ImportDeclaration | namedTypes.TSTypeParameterDeclaration | namedTypes.InterfaceDeclaration | namedTypes.DeclareInterface | namedTypes.TypeAlias | namedTypes.OpaqueType | namedTypes.DeclareTypeAlias | namedTypes.DeclareOpaqueType | namedTypes.DeclareVariable | namedTypes.DeclareFunction | namedTypes.DeclareClass | namedTypes.DeclareModule | namedTypes.DeclareModuleExports | namedTypes.DeclareExportDeclaration | namedTypes.DeclareExportAllDeclaration | namedTypes.ExportDeclaration | namedTypes.Noop | namedTypes.ExportDefaultDeclaration | namedTypes.ExportNamedDeclaration | namedTypes.ExportAllDeclaration | namedTypes.ClassPrivateProperty | namedTypes.ClassMethod | namedTypes.ClassPrivateMethod | namedTypes.ForAwaitStatement | namedTypes.TSDeclareFunction | namedTypes.TSDeclareMethod | namedTypes.TSIndexSignature | namedTypes.TSPropertySignature | namedTypes.TSMethodSignature | namedTypes.TSCallSignatureDeclaration | namedTypes.TSConstructSignatureDeclaration | namedTypes.TSEnumDeclaration | namedTypes.TSTypeAliasDeclaration | namedTypes.TSModuleDeclaration | namedTypes.TSImportEqualsDeclaration | namedTypes.TSExternalModuleReference | namedTypes.TSExportAssignment | namedTypes.TSNamespaceExportDeclaration | namedTypes.TSInterfaceDeclaration; | ||
export declare type StatementKind = namedTypes.BlockStatement | namedTypes.EmptyStatement | namedTypes.ExpressionStatement | namedTypes.IfStatement | namedTypes.LabeledStatement | namedTypes.BreakStatement | namedTypes.ContinueStatement | namedTypes.WithStatement | namedTypes.SwitchStatement | namedTypes.ReturnStatement | namedTypes.ThrowStatement | namedTypes.TryStatement | namedTypes.WhileStatement | namedTypes.DoWhileStatement | namedTypes.ForStatement | namedTypes.VariableDeclaration | namedTypes.ForInStatement | namedTypes.DebuggerStatement | namedTypes.FunctionDeclaration | namedTypes.ForOfStatement | namedTypes.MethodDefinition | namedTypes.ClassPropertyDefinition | namedTypes.ClassProperty | namedTypes.ClassBody | namedTypes.ClassDeclaration | namedTypes.ImportDeclaration | namedTypes.ExportNamedDeclaration | namedTypes.ExportDefaultDeclaration | namedTypes.ExportAllDeclaration | namedTypes.ClassPrivateProperty | namedTypes.TSTypeParameterDeclaration | namedTypes.InterfaceDeclaration | namedTypes.DeclareInterface | namedTypes.TypeAlias | namedTypes.DeclareTypeAlias | namedTypes.OpaqueType | namedTypes.DeclareOpaqueType | namedTypes.DeclareVariable | namedTypes.DeclareFunction | namedTypes.DeclareClass | namedTypes.DeclareModule | namedTypes.DeclareModuleExports | namedTypes.DeclareExportDeclaration | namedTypes.DeclareExportAllDeclaration | namedTypes.EnumDeclaration | namedTypes.ExportDeclaration | namedTypes.Noop | namedTypes.ClassMethod | namedTypes.ClassPrivateMethod | namedTypes.ForAwaitStatement | namedTypes.TSDeclareFunction | namedTypes.TSDeclareMethod | namedTypes.TSIndexSignature | namedTypes.TSPropertySignature | namedTypes.TSMethodSignature | namedTypes.TSCallSignatureDeclaration | namedTypes.TSConstructSignatureDeclaration | namedTypes.TSEnumDeclaration | namedTypes.TSTypeAliasDeclaration | namedTypes.TSModuleDeclaration | namedTypes.TSImportEqualsDeclaration | namedTypes.TSExternalModuleReference | namedTypes.TSExportAssignment | namedTypes.TSNamespaceExportDeclaration | namedTypes.TSInterfaceDeclaration; | ||
export declare type FunctionKind = namedTypes.FunctionDeclaration | namedTypes.FunctionExpression | namedTypes.ArrowFunctionExpression | namedTypes.ObjectMethod | namedTypes.ClassMethod | namedTypes.ClassPrivateMethod; | ||
export declare type ExpressionKind = namedTypes.Identifier | namedTypes.FunctionExpression | namedTypes.ThisExpression | namedTypes.ArrayExpression | namedTypes.ObjectExpression | namedTypes.Literal | namedTypes.SequenceExpression | namedTypes.UnaryExpression | namedTypes.BinaryExpression | namedTypes.AssignmentExpression | namedTypes.MemberExpression | namedTypes.UpdateExpression | namedTypes.LogicalExpression | namedTypes.ConditionalExpression | namedTypes.NewExpression | namedTypes.CallExpression | namedTypes.ArrowFunctionExpression | namedTypes.YieldExpression | namedTypes.GeneratorExpression | namedTypes.ComprehensionExpression | namedTypes.ClassExpression | namedTypes.TaggedTemplateExpression | namedTypes.TemplateLiteral | namedTypes.AwaitExpression | namedTypes.ImportExpression | namedTypes.JSXIdentifier | namedTypes.JSXExpressionContainer | namedTypes.JSXMemberExpression | namedTypes.JSXElement | namedTypes.JSXFragment | namedTypes.JSXText | namedTypes.JSXEmptyExpression | namedTypes.JSXSpreadChild | namedTypes.TypeCastExpression | namedTypes.DoExpression | namedTypes.Super | namedTypes.BindExpression | namedTypes.MetaProperty | namedTypes.ParenthesizedExpression | namedTypes.DirectiveLiteral | namedTypes.StringLiteral | namedTypes.NumericLiteral | namedTypes.BigIntLiteral | namedTypes.NullLiteral | namedTypes.BooleanLiteral | namedTypes.RegExpLiteral | namedTypes.PrivateName | namedTypes.Import | namedTypes.TSAsExpression | namedTypes.TSNonNullExpression | namedTypes.TSTypeParameter | namedTypes.TSTypeAssertion | namedTypes.OptionalMemberExpression | namedTypes.OptionalCallExpression; | ||
export declare type ExpressionKind = namedTypes.Identifier | namedTypes.FunctionExpression | namedTypes.ThisExpression | namedTypes.ArrayExpression | namedTypes.ObjectExpression | namedTypes.Literal | namedTypes.SequenceExpression | namedTypes.UnaryExpression | namedTypes.BinaryExpression | namedTypes.AssignmentExpression | namedTypes.MemberExpression | namedTypes.UpdateExpression | namedTypes.LogicalExpression | namedTypes.ConditionalExpression | namedTypes.NewExpression | namedTypes.CallExpression | namedTypes.ArrowFunctionExpression | namedTypes.YieldExpression | namedTypes.GeneratorExpression | namedTypes.ComprehensionExpression | namedTypes.ClassExpression | namedTypes.Super | namedTypes.TaggedTemplateExpression | namedTypes.TemplateLiteral | namedTypes.MetaProperty | namedTypes.AwaitExpression | namedTypes.ImportExpression | namedTypes.OptionalMemberExpression | namedTypes.OptionalCallExpression | namedTypes.JSXIdentifier | namedTypes.JSXExpressionContainer | namedTypes.JSXElement | namedTypes.JSXFragment | namedTypes.JSXMemberExpression | namedTypes.JSXText | namedTypes.PrivateName | namedTypes.TypeCastExpression | namedTypes.DoExpression | namedTypes.BindExpression | namedTypes.ParenthesizedExpression | namedTypes.DirectiveLiteral | namedTypes.StringLiteral | namedTypes.NumericLiteral | namedTypes.BigIntLiteral | namedTypes.NullLiteral | namedTypes.BooleanLiteral | namedTypes.RegExpLiteral | namedTypes.Import | namedTypes.TSAsExpression | namedTypes.TSNonNullExpression | namedTypes.TSTypeParameter | namedTypes.TSTypeAssertion; | ||
export declare type PatternKind = namedTypes.Identifier | namedTypes.RestElement | namedTypes.SpreadElementPattern | namedTypes.PropertyPattern | namedTypes.ObjectPattern | namedTypes.ArrayPattern | namedTypes.AssignmentPattern | namedTypes.SpreadPropertyPattern | namedTypes.JSXIdentifier | namedTypes.PrivateName | namedTypes.TSAsExpression | namedTypes.TSNonNullExpression | namedTypes.TSTypeParameter | namedTypes.TSTypeAssertion | namedTypes.TSParameterProperty; | ||
@@ -32,3 +32,3 @@ export declare type IdentifierKind = namedTypes.Identifier | namedTypes.JSXIdentifier | namedTypes.TSTypeParameter; | ||
export declare type ForStatementKind = namedTypes.ForStatement; | ||
export declare type DeclarationKind = namedTypes.VariableDeclaration | namedTypes.FunctionDeclaration | namedTypes.MethodDefinition | namedTypes.ClassPropertyDefinition | namedTypes.ClassProperty | namedTypes.ClassBody | namedTypes.ClassDeclaration | namedTypes.ImportDeclaration | namedTypes.TSTypeParameterDeclaration | namedTypes.InterfaceDeclaration | namedTypes.DeclareInterface | namedTypes.TypeAlias | namedTypes.OpaqueType | namedTypes.DeclareTypeAlias | namedTypes.DeclareOpaqueType | namedTypes.DeclareClass | namedTypes.DeclareExportDeclaration | namedTypes.DeclareExportAllDeclaration | namedTypes.ExportDeclaration | namedTypes.ExportDefaultDeclaration | namedTypes.ExportNamedDeclaration | namedTypes.ExportAllDeclaration | namedTypes.ClassPrivateProperty | namedTypes.ClassMethod | namedTypes.ClassPrivateMethod | namedTypes.TSDeclareFunction | namedTypes.TSDeclareMethod | namedTypes.TSIndexSignature | namedTypes.TSPropertySignature | namedTypes.TSMethodSignature | namedTypes.TSCallSignatureDeclaration | namedTypes.TSConstructSignatureDeclaration | namedTypes.TSEnumDeclaration | namedTypes.TSTypeAliasDeclaration | namedTypes.TSModuleDeclaration | namedTypes.TSImportEqualsDeclaration | namedTypes.TSExternalModuleReference | namedTypes.TSNamespaceExportDeclaration | namedTypes.TSInterfaceDeclaration; | ||
export declare type DeclarationKind = namedTypes.VariableDeclaration | namedTypes.FunctionDeclaration | namedTypes.MethodDefinition | namedTypes.ClassPropertyDefinition | namedTypes.ClassProperty | namedTypes.ClassBody | namedTypes.ClassDeclaration | namedTypes.ImportDeclaration | namedTypes.ExportNamedDeclaration | namedTypes.ExportDefaultDeclaration | namedTypes.ExportAllDeclaration | namedTypes.ClassPrivateProperty | namedTypes.TSTypeParameterDeclaration | namedTypes.InterfaceDeclaration | namedTypes.DeclareInterface | namedTypes.TypeAlias | namedTypes.DeclareTypeAlias | namedTypes.OpaqueType | namedTypes.DeclareOpaqueType | namedTypes.DeclareClass | namedTypes.DeclareExportDeclaration | namedTypes.DeclareExportAllDeclaration | namedTypes.EnumDeclaration | namedTypes.ExportDeclaration | namedTypes.ClassMethod | namedTypes.ClassPrivateMethod | namedTypes.TSDeclareFunction | namedTypes.TSDeclareMethod | namedTypes.TSIndexSignature | namedTypes.TSPropertySignature | namedTypes.TSMethodSignature | namedTypes.TSCallSignatureDeclaration | namedTypes.TSConstructSignatureDeclaration | namedTypes.TSEnumDeclaration | namedTypes.TSTypeAliasDeclaration | namedTypes.TSModuleDeclaration | namedTypes.TSImportEqualsDeclaration | namedTypes.TSExternalModuleReference | namedTypes.TSNamespaceExportDeclaration | namedTypes.TSInterfaceDeclaration; | ||
export declare type VariableDeclarationKind = namedTypes.VariableDeclaration; | ||
@@ -49,3 +49,3 @@ export declare type ForInStatementKind = namedTypes.ForInStatement; | ||
export declare type AssignmentExpressionKind = namedTypes.AssignmentExpression; | ||
export declare type MemberExpressionKind = namedTypes.MemberExpression | namedTypes.JSXMemberExpression | namedTypes.OptionalMemberExpression; | ||
export declare type MemberExpressionKind = namedTypes.MemberExpression | namedTypes.OptionalMemberExpression | namedTypes.JSXMemberExpression; | ||
export declare type UpdateExpressionKind = namedTypes.UpdateExpression; | ||
@@ -70,5 +70,5 @@ export declare type LogicalExpressionKind = namedTypes.LogicalExpression; | ||
export declare type ArrayPatternKind = namedTypes.ArrayPattern; | ||
export declare type MethodDefinitionKind = namedTypes.MethodDefinition; | ||
export declare type SpreadElementKind = namedTypes.SpreadElement; | ||
export declare type AssignmentPatternKind = namedTypes.AssignmentPattern; | ||
export declare type MethodDefinitionKind = namedTypes.MethodDefinition; | ||
export declare type ClassPropertyDefinitionKind = namedTypes.ClassPropertyDefinition; | ||
@@ -79,15 +79,23 @@ export declare type ClassPropertyKind = namedTypes.ClassProperty | namedTypes.ClassPrivateProperty; | ||
export declare type ClassExpressionKind = namedTypes.ClassExpression; | ||
export declare type SpecifierKind = namedTypes.ImportSpecifier | namedTypes.ImportNamespaceSpecifier | namedTypes.ImportDefaultSpecifier | namedTypes.ExportSpecifier | namedTypes.ExportBatchSpecifier | namedTypes.ExportNamespaceSpecifier | namedTypes.ExportDefaultSpecifier; | ||
export declare type ModuleSpecifierKind = namedTypes.ImportSpecifier | namedTypes.ImportNamespaceSpecifier | namedTypes.ImportDefaultSpecifier | namedTypes.ExportSpecifier; | ||
export declare type SuperKind = namedTypes.Super; | ||
export declare type SpecifierKind = namedTypes.ImportSpecifier | namedTypes.ImportDefaultSpecifier | namedTypes.ImportNamespaceSpecifier | namedTypes.ExportSpecifier | namedTypes.ExportBatchSpecifier | namedTypes.ExportNamespaceSpecifier | namedTypes.ExportDefaultSpecifier; | ||
export declare type ModuleSpecifierKind = namedTypes.ImportSpecifier | namedTypes.ImportDefaultSpecifier | namedTypes.ImportNamespaceSpecifier | namedTypes.ExportSpecifier; | ||
export declare type ImportSpecifierKind = namedTypes.ImportSpecifier; | ||
export declare type ImportDefaultSpecifierKind = namedTypes.ImportDefaultSpecifier; | ||
export declare type ImportNamespaceSpecifierKind = namedTypes.ImportNamespaceSpecifier; | ||
export declare type ImportDefaultSpecifierKind = namedTypes.ImportDefaultSpecifier; | ||
export declare type ImportDeclarationKind = namedTypes.ImportDeclaration; | ||
export declare type ExportNamedDeclarationKind = namedTypes.ExportNamedDeclaration; | ||
export declare type ExportSpecifierKind = namedTypes.ExportSpecifier; | ||
export declare type ExportDefaultDeclarationKind = namedTypes.ExportDefaultDeclaration; | ||
export declare type ExportAllDeclarationKind = namedTypes.ExportAllDeclaration; | ||
export declare type TaggedTemplateExpressionKind = namedTypes.TaggedTemplateExpression; | ||
export declare type TemplateLiteralKind = namedTypes.TemplateLiteral; | ||
export declare type TemplateElementKind = namedTypes.TemplateElement; | ||
export declare type MetaPropertyKind = namedTypes.MetaProperty; | ||
export declare type AwaitExpressionKind = namedTypes.AwaitExpression; | ||
export declare type SpreadPropertyKind = namedTypes.SpreadProperty; | ||
export declare type SpreadPropertyPatternKind = namedTypes.SpreadPropertyPattern; | ||
export declare type AwaitExpressionKind = namedTypes.AwaitExpression; | ||
export declare type ImportExpressionKind = namedTypes.ImportExpression; | ||
export declare type OptionalMemberExpressionKind = namedTypes.OptionalMemberExpression; | ||
export declare type OptionalCallExpressionKind = namedTypes.OptionalCallExpression; | ||
export declare type JSXAttributeKind = namedTypes.JSXAttribute; | ||
@@ -97,13 +105,16 @@ export declare type JSXIdentifierKind = namedTypes.JSXIdentifier; | ||
export declare type JSXExpressionContainerKind = namedTypes.JSXExpressionContainer; | ||
export declare type JSXElementKind = namedTypes.JSXElement; | ||
export declare type JSXFragmentKind = namedTypes.JSXFragment; | ||
export declare type JSXMemberExpressionKind = namedTypes.JSXMemberExpression; | ||
export declare type JSXSpreadAttributeKind = namedTypes.JSXSpreadAttribute; | ||
export declare type JSXElementKind = namedTypes.JSXElement; | ||
export declare type JSXEmptyExpressionKind = namedTypes.JSXEmptyExpression; | ||
export declare type JSXTextKind = namedTypes.JSXText; | ||
export declare type JSXSpreadChildKind = namedTypes.JSXSpreadChild; | ||
export declare type JSXOpeningElementKind = namedTypes.JSXOpeningElement; | ||
export declare type JSXClosingElementKind = namedTypes.JSXClosingElement; | ||
export declare type JSXFragmentKind = namedTypes.JSXFragment; | ||
export declare type JSXTextKind = namedTypes.JSXText; | ||
export declare type JSXOpeningFragmentKind = namedTypes.JSXOpeningFragment; | ||
export declare type JSXClosingFragmentKind = namedTypes.JSXClosingFragment; | ||
export declare type JSXEmptyExpressionKind = namedTypes.JSXEmptyExpression; | ||
export declare type JSXSpreadChildKind = namedTypes.JSXSpreadChild; | ||
export declare type DecoratorKind = namedTypes.Decorator; | ||
export declare type PrivateNameKind = namedTypes.PrivateName; | ||
export declare type ClassPrivatePropertyKind = namedTypes.ClassPrivateProperty; | ||
export declare type TypeParameterDeclarationKind = namedTypes.TypeParameterDeclaration; | ||
@@ -117,4 +128,4 @@ export declare type TSTypeParameterDeclarationKind = namedTypes.TSTypeParameterDeclaration; | ||
export declare type TSExpressionWithTypeArgumentsKind = namedTypes.TSExpressionWithTypeArguments; | ||
export declare type FlowKind = namedTypes.AnyTypeAnnotation | namedTypes.EmptyTypeAnnotation | namedTypes.MixedTypeAnnotation | namedTypes.VoidTypeAnnotation | namedTypes.NumberTypeAnnotation | namedTypes.NumberLiteralTypeAnnotation | namedTypes.NumericLiteralTypeAnnotation | namedTypes.StringTypeAnnotation | namedTypes.StringLiteralTypeAnnotation | namedTypes.BooleanTypeAnnotation | namedTypes.BooleanLiteralTypeAnnotation | namedTypes.NullableTypeAnnotation | namedTypes.NullLiteralTypeAnnotation | namedTypes.NullTypeAnnotation | namedTypes.ThisTypeAnnotation | namedTypes.ExistsTypeAnnotation | namedTypes.ExistentialTypeParam | namedTypes.FunctionTypeAnnotation | namedTypes.ArrayTypeAnnotation | namedTypes.ObjectTypeAnnotation | namedTypes.GenericTypeAnnotation | namedTypes.MemberTypeAnnotation | namedTypes.UnionTypeAnnotation | namedTypes.IntersectionTypeAnnotation | namedTypes.TypeofTypeAnnotation | namedTypes.TypeParameter | namedTypes.InterfaceTypeAnnotation | namedTypes.TupleTypeAnnotation | namedTypes.InferredPredicate | namedTypes.DeclaredPredicate; | ||
export declare type FlowTypeKind = namedTypes.AnyTypeAnnotation | namedTypes.EmptyTypeAnnotation | namedTypes.MixedTypeAnnotation | namedTypes.VoidTypeAnnotation | namedTypes.NumberTypeAnnotation | namedTypes.NumberLiteralTypeAnnotation | namedTypes.NumericLiteralTypeAnnotation | namedTypes.StringTypeAnnotation | namedTypes.StringLiteralTypeAnnotation | namedTypes.BooleanTypeAnnotation | namedTypes.BooleanLiteralTypeAnnotation | namedTypes.NullableTypeAnnotation | namedTypes.NullLiteralTypeAnnotation | namedTypes.NullTypeAnnotation | namedTypes.ThisTypeAnnotation | namedTypes.ExistsTypeAnnotation | namedTypes.ExistentialTypeParam | namedTypes.FunctionTypeAnnotation | namedTypes.ArrayTypeAnnotation | namedTypes.ObjectTypeAnnotation | namedTypes.GenericTypeAnnotation | namedTypes.MemberTypeAnnotation | namedTypes.UnionTypeAnnotation | namedTypes.IntersectionTypeAnnotation | namedTypes.TypeofTypeAnnotation | namedTypes.TypeParameter | namedTypes.InterfaceTypeAnnotation | namedTypes.TupleTypeAnnotation; | ||
export declare type FlowKind = namedTypes.AnyTypeAnnotation | namedTypes.EmptyTypeAnnotation | namedTypes.MixedTypeAnnotation | namedTypes.VoidTypeAnnotation | namedTypes.SymbolTypeAnnotation | namedTypes.NumberTypeAnnotation | namedTypes.BigIntTypeAnnotation | namedTypes.NumberLiteralTypeAnnotation | namedTypes.NumericLiteralTypeAnnotation | namedTypes.BigIntLiteralTypeAnnotation | namedTypes.StringTypeAnnotation | namedTypes.StringLiteralTypeAnnotation | namedTypes.BooleanTypeAnnotation | namedTypes.BooleanLiteralTypeAnnotation | namedTypes.NullableTypeAnnotation | namedTypes.NullLiteralTypeAnnotation | namedTypes.NullTypeAnnotation | namedTypes.ThisTypeAnnotation | namedTypes.ExistsTypeAnnotation | namedTypes.ExistentialTypeParam | namedTypes.FunctionTypeAnnotation | namedTypes.ArrayTypeAnnotation | namedTypes.ObjectTypeAnnotation | namedTypes.GenericTypeAnnotation | namedTypes.MemberTypeAnnotation | namedTypes.UnionTypeAnnotation | namedTypes.IntersectionTypeAnnotation | namedTypes.TypeofTypeAnnotation | namedTypes.TypeParameter | namedTypes.InterfaceTypeAnnotation | namedTypes.TupleTypeAnnotation | namedTypes.InferredPredicate | namedTypes.DeclaredPredicate; | ||
export declare type FlowTypeKind = namedTypes.AnyTypeAnnotation | namedTypes.EmptyTypeAnnotation | namedTypes.MixedTypeAnnotation | namedTypes.VoidTypeAnnotation | namedTypes.SymbolTypeAnnotation | namedTypes.NumberTypeAnnotation | namedTypes.BigIntTypeAnnotation | namedTypes.NumberLiteralTypeAnnotation | namedTypes.NumericLiteralTypeAnnotation | namedTypes.BigIntLiteralTypeAnnotation | namedTypes.StringTypeAnnotation | namedTypes.StringLiteralTypeAnnotation | namedTypes.BooleanTypeAnnotation | namedTypes.BooleanLiteralTypeAnnotation | namedTypes.NullableTypeAnnotation | namedTypes.NullLiteralTypeAnnotation | namedTypes.NullTypeAnnotation | namedTypes.ThisTypeAnnotation | namedTypes.ExistsTypeAnnotation | namedTypes.ExistentialTypeParam | namedTypes.FunctionTypeAnnotation | namedTypes.ArrayTypeAnnotation | namedTypes.ObjectTypeAnnotation | namedTypes.GenericTypeAnnotation | namedTypes.MemberTypeAnnotation | namedTypes.UnionTypeAnnotation | namedTypes.IntersectionTypeAnnotation | namedTypes.TypeofTypeAnnotation | namedTypes.TypeParameter | namedTypes.InterfaceTypeAnnotation | namedTypes.TupleTypeAnnotation; | ||
export declare type AnyTypeAnnotationKind = namedTypes.AnyTypeAnnotation; | ||
@@ -124,5 +135,8 @@ export declare type EmptyTypeAnnotationKind = namedTypes.EmptyTypeAnnotation; | ||
export declare type VoidTypeAnnotationKind = namedTypes.VoidTypeAnnotation; | ||
export declare type SymbolTypeAnnotationKind = namedTypes.SymbolTypeAnnotation; | ||
export declare type NumberTypeAnnotationKind = namedTypes.NumberTypeAnnotation; | ||
export declare type BigIntTypeAnnotationKind = namedTypes.BigIntTypeAnnotation; | ||
export declare type NumberLiteralTypeAnnotationKind = namedTypes.NumberLiteralTypeAnnotation; | ||
export declare type NumericLiteralTypeAnnotationKind = namedTypes.NumericLiteralTypeAnnotation; | ||
export declare type BigIntLiteralTypeAnnotationKind = namedTypes.BigIntLiteralTypeAnnotation; | ||
export declare type StringTypeAnnotationKind = namedTypes.StringTypeAnnotation; | ||
@@ -159,5 +173,5 @@ export declare type StringLiteralTypeAnnotationKind = namedTypes.StringLiteralTypeAnnotation; | ||
export declare type DeclareInterfaceKind = namedTypes.DeclareInterface; | ||
export declare type TypeAliasKind = namedTypes.TypeAlias | namedTypes.DeclareTypeAlias | namedTypes.DeclareOpaqueType; | ||
export declare type OpaqueTypeKind = namedTypes.OpaqueType; | ||
export declare type TypeAliasKind = namedTypes.TypeAlias | namedTypes.DeclareTypeAlias; | ||
export declare type DeclareTypeAliasKind = namedTypes.DeclareTypeAlias; | ||
export declare type OpaqueTypeKind = namedTypes.OpaqueType | namedTypes.DeclareOpaqueType; | ||
export declare type DeclareOpaqueTypeKind = namedTypes.DeclareOpaqueType; | ||
@@ -168,2 +182,3 @@ export declare type TypeCastExpressionKind = namedTypes.TypeCastExpression; | ||
export declare type DeclareFunctionKind = namedTypes.DeclareFunction; | ||
export declare type FlowPredicateKind = namedTypes.InferredPredicate | namedTypes.DeclaredPredicate; | ||
export declare type DeclareClassKind = namedTypes.DeclareClass; | ||
@@ -173,8 +188,15 @@ export declare type DeclareModuleKind = namedTypes.DeclareModule; | ||
export declare type DeclareExportDeclarationKind = namedTypes.DeclareExportDeclaration; | ||
export declare type ExportSpecifierKind = namedTypes.ExportSpecifier; | ||
export declare type ExportBatchSpecifierKind = namedTypes.ExportBatchSpecifier; | ||
export declare type DeclareExportAllDeclarationKind = namedTypes.DeclareExportAllDeclaration; | ||
export declare type FlowPredicateKind = namedTypes.InferredPredicate | namedTypes.DeclaredPredicate; | ||
export declare type InferredPredicateKind = namedTypes.InferredPredicate; | ||
export declare type DeclaredPredicateKind = namedTypes.DeclaredPredicate; | ||
export declare type EnumDeclarationKind = namedTypes.EnumDeclaration; | ||
export declare type EnumBooleanBodyKind = namedTypes.EnumBooleanBody; | ||
export declare type EnumNumberBodyKind = namedTypes.EnumNumberBody; | ||
export declare type EnumStringBodyKind = namedTypes.EnumStringBody; | ||
export declare type EnumSymbolBodyKind = namedTypes.EnumSymbolBody; | ||
export declare type EnumBooleanMemberKind = namedTypes.EnumBooleanMember; | ||
export declare type EnumNumberMemberKind = namedTypes.EnumNumberMember; | ||
export declare type EnumStringMemberKind = namedTypes.EnumStringMember; | ||
export declare type EnumDefaultedMemberKind = namedTypes.EnumDefaultedMember; | ||
export declare type ExportDeclarationKind = namedTypes.ExportDeclaration; | ||
@@ -185,12 +207,6 @@ export declare type BlockKind = namedTypes.Block; | ||
export declare type DoExpressionKind = namedTypes.DoExpression; | ||
export declare type SuperKind = namedTypes.Super; | ||
export declare type BindExpressionKind = namedTypes.BindExpression; | ||
export declare type DecoratorKind = namedTypes.Decorator; | ||
export declare type MetaPropertyKind = namedTypes.MetaProperty; | ||
export declare type ParenthesizedExpressionKind = namedTypes.ParenthesizedExpression; | ||
export declare type ExportDefaultDeclarationKind = namedTypes.ExportDefaultDeclaration; | ||
export declare type ExportNamedDeclarationKind = namedTypes.ExportNamedDeclaration; | ||
export declare type ExportNamespaceSpecifierKind = namedTypes.ExportNamespaceSpecifier; | ||
export declare type ExportDefaultSpecifierKind = namedTypes.ExportDefaultSpecifier; | ||
export declare type ExportAllDeclarationKind = namedTypes.ExportAllDeclaration; | ||
export declare type CommentBlockKind = namedTypes.CommentBlock; | ||
@@ -208,6 +224,4 @@ export declare type CommentLineKind = namedTypes.CommentLine; | ||
export declare type ObjectMethodKind = namedTypes.ObjectMethod; | ||
export declare type ClassPrivatePropertyKind = namedTypes.ClassPrivateProperty; | ||
export declare type ClassMethodKind = namedTypes.ClassMethod; | ||
export declare type ClassPrivateMethodKind = namedTypes.ClassPrivateMethod; | ||
export declare type PrivateNameKind = namedTypes.PrivateName; | ||
export declare type RestPropertyKind = namedTypes.RestProperty; | ||
@@ -276,3 +290,1 @@ export declare type ForAwaitStatementKind = namedTypes.ForAwaitStatement; | ||
export declare type TSParameterPropertyKind = namedTypes.TSParameterProperty; | ||
export declare type OptionalMemberExpressionKind = namedTypes.OptionalMemberExpression; | ||
export declare type OptionalCallExpressionKind = namedTypes.OptionalCallExpression; |
@@ -70,5 +70,5 @@ import { NodePath } from "../lib/node-path"; | ||
visitArrayPattern?(this: Context & M, path: NodePath<namedTypes.ArrayPattern>): any; | ||
visitMethodDefinition?(this: Context & M, path: NodePath<namedTypes.MethodDefinition>): any; | ||
visitSpreadElement?(this: Context & M, path: NodePath<namedTypes.SpreadElement>): any; | ||
visitAssignmentPattern?(this: Context & M, path: NodePath<namedTypes.AssignmentPattern>): any; | ||
visitMethodDefinition?(this: Context & M, path: NodePath<namedTypes.MethodDefinition>): any; | ||
visitClassPropertyDefinition?(this: Context & M, path: NodePath<namedTypes.ClassPropertyDefinition>): any; | ||
@@ -79,15 +79,23 @@ visitClassProperty?(this: Context & M, path: NodePath<namedTypes.ClassProperty>): any; | ||
visitClassExpression?(this: Context & M, path: NodePath<namedTypes.ClassExpression>): any; | ||
visitSuper?(this: Context & M, path: NodePath<namedTypes.Super>): any; | ||
visitSpecifier?(this: Context & M, path: NodePath<namedTypes.Specifier>): any; | ||
visitModuleSpecifier?(this: Context & M, path: NodePath<namedTypes.ModuleSpecifier>): any; | ||
visitImportSpecifier?(this: Context & M, path: NodePath<namedTypes.ImportSpecifier>): any; | ||
visitImportDefaultSpecifier?(this: Context & M, path: NodePath<namedTypes.ImportDefaultSpecifier>): any; | ||
visitImportNamespaceSpecifier?(this: Context & M, path: NodePath<namedTypes.ImportNamespaceSpecifier>): any; | ||
visitImportDefaultSpecifier?(this: Context & M, path: NodePath<namedTypes.ImportDefaultSpecifier>): any; | ||
visitImportDeclaration?(this: Context & M, path: NodePath<namedTypes.ImportDeclaration>): any; | ||
visitExportNamedDeclaration?(this: Context & M, path: NodePath<namedTypes.ExportNamedDeclaration>): any; | ||
visitExportSpecifier?(this: Context & M, path: NodePath<namedTypes.ExportSpecifier>): any; | ||
visitExportDefaultDeclaration?(this: Context & M, path: NodePath<namedTypes.ExportDefaultDeclaration>): any; | ||
visitExportAllDeclaration?(this: Context & M, path: NodePath<namedTypes.ExportAllDeclaration>): any; | ||
visitTaggedTemplateExpression?(this: Context & M, path: NodePath<namedTypes.TaggedTemplateExpression>): any; | ||
visitTemplateLiteral?(this: Context & M, path: NodePath<namedTypes.TemplateLiteral>): any; | ||
visitTemplateElement?(this: Context & M, path: NodePath<namedTypes.TemplateElement>): any; | ||
visitMetaProperty?(this: Context & M, path: NodePath<namedTypes.MetaProperty>): any; | ||
visitAwaitExpression?(this: Context & M, path: NodePath<namedTypes.AwaitExpression>): any; | ||
visitSpreadProperty?(this: Context & M, path: NodePath<namedTypes.SpreadProperty>): any; | ||
visitSpreadPropertyPattern?(this: Context & M, path: NodePath<namedTypes.SpreadPropertyPattern>): any; | ||
visitAwaitExpression?(this: Context & M, path: NodePath<namedTypes.AwaitExpression>): any; | ||
visitImportExpression?(this: Context & M, path: NodePath<namedTypes.ImportExpression>): any; | ||
visitOptionalMemberExpression?(this: Context & M, path: NodePath<namedTypes.OptionalMemberExpression>): any; | ||
visitOptionalCallExpression?(this: Context & M, path: NodePath<namedTypes.OptionalCallExpression>): any; | ||
visitJSXAttribute?(this: Context & M, path: NodePath<namedTypes.JSXAttribute>): any; | ||
@@ -97,13 +105,16 @@ visitJSXIdentifier?(this: Context & M, path: NodePath<namedTypes.JSXIdentifier>): any; | ||
visitJSXExpressionContainer?(this: Context & M, path: NodePath<namedTypes.JSXExpressionContainer>): any; | ||
visitJSXElement?(this: Context & M, path: NodePath<namedTypes.JSXElement>): any; | ||
visitJSXFragment?(this: Context & M, path: NodePath<namedTypes.JSXFragment>): any; | ||
visitJSXMemberExpression?(this: Context & M, path: NodePath<namedTypes.JSXMemberExpression>): any; | ||
visitJSXSpreadAttribute?(this: Context & M, path: NodePath<namedTypes.JSXSpreadAttribute>): any; | ||
visitJSXElement?(this: Context & M, path: NodePath<namedTypes.JSXElement>): any; | ||
visitJSXEmptyExpression?(this: Context & M, path: NodePath<namedTypes.JSXEmptyExpression>): any; | ||
visitJSXText?(this: Context & M, path: NodePath<namedTypes.JSXText>): any; | ||
visitJSXSpreadChild?(this: Context & M, path: NodePath<namedTypes.JSXSpreadChild>): any; | ||
visitJSXOpeningElement?(this: Context & M, path: NodePath<namedTypes.JSXOpeningElement>): any; | ||
visitJSXClosingElement?(this: Context & M, path: NodePath<namedTypes.JSXClosingElement>): any; | ||
visitJSXFragment?(this: Context & M, path: NodePath<namedTypes.JSXFragment>): any; | ||
visitJSXText?(this: Context & M, path: NodePath<namedTypes.JSXText>): any; | ||
visitJSXOpeningFragment?(this: Context & M, path: NodePath<namedTypes.JSXOpeningFragment>): any; | ||
visitJSXClosingFragment?(this: Context & M, path: NodePath<namedTypes.JSXClosingFragment>): any; | ||
visitJSXEmptyExpression?(this: Context & M, path: NodePath<namedTypes.JSXEmptyExpression>): any; | ||
visitJSXSpreadChild?(this: Context & M, path: NodePath<namedTypes.JSXSpreadChild>): any; | ||
visitDecorator?(this: Context & M, path: NodePath<namedTypes.Decorator>): any; | ||
visitPrivateName?(this: Context & M, path: NodePath<namedTypes.PrivateName>): any; | ||
visitClassPrivateProperty?(this: Context & M, path: NodePath<namedTypes.ClassPrivateProperty>): any; | ||
visitTypeParameterDeclaration?(this: Context & M, path: NodePath<namedTypes.TypeParameterDeclaration>): any; | ||
@@ -123,5 +134,8 @@ visitTSTypeParameterDeclaration?(this: Context & M, path: NodePath<namedTypes.TSTypeParameterDeclaration>): any; | ||
visitVoidTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.VoidTypeAnnotation>): any; | ||
visitSymbolTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.SymbolTypeAnnotation>): any; | ||
visitNumberTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.NumberTypeAnnotation>): any; | ||
visitBigIntTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.BigIntTypeAnnotation>): any; | ||
visitNumberLiteralTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.NumberLiteralTypeAnnotation>): any; | ||
visitNumericLiteralTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.NumericLiteralTypeAnnotation>): any; | ||
visitBigIntLiteralTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.BigIntLiteralTypeAnnotation>): any; | ||
visitStringTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.StringTypeAnnotation>): any; | ||
@@ -159,4 +173,4 @@ visitStringLiteralTypeAnnotation?(this: Context & M, path: NodePath<namedTypes.StringLiteralTypeAnnotation>): any; | ||
visitTypeAlias?(this: Context & M, path: NodePath<namedTypes.TypeAlias>): any; | ||
visitDeclareTypeAlias?(this: Context & M, path: NodePath<namedTypes.DeclareTypeAlias>): any; | ||
visitOpaqueType?(this: Context & M, path: NodePath<namedTypes.OpaqueType>): any; | ||
visitDeclareTypeAlias?(this: Context & M, path: NodePath<namedTypes.DeclareTypeAlias>): any; | ||
visitDeclareOpaqueType?(this: Context & M, path: NodePath<namedTypes.DeclareOpaqueType>): any; | ||
@@ -167,2 +181,3 @@ visitTypeCastExpression?(this: Context & M, path: NodePath<namedTypes.TypeCastExpression>): any; | ||
visitDeclareFunction?(this: Context & M, path: NodePath<namedTypes.DeclareFunction>): any; | ||
visitFlowPredicate?(this: Context & M, path: NodePath<namedTypes.FlowPredicate>): any; | ||
visitDeclareClass?(this: Context & M, path: NodePath<namedTypes.DeclareClass>): any; | ||
@@ -172,8 +187,15 @@ visitDeclareModule?(this: Context & M, path: NodePath<namedTypes.DeclareModule>): any; | ||
visitDeclareExportDeclaration?(this: Context & M, path: NodePath<namedTypes.DeclareExportDeclaration>): any; | ||
visitExportSpecifier?(this: Context & M, path: NodePath<namedTypes.ExportSpecifier>): any; | ||
visitExportBatchSpecifier?(this: Context & M, path: NodePath<namedTypes.ExportBatchSpecifier>): any; | ||
visitDeclareExportAllDeclaration?(this: Context & M, path: NodePath<namedTypes.DeclareExportAllDeclaration>): any; | ||
visitFlowPredicate?(this: Context & M, path: NodePath<namedTypes.FlowPredicate>): any; | ||
visitInferredPredicate?(this: Context & M, path: NodePath<namedTypes.InferredPredicate>): any; | ||
visitDeclaredPredicate?(this: Context & M, path: NodePath<namedTypes.DeclaredPredicate>): any; | ||
visitEnumDeclaration?(this: Context & M, path: NodePath<namedTypes.EnumDeclaration>): any; | ||
visitEnumBooleanBody?(this: Context & M, path: NodePath<namedTypes.EnumBooleanBody>): any; | ||
visitEnumNumberBody?(this: Context & M, path: NodePath<namedTypes.EnumNumberBody>): any; | ||
visitEnumStringBody?(this: Context & M, path: NodePath<namedTypes.EnumStringBody>): any; | ||
visitEnumSymbolBody?(this: Context & M, path: NodePath<namedTypes.EnumSymbolBody>): any; | ||
visitEnumBooleanMember?(this: Context & M, path: NodePath<namedTypes.EnumBooleanMember>): any; | ||
visitEnumNumberMember?(this: Context & M, path: NodePath<namedTypes.EnumNumberMember>): any; | ||
visitEnumStringMember?(this: Context & M, path: NodePath<namedTypes.EnumStringMember>): any; | ||
visitEnumDefaultedMember?(this: Context & M, path: NodePath<namedTypes.EnumDefaultedMember>): any; | ||
visitExportDeclaration?(this: Context & M, path: NodePath<namedTypes.ExportDeclaration>): any; | ||
@@ -184,12 +206,6 @@ visitBlock?(this: Context & M, path: NodePath<namedTypes.Block>): any; | ||
visitDoExpression?(this: Context & M, path: NodePath<namedTypes.DoExpression>): any; | ||
visitSuper?(this: Context & M, path: NodePath<namedTypes.Super>): any; | ||
visitBindExpression?(this: Context & M, path: NodePath<namedTypes.BindExpression>): any; | ||
visitDecorator?(this: Context & M, path: NodePath<namedTypes.Decorator>): any; | ||
visitMetaProperty?(this: Context & M, path: NodePath<namedTypes.MetaProperty>): any; | ||
visitParenthesizedExpression?(this: Context & M, path: NodePath<namedTypes.ParenthesizedExpression>): any; | ||
visitExportDefaultDeclaration?(this: Context & M, path: NodePath<namedTypes.ExportDefaultDeclaration>): any; | ||
visitExportNamedDeclaration?(this: Context & M, path: NodePath<namedTypes.ExportNamedDeclaration>): any; | ||
visitExportNamespaceSpecifier?(this: Context & M, path: NodePath<namedTypes.ExportNamespaceSpecifier>): any; | ||
visitExportDefaultSpecifier?(this: Context & M, path: NodePath<namedTypes.ExportDefaultSpecifier>): any; | ||
visitExportAllDeclaration?(this: Context & M, path: NodePath<namedTypes.ExportAllDeclaration>): any; | ||
visitCommentBlock?(this: Context & M, path: NodePath<namedTypes.CommentBlock>): any; | ||
@@ -207,6 +223,4 @@ visitCommentLine?(this: Context & M, path: NodePath<namedTypes.CommentLine>): any; | ||
visitObjectMethod?(this: Context & M, path: NodePath<namedTypes.ObjectMethod>): any; | ||
visitClassPrivateProperty?(this: Context & M, path: NodePath<namedTypes.ClassPrivateProperty>): any; | ||
visitClassMethod?(this: Context & M, path: NodePath<namedTypes.ClassMethod>): any; | ||
visitClassPrivateMethod?(this: Context & M, path: NodePath<namedTypes.ClassPrivateMethod>): any; | ||
visitPrivateName?(this: Context & M, path: NodePath<namedTypes.PrivateName>): any; | ||
visitRestProperty?(this: Context & M, path: NodePath<namedTypes.RestProperty>): any; | ||
@@ -275,4 +289,2 @@ visitForAwaitStatement?(this: Context & M, path: NodePath<namedTypes.ForAwaitStatement>): any; | ||
visitTSParameterProperty?(this: Context & M, path: NodePath<namedTypes.TSParameterProperty>): any; | ||
visitOptionalMemberExpression?(this: Context & M, path: NodePath<namedTypes.OptionalMemberExpression>): any; | ||
visitOptionalCallExpression?(this: Context & M, path: NodePath<namedTypes.OptionalCallExpression>): any; | ||
} |
10
main.js
@@ -8,3 +8,6 @@ "use strict"; | ||
var es6_1 = tslib_1.__importDefault(require("./def/es6")); | ||
var es7_1 = tslib_1.__importDefault(require("./def/es7")); | ||
var es2016_1 = tslib_1.__importDefault(require("./def/es2016")); | ||
var es2017_1 = tslib_1.__importDefault(require("./def/es2017")); | ||
var es2018_1 = tslib_1.__importDefault(require("./def/es2018")); | ||
var es2019_1 = tslib_1.__importDefault(require("./def/es2019")); | ||
var es2020_1 = tslib_1.__importDefault(require("./def/es2020")); | ||
@@ -26,3 +29,6 @@ var jsx_1 = tslib_1.__importDefault(require("./def/jsx")); | ||
es6_1.default, | ||
es7_1.default, | ||
es2016_1.default, | ||
es2017_1.default, | ||
es2018_1.default, | ||
es2019_1.default, | ||
es2020_1.default, | ||
@@ -29,0 +35,0 @@ jsx_1.default, |
{ | ||
"author": "Ben Newman <bn@cs.stanford.edu>", | ||
"name": "ast-types", | ||
"version": "0.13.4", | ||
"version": "0.14.0", | ||
"description": "Esprima-compatible implementation of the Mozilla JS Parser API", | ||
@@ -46,4 +46,4 @@ "keywords": [ | ||
"@types/esprima": "4.0.2", | ||
"@types/glob": "7.1.1", | ||
"@types/mocha": "5.2.6", | ||
"@types/glob": "7.1.3", | ||
"@types/mocha": "8.0.3", | ||
"@types/node": "12.0.0", | ||
@@ -55,3 +55,3 @@ "espree": "7.3.0", | ||
"glob": "7.1.6", | ||
"mocha": "6.1.4", | ||
"mocha": "^8.1.1", | ||
"recast": "0.20.0", | ||
@@ -58,0 +58,0 @@ "reify": "0.20.12", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
483771
68
10040