From 2b75c674487fdfafae9ae77d0b05d7519e070121 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Thu, 5 Feb 2015 11:16:13 +1100 Subject: [PATCH] better scope traversal inferType todo comments --- lib/6to5/traverse/scope.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/6to5/traverse/scope.js b/lib/6to5/traverse/scope.js index 6a35054c9c..f4639fd6ac 100644 --- a/lib/6to5/traverse/scope.js +++ b/lib/6to5/traverse/scope.js @@ -148,16 +148,15 @@ Scope.prototype.inferType = function (node) { } if (t.isLiteral(target) || t.isArrayExpression(target) || t.isObjectExpression(target)) { - // todo: possibly call some helper that will resolve these to a type annotation + // todo: possibly call some helper that will resolve these to a flow type annotation } if (t.isCallExpression(target)) { - // todo: need to resolve this to a return type + // todo: resolve this to a return type } if (t.isMemberExpression(target)) { - // todo: crawl this and find the correct type, bail on anything that we cannot - // possibly be 100% confident on + // todo: crawl this and find the correct type, bail on anything that we cannot possibly be 100% confident on } if (t.isIdentifier(target)) {