Expand description
Per-kind node builders: clone a node with (optionally) one
structural-child field changed. The rebuild primitive used by
Node::visit_children_mut.
Structs§
- AnyType
Annotation - Clone-with-changes builder for
super::AnyTypeAnnotation. - Array
Expression - Clone-with-changes builder for
super::ArrayExpression. - Array
Pattern - Clone-with-changes builder for
super::ArrayPattern. - Array
Type Annotation - Clone-with-changes builder for
super::ArrayTypeAnnotation. - Arrow
Function Expression - Clone-with-changes builder for
super::ArrowFunctionExpression. - AsConst
Expression - Clone-with-changes builder for
super::AsConstExpression. - AsExpression
- Clone-with-changes builder for
super::AsExpression. - Assignment
Expression - Clone-with-changes builder for
super::AssignmentExpression. - Assignment
Pattern - Clone-with-changes builder for
super::AssignmentPattern. - Await
Expression - Clone-with-changes builder for
super::AwaitExpression. - BigInt
Literal - Clone-with-changes builder for
super::BigIntLiteral. - BigInt
Literal Type Annotation - Clone-with-changes builder for
super::BigIntLiteralTypeAnnotation. - BigInt
Type Annotation - Clone-with-changes builder for
super::BigIntTypeAnnotation. - Binary
Expression - Clone-with-changes builder for
super::BinaryExpression. - Block
Statement - Clone-with-changes builder for
super::BlockStatement. - Boolean
Literal - Clone-with-changes builder for
super::BooleanLiteral. - Boolean
Literal Type Annotation - Clone-with-changes builder for
super::BooleanLiteralTypeAnnotation. - Boolean
Type Annotation - Clone-with-changes builder for
super::BooleanTypeAnnotation. - Break
Statement - Clone-with-changes builder for
super::BreakStatement. - Call
Expression - Clone-with-changes builder for
super::CallExpression. - Catch
Clause - Clone-with-changes builder for
super::CatchClause. - Class
Body - Clone-with-changes builder for
super::ClassBody. - Class
Declaration - Clone-with-changes builder for
super::ClassDeclaration. - Class
Expression - Clone-with-changes builder for
super::ClassExpression. - Class
Implements - Clone-with-changes builder for
super::ClassImplements. - Class
Private Property - Clone-with-changes builder for
super::ClassPrivateProperty. - Class
Property - Clone-with-changes builder for
super::ClassProperty. - Component
Declaration - Clone-with-changes builder for
super::ComponentDeclaration. - Component
Parameter - Clone-with-changes builder for
super::ComponentParameter. - Component
Type Annotation - Clone-with-changes builder for
super::ComponentTypeAnnotation. - Component
Type Parameter - Clone-with-changes builder for
super::ComponentTypeParameter. - Conditional
Expression - Clone-with-changes builder for
super::ConditionalExpression. - Conditional
Type Annotation - Clone-with-changes builder for
super::ConditionalTypeAnnotation. - Continue
Statement - Clone-with-changes builder for
super::ContinueStatement. - Cover
Empty Args - Clone-with-changes builder for
super::CoverEmptyArgs. - Cover
Initializer - Clone-with-changes builder for
super::CoverInitializer. - Cover
Rest Element - Clone-with-changes builder for
super::CoverRestElement. - Cover
Trailing Comma - Clone-with-changes builder for
super::CoverTrailingComma. - Cover
Typed Identifier - Clone-with-changes builder for
super::CoverTypedIdentifier. - Debugger
Statement - Clone-with-changes builder for
super::DebuggerStatement. - Declare
Class - Clone-with-changes builder for
super::DeclareClass. - Declare
Component - Clone-with-changes builder for
super::DeclareComponent. - Declare
Enum - Clone-with-changes builder for
super::DeclareEnum. - Declare
Export AllDeclaration - Clone-with-changes builder for
super::DeclareExportAllDeclaration. - Declare
Export Declaration - Clone-with-changes builder for
super::DeclareExportDeclaration. - Declare
Function - Clone-with-changes builder for
super::DeclareFunction. - Declare
Hook - Clone-with-changes builder for
super::DeclareHook. - Declare
Interface - Clone-with-changes builder for
super::DeclareInterface. - Declare
Module - Clone-with-changes builder for
super::DeclareModule. - Declare
Module Exports - Clone-with-changes builder for
super::DeclareModuleExports. - Declare
Namespace - Clone-with-changes builder for
super::DeclareNamespace. - Declare
Opaque Type - Clone-with-changes builder for
super::DeclareOpaqueType. - Declare
Type Alias - Clone-with-changes builder for
super::DeclareTypeAlias. - Declare
Variable - Clone-with-changes builder for
super::DeclareVariable. - Declared
Predicate - Clone-with-changes builder for
super::DeclaredPredicate. - Decorator
- Clone-with-changes builder for
super::Decorator. - Directive
- Clone-with-changes builder for
super::Directive. - Directive
Literal - Clone-with-changes builder for
super::DirectiveLiteral. - DoWhile
Statement - Clone-with-changes builder for
super::DoWhileStatement. - Empty
- Clone-with-changes builder for
super::Empty. - Empty
Statement - Clone-with-changes builder for
super::EmptyStatement. - Empty
Type Annotation - Clone-with-changes builder for
super::EmptyTypeAnnotation. - Enum
BigInt Body - Clone-with-changes builder for
super::EnumBigIntBody. - Enum
BigInt Member - Clone-with-changes builder for
super::EnumBigIntMember. - Enum
Boolean Body - Clone-with-changes builder for
super::EnumBooleanBody. - Enum
Boolean Member - Clone-with-changes builder for
super::EnumBooleanMember. - Enum
Declaration - Clone-with-changes builder for
super::EnumDeclaration. - Enum
Defaulted Member - Clone-with-changes builder for
super::EnumDefaultedMember. - Enum
Number Body - Clone-with-changes builder for
super::EnumNumberBody. - Enum
Number Member - Clone-with-changes builder for
super::EnumNumberMember. - Enum
String Body - Clone-with-changes builder for
super::EnumStringBody. - Enum
String Member - Clone-with-changes builder for
super::EnumStringMember. - Enum
Symbol Body - Clone-with-changes builder for
super::EnumSymbolBody. - Exists
Type Annotation - Clone-with-changes builder for
super::ExistsTypeAnnotation. - Export
AllDeclaration - Clone-with-changes builder for
super::ExportAllDeclaration. - Export
Default Declaration - Clone-with-changes builder for
super::ExportDefaultDeclaration. - Export
Named Declaration - Clone-with-changes builder for
super::ExportNamedDeclaration. - Export
Namespace Specifier - Clone-with-changes builder for
super::ExportNamespaceSpecifier. - Export
Specifier - Clone-with-changes builder for
super::ExportSpecifier. - Expression
Statement - Clone-with-changes builder for
super::ExpressionStatement. - ForIn
Statement - Clone-with-changes builder for
super::ForInStatement. - ForOf
Statement - Clone-with-changes builder for
super::ForOfStatement. - ForStatement
- Clone-with-changes builder for
super::ForStatement. - Function
Declaration - Clone-with-changes builder for
super::FunctionDeclaration. - Function
Expression - Clone-with-changes builder for
super::FunctionExpression. - Function
Type Annotation - Clone-with-changes builder for
super::FunctionTypeAnnotation. - Function
Type Param - Clone-with-changes builder for
super::FunctionTypeParam. - Generic
Type Annotation - Clone-with-changes builder for
super::GenericTypeAnnotation. - Hook
Declaration - Clone-with-changes builder for
super::HookDeclaration. - Hook
Type Annotation - Clone-with-changes builder for
super::HookTypeAnnotation. - Identifier
- Clone-with-changes builder for
super::Identifier. - IfStatement
- Clone-with-changes builder for
super::IfStatement. - Implicit
Checked Cast - Clone-with-changes builder for
super::ImplicitCheckedCast. - Import
Attribute - Clone-with-changes builder for
super::ImportAttribute. - Import
Declaration - Clone-with-changes builder for
super::ImportDeclaration. - Import
Default Specifier - Clone-with-changes builder for
super::ImportDefaultSpecifier. - Import
Expression - Clone-with-changes builder for
super::ImportExpression. - Import
Namespace Specifier - Clone-with-changes builder for
super::ImportNamespaceSpecifier. - Import
Specifier - Clone-with-changes builder for
super::ImportSpecifier. - Indexed
Access Type - Clone-with-changes builder for
super::IndexedAccessType. - Infer
Type Annotation - Clone-with-changes builder for
super::InferTypeAnnotation. - Inferred
Predicate - Clone-with-changes builder for
super::InferredPredicate. - Interface
Declaration - Clone-with-changes builder for
super::InterfaceDeclaration. - Interface
Extends - Clone-with-changes builder for
super::InterfaceExtends. - Interface
Type Annotation - Clone-with-changes builder for
super::InterfaceTypeAnnotation. - Intersection
Type Annotation - Clone-with-changes builder for
super::IntersectionTypeAnnotation. - JSXAttribute
- Clone-with-changes builder for
super::JSXAttribute. - JSXClosing
Element - Clone-with-changes builder for
super::JSXClosingElement. - JSXClosing
Fragment - Clone-with-changes builder for
super::JSXClosingFragment. - JSXElement
- Clone-with-changes builder for
super::JSXElement. - JSXEmpty
Expression - Clone-with-changes builder for
super::JSXEmptyExpression. - JSXExpression
Container - Clone-with-changes builder for
super::JSXExpressionContainer. - JSXFragment
- Clone-with-changes builder for
super::JSXFragment. - JSXIdentifier
- Clone-with-changes builder for
super::JSXIdentifier. - JSXMember
Expression - Clone-with-changes builder for
super::JSXMemberExpression. - JSXNamespaced
Name - Clone-with-changes builder for
super::JSXNamespacedName. - JSXOpening
Element - Clone-with-changes builder for
super::JSXOpeningElement. - JSXOpening
Fragment - Clone-with-changes builder for
super::JSXOpeningFragment. - JSXSpread
Attribute - Clone-with-changes builder for
super::JSXSpreadAttribute. - JSXSpread
Child - Clone-with-changes builder for
super::JSXSpreadChild. - JSXString
Literal - Clone-with-changes builder for
super::JSXStringLiteral. - JSXText
- Clone-with-changes builder for
super::JSXText. - Keyof
Type Annotation - Clone-with-changes builder for
super::KeyofTypeAnnotation. - Labeled
Statement - Clone-with-changes builder for
super::LabeledStatement. - Logical
Expression - Clone-with-changes builder for
super::LogicalExpression. - Match
Array Pattern - Clone-with-changes builder for
super::MatchArrayPattern. - Match
AsPattern - Clone-with-changes builder for
super::MatchAsPattern. - Match
Binding Pattern - Clone-with-changes builder for
super::MatchBindingPattern. - Match
Expression - Clone-with-changes builder for
super::MatchExpression. - Match
Expression Case - Clone-with-changes builder for
super::MatchExpressionCase. - Match
Identifier Pattern - Clone-with-changes builder for
super::MatchIdentifierPattern. - Match
Instance Object Pattern - Clone-with-changes builder for
super::MatchInstanceObjectPattern. - Match
Instance Pattern - Clone-with-changes builder for
super::MatchInstancePattern. - Match
Literal Pattern - Clone-with-changes builder for
super::MatchLiteralPattern. - Match
Member Pattern - Clone-with-changes builder for
super::MatchMemberPattern. - Match
Object Pattern - Clone-with-changes builder for
super::MatchObjectPattern. - Match
Object Pattern Property - Clone-with-changes builder for
super::MatchObjectPatternProperty. - Match
OrPattern - Clone-with-changes builder for
super::MatchOrPattern. - Match
Rest Pattern - Clone-with-changes builder for
super::MatchRestPattern. - Match
Statement - Clone-with-changes builder for
super::MatchStatement. - Match
Statement Case - Clone-with-changes builder for
super::MatchStatementCase. - Match
Unary Pattern - Clone-with-changes builder for
super::MatchUnaryPattern. - Match
Wildcard Pattern - Clone-with-changes builder for
super::MatchWildcardPattern. - Member
Expression - Clone-with-changes builder for
super::MemberExpression. - Meta
Property - Clone-with-changes builder for
super::MetaProperty. - Metadata
- Clone-with-changes builder for
super::Metadata. - Method
Definition - Clone-with-changes builder for
super::MethodDefinition. - Mixed
Type Annotation - Clone-with-changes builder for
super::MixedTypeAnnotation. - Never
Type Annotation - Clone-with-changes builder for
super::NeverTypeAnnotation. - NewExpression
- Clone-with-changes builder for
super::NewExpression. - Null
Literal - Clone-with-changes builder for
super::NullLiteral. - Null
Literal Type Annotation - Clone-with-changes builder for
super::NullLiteralTypeAnnotation. - Nullable
Type Annotation - Clone-with-changes builder for
super::NullableTypeAnnotation. - Number
Literal Type Annotation - Clone-with-changes builder for
super::NumberLiteralTypeAnnotation. - Number
Type Annotation - Clone-with-changes builder for
super::NumberTypeAnnotation. - Numeric
Literal - Clone-with-changes builder for
super::NumericLiteral. - Object
Expression - Clone-with-changes builder for
super::ObjectExpression. - Object
Pattern - Clone-with-changes builder for
super::ObjectPattern. - Object
Type Annotation - Clone-with-changes builder for
super::ObjectTypeAnnotation. - Object
Type Call Property - Clone-with-changes builder for
super::ObjectTypeCallProperty. - Object
Type Indexer - Clone-with-changes builder for
super::ObjectTypeIndexer. - Object
Type Internal Slot - Clone-with-changes builder for
super::ObjectTypeInternalSlot. - Object
Type Mapped Type Property - Clone-with-changes builder for
super::ObjectTypeMappedTypeProperty. - Object
Type Property - Clone-with-changes builder for
super::ObjectTypeProperty. - Object
Type Spread Property - Clone-with-changes builder for
super::ObjectTypeSpreadProperty. - Opaque
Type - Clone-with-changes builder for
super::OpaqueType. - Optional
Call Expression - Clone-with-changes builder for
super::OptionalCallExpression. - Optional
Indexed Access Type - Clone-with-changes builder for
super::OptionalIndexedAccessType. - Optional
Member Expression - Clone-with-changes builder for
super::OptionalMemberExpression. - Private
Name - Clone-with-changes builder for
super::PrivateName. - Program
- Clone-with-changes builder for
super::Program. - Property
- Clone-with-changes builder for
super::Property. - Qualified
Type Identifier - Clone-with-changes builder for
super::QualifiedTypeIdentifier. - Qualified
Typeof Identifier - Clone-with-changes builder for
super::QualifiedTypeofIdentifier. - Record
Declaration - Clone-with-changes builder for
super::RecordDeclaration. - Record
Declaration Body - Clone-with-changes builder for
super::RecordDeclarationBody. - Record
Declaration Implements - Clone-with-changes builder for
super::RecordDeclarationImplements. - Record
Declaration Property - Clone-with-changes builder for
super::RecordDeclarationProperty. - Record
Declaration Static Property - Clone-with-changes builder for
super::RecordDeclarationStaticProperty. - Record
Expression - Clone-with-changes builder for
super::RecordExpression. - Record
Expression Properties - Clone-with-changes builder for
super::RecordExpressionProperties. - RegExp
Literal - Clone-with-changes builder for
super::RegExpLiteral. - Rest
Element - Clone-with-changes builder for
super::RestElement. - Return
Statement - Clone-with-changes builder for
super::ReturnStatement. - SHBuiltin
- Clone-with-changes builder for
super::SHBuiltin. - Sequence
Expression - Clone-with-changes builder for
super::SequenceExpression. - Spread
Element - Clone-with-changes builder for
super::SpreadElement. - Static
Block - Clone-with-changes builder for
super::StaticBlock. - String
Literal - Clone-with-changes builder for
super::StringLiteral. - String
Literal Type Annotation - Clone-with-changes builder for
super::StringLiteralTypeAnnotation. - String
Type Annotation - Clone-with-changes builder for
super::StringTypeAnnotation. - Super
- Clone-with-changes builder for
super::Super. - Switch
Case - Clone-with-changes builder for
super::SwitchCase. - Switch
Statement - Clone-with-changes builder for
super::SwitchStatement. - Symbol
Type Annotation - Clone-with-changes builder for
super::SymbolTypeAnnotation. - TSAny
Keyword - Clone-with-changes builder for
super::TSAnyKeyword. - TSArray
Type - Clone-with-changes builder for
super::TSArrayType. - TSAs
Expression - Clone-with-changes builder for
super::TSAsExpression. - TSBig
IntKeyword - Clone-with-changes builder for
super::TSBigIntKeyword. - TSBoolean
Keyword - Clone-with-changes builder for
super::TSBooleanKeyword. - TSCall
Signature Declaration - Clone-with-changes builder for
super::TSCallSignatureDeclaration. - TSConditional
Type - Clone-with-changes builder for
super::TSConditionalType. - TSConstructor
Type - Clone-with-changes builder for
super::TSConstructorType. - TSEnum
Declaration - Clone-with-changes builder for
super::TSEnumDeclaration. - TSEnum
Member - Clone-with-changes builder for
super::TSEnumMember. - TSFunction
Type - Clone-with-changes builder for
super::TSFunctionType. - TSIndex
Signature - Clone-with-changes builder for
super::TSIndexSignature. - TSIndexed
Access Type - Clone-with-changes builder for
super::TSIndexedAccessType. - TSInterface
Body - Clone-with-changes builder for
super::TSInterfaceBody. - TSInterface
Declaration - Clone-with-changes builder for
super::TSInterfaceDeclaration. - TSInterface
Heritage - Clone-with-changes builder for
super::TSInterfaceHeritage. - TSIntersection
Type - Clone-with-changes builder for
super::TSIntersectionType. - TSLiteral
Type - Clone-with-changes builder for
super::TSLiteralType. - TSMethod
Signature - Clone-with-changes builder for
super::TSMethodSignature. - TSModifiers
- Clone-with-changes builder for
super::TSModifiers. - TSModule
Block - Clone-with-changes builder for
super::TSModuleBlock. - TSModule
Declaration - Clone-with-changes builder for
super::TSModuleDeclaration. - TSModule
Member - Clone-with-changes builder for
super::TSModuleMember. - TSNever
Keyword - Clone-with-changes builder for
super::TSNeverKeyword. - TSNumber
Keyword - Clone-with-changes builder for
super::TSNumberKeyword. - TSParameter
Property - Clone-with-changes builder for
super::TSParameterProperty. - TSProperty
Signature - Clone-with-changes builder for
super::TSPropertySignature. - TSQualified
Name - Clone-with-changes builder for
super::TSQualifiedName. - TSString
Keyword - Clone-with-changes builder for
super::TSStringKeyword. - TSSymbol
Keyword - Clone-with-changes builder for
super::TSSymbolKeyword. - TSThis
Type - Clone-with-changes builder for
super::TSThisType. - TSTuple
Type - Clone-with-changes builder for
super::TSTupleType. - TSType
Alias Declaration - Clone-with-changes builder for
super::TSTypeAliasDeclaration. - TSType
Annotation - Clone-with-changes builder for
super::TSTypeAnnotation. - TSType
Assertion - Clone-with-changes builder for
super::TSTypeAssertion. - TSType
Literal - Clone-with-changes builder for
super::TSTypeLiteral. - TSType
Parameter - Clone-with-changes builder for
super::TSTypeParameter. - TSType
Parameter Declaration - Clone-with-changes builder for
super::TSTypeParameterDeclaration. - TSType
Parameter Instantiation - Clone-with-changes builder for
super::TSTypeParameterInstantiation. - TSType
Predicate - Clone-with-changes builder for
super::TSTypePredicate. - TSType
Query - Clone-with-changes builder for
super::TSTypeQuery. - TSType
Reference - Clone-with-changes builder for
super::TSTypeReference. - TSUndefined
Keyword - Clone-with-changes builder for
super::TSUndefinedKeyword. - TSUnion
Type - Clone-with-changes builder for
super::TSUnionType. - TSUnknown
Keyword - Clone-with-changes builder for
super::TSUnknownKeyword. - TSVoid
Keyword - Clone-with-changes builder for
super::TSVoidKeyword. - Tagged
Template Expression - Clone-with-changes builder for
super::TaggedTemplateExpression. - Template
Element - Clone-with-changes builder for
super::TemplateElement. - Template
Literal - Clone-with-changes builder for
super::TemplateLiteral. - This
Expression - Clone-with-changes builder for
super::ThisExpression. - Throw
Statement - Clone-with-changes builder for
super::ThrowStatement. - TryStatement
- Clone-with-changes builder for
super::TryStatement. - Tuple
Type Annotation - Clone-with-changes builder for
super::TupleTypeAnnotation. - Tuple
Type Labeled Element - Clone-with-changes builder for
super::TupleTypeLabeledElement. - Tuple
Type Spread Element - Clone-with-changes builder for
super::TupleTypeSpreadElement. - Type
Alias - Clone-with-changes builder for
super::TypeAlias. - Type
Annotation - Clone-with-changes builder for
super::TypeAnnotation. - Type
Cast Expression - Clone-with-changes builder for
super::TypeCastExpression. - Type
Operator - Clone-with-changes builder for
super::TypeOperator. - Type
Parameter - Clone-with-changes builder for
super::TypeParameter. - Type
Parameter Declaration - Clone-with-changes builder for
super::TypeParameterDeclaration. - Type
Parameter Instantiation - Clone-with-changes builder for
super::TypeParameterInstantiation. - Type
Predicate - Clone-with-changes builder for
super::TypePredicate. - Typeof
Type Annotation - Clone-with-changes builder for
super::TypeofTypeAnnotation. - Unary
Expression - Clone-with-changes builder for
super::UnaryExpression. - Undefined
Type Annotation - Clone-with-changes builder for
super::UndefinedTypeAnnotation. - Union
Type Annotation - Clone-with-changes builder for
super::UnionTypeAnnotation. - Unknown
Type Annotation - Clone-with-changes builder for
super::UnknownTypeAnnotation. - Update
Expression - Clone-with-changes builder for
super::UpdateExpression. - Variable
Declaration - Clone-with-changes builder for
super::VariableDeclaration. - Variable
Declarator - Clone-with-changes builder for
super::VariableDeclarator. - Variance
- Clone-with-changes builder for
super::Variance. - Void
Type Annotation - Clone-with-changes builder for
super::VoidTypeAnnotation. - While
Statement - Clone-with-changes builder for
super::WhileStatement. - With
Statement - Clone-with-changes builder for
super::WithStatement. - Yield
Expression - Clone-with-changes builder for
super::YieldExpression.
Enums§
- Builder
- One builder per node kind; clone-with-one-field-changed.