Crate swc_ecma_ast
source ·Macros§
- Creates a corresponding operator. This macro is used to make code more readable.
Structs§
- An archived
ArrayLit
- An archived
ArrowExpr
- An archived
AssignExpr
- An archived
AwaitExpr
- An archived
BinExpr
- An archived
CallExpr
- An archived
ClassExpr
- An archived
CondExpr
- An archived
ExprOrSpread
- An archived
FnExpr
- An archived
Import
- An archived
Invalid
- An archived
MemberExpr
- An archived
MetaPropExpr
- An archived
NewExpr
- An archived
ObjectLit
- An archived
OptCall
- An archived
OptChainExpr
- An archived
ParenExpr
- An archived
SeqExpr
- An archived
SpreadElement
- An archived
Super
- An archived
SuperPropExpr
- An archived
TaggedTpl
- An archived
ThisExpr
- An archived
Tpl
- An archived
TplElement
- An archived
UnaryExpr
- An archived
UpdateExpr
- An archived
YieldExpr
- Array literal.
- The resolver for an archived
ArrayLit
- The resolver for an archived
ArrowExpr
- The resolver for an archived
AssignExpr
{key}
or{key = value}
- The resolver for an archived
AwaitExpr
- The resolver for an archived
BinExpr
- Identifier used as a pattern.
- Use when only block statements are allowed.
- A boolean literal.
- The resolver for an archived
CallExpr
- Class expression.
- The resolver for an archived
ClassExpr
- The resolver for an archived
CondExpr
export * from 'mod'
export * as foo from 'src';
- The resolver for an archived
ExprOrSpread
- Function expression.
- The resolver for an archived
FnExpr
- Common parts of function and method.
- A complete identifier with span.
- e.g.
import foo from 'mod.js'
- e.g. local = foo, imported = None
import { foo } from 'mod.js'
e.g. local = bar, imported = Some(foo) forimport { foo as bar } from 'mod.js'
- The resolver for an archived
Import
- e.g.
import * as foo from 'mod.js'
. - According to the current spec
with
of crate::ImportDecl can only have strings or idents as keys, can’t be nested, can only have string literals as values: - Represents a invalid node.
- The resolver for an archived
Invalid
- XML-based namespace syntax:
{key: value}
- Represents the formatting rule for a list of nodes.
- The resolver for an archived
MemberExpr
- The resolver for an archived
MetaPropExpr
export { foo } from 'mod'
export { foo as bar } from 'mod'
- The resolver for an archived
NewExpr
- A numeric literal.
- Object literal.
- The resolver for an archived
ObjectLit
- The resolver for an archived
OptCall
- The resolver for an archived
OptChainExpr
- The resolver for an archived
ParenExpr
- EsTree
RestElement
- The resolver for an archived
SeqExpr
- The resolver for an archived
SpreadElement
- A string literal.
- The resolver for an archived
SuperPropExpr
- The resolver for an archived
Super
- The resolver for an archived
TaggedTpl
- The resolver for an archived
ThisExpr
- The resolver for an archived
TplElement
- The resolver for an archived
Tpl
- TypeScript’s own parser uses ExportAssignment for both
export default
andexport =
. But for @babel/parser,export default
is an ExportDefaultDecl, so a TsExportAssignment is alwaysexport =
. typeof
operator- The resolver for an archived
UnaryExpr
- The resolver for an archived
UpdateExpr
- The resolver for an archived
YieldExpr
Enums§
- An archived
AssignTarget
- An archived
AssignTargetPat
- An archived
BlockStmtOrExpr
- An archived
Callee
- An archived
Expr
- An archived
MemberProp
- An archived
MetaPropKind
- An archived
OptChainBase
- An archived
PropOrSpread
- An archived
SimpleAssignTarget
- An archived
SuperProp
- The resolver for an archived
AssignTargetPat
- The resolver for an archived
AssignTarget
- The resolver for an archived
BlockStmtOrExpr
- The resolver for an archived
Callee
- Note: This type implements
Serailize
andDeserialize
ifserde
is enabled, instead of requiringserde-impl
feature. - The resolver for an archived
Expr
- A head for for-in and for-of loop.
- Used for
obj
property ofJSXMemberExpr
. - Either a private name or a public name.
- The resolver for an archived
MemberProp
- The resolver for an archived
MetaPropKind
- The resolver for an archived
OptChainBase
- The resolver for an archived
PropOrSpread
- The resolver for an archived
SimpleAssignTarget
- The resolver for an archived
SuperProp
- Invalid: Ident with empty symbol.
namespace A.B { }
is a namespace namedA
with another TsNamespaceDecl as its body.
Traits§
Type Aliases§
- See Ident for documentation.