Skip to content

Commit

Permalink
feat: add in op
Browse files Browse the repository at this point in the history
  • Loading branch information
LuanRT committed Sep 19, 2022
1 parent 6569f27 commit 3f2d00d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/nodes/BinaryExpression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ export default class BinaryExpression {
return left_node | right_node;
case '&':
return left_node & right_node;
// Rational operators
case 'in':
return left_node in right_node;
default:
console.warn('Unsupported operator: ', operator);
console.warn('Unsupported binary operator: ', operator);
}
}
}
}
2 changes: 1 addition & 1 deletion src/nodes/UpdateExpression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ export default class UpdateExpression {
console.warn('Unsupported operator: ', operator);
}
}
}
}

0 comments on commit 3f2d00d

Please sign in to comment.