Skip to content

Commit

Permalink
v18.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
cd1m0 committed Apr 30, 2024
1 parent ffa70e5 commit 9a0950a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "solc-typed-ast",
"version": "18.1.4",
"version": "18.1.5",
"description": "A TypeScript library providing a normalized typed Solidity AST along with the utilities necessary to generate the AST (from Solc) and traverse/manipulate it.",
"keywords": [],
"files": [
Expand Down
4 changes: 2 additions & 2 deletions src/ast/ast_node_factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1074,8 +1074,8 @@ export class ASTNodeFactory {
return node;
}

copy<T extends ASTNode>(node: T): T {
const cache = new Map<number, number>();
copy<T extends ASTNode>(node: T, remappings: IDMap | undefined): T {
const cache = new Map<number, number>(remappings ? remappings.entries() : []);
const clone = this.copyHelper(node, cache);
const context = this.context;
const postprocessor = this.postprocessor;
Expand Down

0 comments on commit 9a0950a

Please sign in to comment.