From 2a742b5face3f22622bec76aa5c6c8d360b2be5b Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Thu, 18 Dec 2014 16:28:00 +1100 Subject: [PATCH] add in todo for a better t.isReferenced --- lib/6to5/types/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/6to5/types/index.js b/lib/6to5/types/index.js index d4b95ee677..39c85d52bc 100644 --- a/lib/6to5/types/index.js +++ b/lib/6to5/types/index.js @@ -127,6 +127,7 @@ t.isDynamic = function (node) { } }; +// todo: https://github.com/eventualbuddha/ast-util/blob/9bf91c5ce8/lib/index.js#L454-L507 t.isReferenced = function (node, parent) { // we're a property key and we aren't computed so we aren't referenced if (t.isProperty(parent) && parent.key === node && !parent.computed) return false;