aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Rennie2013-12-11 13:16:23 (EST)
committerGerrit Code Review @ Eclipse.org2013-12-11 17:08:26 (EST)
commite6e829a83933781fd2ce81b35f5b26b43324696e (patch)
tree160d50b15e10aa04dd1469cded740a38ad974ee2
parent62246e1ec80438e86f57d3c0ecae9f99dba94abc (diff)
downloadorg.eclipse.orion.client-e6e829a83933781fd2ce81b35f5b26b43324696e.zip
org.eclipse.orion.client-e6e829a83933781fd2ce81b35f5b26b43324696e.tar.gz
org.eclipse.orion.client-e6e829a83933781fd2ce81b35f5b26b43324696e.tar.bz2
Bug 423851 - Remove unused nodes from the AST - LOC nodesrefs/changes/61/19661/4
Change-Id: I4498d0969eb320bdee416f3f0207742538bf63e0 Signed-off-by: Mike Rennie <Michael_Rennie@ca.ibm.com>
-rw-r--r--bundles/org.eclipse.orion.client.javascript/web/eslint/lib/eslint.js4
-rw-r--r--bundles/org.eclipse.orion.client.javascript/web/javascript/astManager.js1
2 files changed, 2 insertions, 3 deletions
diff --git a/bundles/org.eclipse.orion.client.javascript/web/eslint/lib/eslint.js b/bundles/org.eclipse.orion.client.javascript/web/eslint/lib/eslint.js
index 0051955..7b1e13b 100644
--- a/bundles/org.eclipse.orion.client.javascript/web/eslint/lib/eslint.js
+++ b/bundles/org.eclipse.orion.client.javascript/web/eslint/lib/eslint.js
@@ -355,8 +355,8 @@ module.exports = (function() {
ruleId: ruleId,
node: node,
message: message,
- line: node.loc.start.line,
- column: node.loc.start.column,
+ //line: node.loc.start.line,
+ //column: node.loc.start.column,
source: api.getSource(node),
related: typeof related !== "undefined" ? related : null
});
diff --git a/bundles/org.eclipse.orion.client.javascript/web/javascript/astManager.js b/bundles/org.eclipse.orion.client.javascript/web/javascript/astManager.js
index 30e9a09..0815ccc 100644
--- a/bundles/org.eclipse.orion.client.javascript/web/javascript/astManager.js
+++ b/bundles/org.eclipse.orion.client.javascript/web/javascript/astManager.js
@@ -62,7 +62,6 @@ define([
range: true,
tolerant: true,
comment: true,
- loc: true,
tokens: true
});
} catch (e) {