UNPKG

ts-simple-ast

Version:

TypeScript compiler wrapper for AST navigation and code generation.

13 lines (12 loc) 361 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function areNodesEqual(a, b) { if (a == null && b == null) return true; if (a == null || b == null) return false; if (a.getPos() === b.getPos() && a.getKind() === b.getKind()) return true; return false; } exports.areNodesEqual = areNodesEqual;