Skip to content

Commit

Permalink
add support for 'Ellipsis' nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinbarabash committed May 9, 2017
1 parent 746ab92 commit 283fdfe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/replace.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ function replace(node, {enter, leave}) {
// the start/end of replace.
case 'Identifier':
case 'Number':
case 'Ellipsis':
break

// irregular non-leaf nodes
Expand Down
1 change: 1 addition & 0 deletions lib/traverse.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ function traverse(node, {enter = () => {}, leave = () => {}}) {
// leaf nodes
case 'Identifier':
case 'Number':
case 'Ellipsis':
enter(node)
leave(node)
break
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "math-traverse",
"version": "0.2.0",
"version": "0.2.1",
"description": "Library for traversing and replacing nodes in a math-ast AST",
"main": "dist/math-traverse.js",
"scripts": {
Expand Down

0 comments on commit 283fdfe

Please sign in to comment.