Return a tuple containing a copy of the given node
and all its
children, and a mapping of ids between the old nodes and the new nodes.
Optionally pass in a remapping
from ids in the old context, to ids of
the old context of any sibling nodes that may be referred in node (e.g.
by referencedDeclaration
fields).
Rest
...args: [typeString: string, baseType: TypeName, length?: Expression, raw?: any]Rest
...args: [typeString: string, operator: string, leftHandSide: Expression, rightHandSide: Expression, raw?: any]Rest
...args: [typeString: string, operator: string, leftExpression: Expression, rightExpression: Expression, userFunction?: number, raw?: any]Rest
...args: [statements: Iterable<Statement>, documentation?: string | StructuredDocumentation, raw?: any]Rest
...args: [documentation?: string | StructuredDocumentation, raw?: any]Rest
...args: [typeString: string, condition: Expression, trueExpression: Expression, falseExpression: Expression, raw?: any]Rest
...args: [documentation?: string | StructuredDocumentation, raw?: any]Rest
...args: [name: string, scope: number, kind: ContractKind, abstract: boolean, fullyImplemented: boolean, linearizedBaseContracts: number[], usedErrors: number[], usedEvents: number[], documentation?: string | StructuredDocumentation, children?: Iterable<ASTNode>, nameLocation?: string, raw?: any]Rest
...args: [condition: Expression, body: Statement, documentation?: string | StructuredDocumentation, raw?: any]Rest
...args: [typeString: string, name: string, stateMutability: "payable" | "nonpayable", raw?: any]Rest
...args: [typeString: string, typeName: string | ElementaryTypeName, raw?: any]Rest
...args: [eventCall: FunctionCall, documentation?: string | StructuredDocumentation, raw?: any]Rest
...args: [name: string, members: Iterable<EnumValue>, documentation?: string | StructuredDocumentation, nameLocation?: string, raw?: any]Rest
...args: [name: string, parameters: ParameterList, documentation?: string | StructuredDocumentation, nameLocation?: string, raw?: any]Rest
...args: [anonymous: boolean, name: string, parameters: ParameterList, documentation?: string | StructuredDocumentation, nameLocation?: string, raw?: any]Rest
...args: [expression: Expression, documentation?: string | StructuredDocumentation, raw?: any]Rest
...args: [body: Statement, initializationExpression?: VariableDeclarationStatement | ExpressionStatement, condition?: Expression, loopExpression?: ExpressionStatement, documentation?: string | StructuredDocumentation, raw?: any]Rest
...args: [typeString: string, kind: FunctionCallKind, expression: Expression, args: Expression[], fieldNames?: string[], raw?: any]Rest
...args: [typeString: string, expression: Expression, options: Map<string, Expression>, raw?: any]Rest
...args: [scope: number, kind: FunctionKind, name: string, virtual: boolean, visibility: FunctionVisibility, stateMutability: FunctionStateMutability, isConstructor: boolean, parameters: ParameterList, returnParameters: ParameterList, modifiers: ModifierInvocation[]]Rest
...args: [typeString: string, visibility: FunctionVisibility, stateMutability: FunctionStateMutability, parameterTypes: ParameterList, returnParameterTypes: ParameterList, raw?: any]Rest
...args: [typeString: string, name: string, referencedDeclaration: number, raw?: any]Rest
...args: [name: string, referencedDeclaration: number, raw?: any]Rest
...args: [condition: Expression, trueBody: Statement, falseBody?: Statement, documentation?: string | StructuredDocumentation, raw?: any]Rest
...args: [file: string, absolutePath: string, unitAlias: string, symbolAliases: SymbolAlias[], scope: number, sourceUnit: number, raw?: any]Rest
...args: [typeString: string, baseExpression: Expression, indexExpression?: Expression, raw?: any]Rest
...args: [typeString: string, baseExpression: Expression, startExpression?: Expression, endExpression?: Expression, raw?: any]Rest
...args: [baseType: IdentifierPath | UserDefinedTypeName, args: Expression[], raw?: any]Rest
...args: [externalReferences: any[], operations?: string, yul?: YulNode, flags?: string[], evmVersion?: string, documentation?: string | StructuredDocumentation, raw?: any]Rest
...args: [typeString: string, kind: LiteralKind, hexValue: string, value: string, subdenomination?: EtherUnit | TimeUnit, raw?: any]Rest
...args: [typeString: string, expression: Expression, memberName: string, referencedDeclaration: number, raw?: any]Rest
...args: [name: string, virtual: boolean, visibility: string, parameters: ParameterList, overrideSpecifier?: OverrideSpecifier, body?: Block, documentation?: string | StructuredDocumentation, nameLocation?: string, raw?: any]Rest
...args: [modifierName: Identifier | IdentifierPath, args: Expression[], kind?: ModifierInvocationKind, raw?: any]Rest
...args: [typeString: string, typeName: TypeName, raw?: any]Rest
...args: [overrides: Iterable<IdentifierPath | UserDefinedTypeName>, raw?: any]Rest
...args: [parameters: Iterable<VariableDeclaration>, raw?: any]Rest
...args: [documentation?: string | StructuredDocumentation, raw?: any]Rest
...args: [literals: string[], raw?: any]Rest
...args: [typeString: string, raw?: any]Rest
...args: [functionReturnParameters: number, expression?: Expression, documentation?: string | StructuredDocumentation, raw?: any]Rest
...args: [errorCall: FunctionCall, documentation?: string | StructuredDocumentation, raw?: any]Rest
...args: [sourceEntryKey: string, sourceListIndex: number, absolutePath: string, exportedSymbols: Map<string, number>, children?: Iterable<ASTNode>, license?: string, raw?: any]Rest
...args: [name: string, scope: number, visibility: string, members: Iterable<VariableDeclaration>, documentation?: string | StructuredDocumentation, nameLocation?: string, raw?: any]Rest
...args: [text: string, raw?: any]Rest
...args: [documentation?: string | StructuredDocumentation, raw?: any]Rest
...args: [errorName: string, block: Block, parameters?: ParameterList, documentation?: string | StructuredDocumentation, raw?: any]Rest
...args: [externalCall: FunctionCall, clauses: TryCatchClause[], documentation?: string | StructuredDocumentation, raw?: any]Rest
...args: [typeString: string, isInlineArray: boolean, components: (null | Expression)[], raw?: any]Rest
...args: [typeString: string, prefix: boolean, operator: string, subExpression: Expression, userFunction?: number, raw?: any]Rest
...args: [statements: Iterable<Statement>, documentation?: string | StructuredDocumentation, raw?: any]Rest
...args: [typeString: string, name: string, referencedDeclaration: number, path?: IdentifierPath, raw?: any]Rest
...args: [name: string, underlyingType: ElementaryTypeName, nameLocation?: string, raw?: any]Rest
...args: [isGlobal: boolean, libraryName?: IdentifierPath | UserDefinedTypeName, functionList?: (IdentifierPath | UsingCustomizedOperator)[], typeName?: TypeName, raw?: any]Rest
...args: [constant: boolean, indexed: boolean, name: string, scope: number, stateVariable: boolean, storageLocation: DataLocation, visibility: StateVariableVisibility, mutability: Mutability, typeString: string, documentation?: string | StructuredDocumentation, typeName?: TypeName, overrideSpecifier?: OverrideSpecifier]Rest
...args: [assignments: (null | number)[], declarations: VariableDeclaration[], initialValue?: Expression, documentation?: string | StructuredDocumentation, raw?: any]Rest
...args: [condition: Expression, body: Statement, documentation?: string | StructuredDocumentation, raw?: any]Generated using TypeDoc
Return a copy of the given
node
, along with all its children. Optionally pass in aremapping
from ids in the old context, to ids of the old context of any sibling nodes that may be referred in node (e.g. byreferencedDeclaration
fields).