Open lizhongzhen11 opened 4 years ago
export ExportFromClause FromClause
"*default*"
export NamedExports; export VariableStatement export Declaration export default HoistableDeclaration export default ClassDeclaration export default AssignmentExpression;
export ExportFromClause FromClause export NamedExports
// 很多,举例 export * export * as all // ...
export var name;
// 很多,这里举例 export let name
// 很多,这里举例 export default function fn(){}
export default class T{}
// 很多,举例 export default num = 1;
modules:Exports
ExportedBindings
ExportDeclaration :
export ExportFromClause FromClause
ExportDeclaration : export NamedExports
ExportDeclaration : export VariableStatement
ExportDeclaration : export Declaration
ExportDeclaration : export default HoistableDeclaration
ExportDeclaration : export default ClassDeclaration
ExportDeclaration : export default AssignmentExpression
NamedExports : { }
ExportsList : ExportsList , ExportSpecifier
ExportSpecifier : IdentifierName
ExportSpecifier : IdentifierName as IdentifierName
ExportedNames
ExportDeclaration : export ExportFromClause FromClause
ExportFromClause : *
ExportFromClause : * as IdentifierName
ExportFromClause : NamedExports
ExportDeclaration : export VariableStatement
ExportDeclaration : export Declaration
ExportDeclaration : export default HoistableDeclaration
ExportDeclaration : export default ClassDeclaration
ExportDeclaration : export default AssignmentExpression
NamedExports : { }
ExportsList : ExportsList , ExportSpecifier
ExportSpecifier : IdentifierName
ExportSpecifier : IdentifierName as IdentifierName
ExportEntries
ExportDeclaration : export ExportFromClause FromClause
ExportDeclaration : export NamedExports
ExportDeclaration : export VariableStatement
ExportDeclaration : export Declaration
ExportDeclaration : export default HoistableDeclaration
ExportDeclaration : export default ClassDeclaration
ExportDeclaration : export default AssignmentExpression
"*default*"
, [[ExportName]]: "default" }ModuleRequests
ExportDeclaration : export ExportFromClause FromClause
ExportDeclaration :
export NamedExports;
export VariableStatement
export Declaration
export default HoistableDeclaration
export default ClassDeclaration
export default AssignmentExpression;
求值
ExportDeclaration :
export ExportFromClause FromClause
export NamedExports
ExportDeclaration : export VariableStatement
ExportDeclaration : export Declaration
ExportDeclaration : export default HoistableDeclaration
ExportDeclaration : export default ClassDeclaration
"*default*"
,"*default*"
, value, env)ExportDeclaration : export default AssignmentExpression
"*default*"
, value, env)