10 lines
232 B
JavaScript
10 lines
232 B
JavaScript
import * as t from "../../../types";
|
|
|
|
export var optional = true;
|
|
|
|
export function Identifier(node, parent) {
|
|
if (node.name === "undefined" && this.isReferenced()) {
|
|
return t.unaryExpression("void", t.literal(0), true);
|
|
}
|
|
}
|