aboutsummaryrefslogtreecommitdiff
path: root/src/parseTools.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-10-10 19:08:28 -0400
committerAlon Zakai <alonzakai@gmail.com>2013-10-10 19:08:28 -0400
commit894db65d7dd8d6bef9595b1e2e49f069b857c5b8 (patch)
tree96a18c11793279ac5e7bf143334ddb2a46142095 /src/parseTools.js
parent1c9032b9b8b4c32dbeca31691447ad574a75f815 (diff)
do not emit postSets for function indexing etc., bake them into the memory initializer
Diffstat (limited to 'src/parseTools.js')
-rw-r--r--src/parseTools.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index 1f875584..0ea8bc8d 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -2574,6 +2574,11 @@ function deParen(text) {
return text;
}
+function deParenCarefully(text) {
+ if (text[0] === '(' && text.indexOf('(', 1) < 0 && text[text.length-1] === ')') return text.substr(1, text.length-2);
+ return text;
+}
+
function addVariable(ident, type, funcData) {
funcData = funcData || Framework.currItem.funcData;
assert(type);