aboutsummaryrefslogtreecommitdiff
path: root/src/parseTools.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-09-29 12:30:52 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-10-02 17:31:36 -0700
commit435f17d4955c75e9ccef3fccd991c0da7756d7f0 (patch)
tree78eb2ec5d6b8be7ac3ca18139675c235b9b5bc07 /src/parseTools.js
parentc41746de750ddea1d69955fd17ee85f06c0aeed1 (diff)
chunk label init with the rest
Diffstat (limited to 'src/parseTools.js')
-rw-r--r--src/parseTools.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/parseTools.js b/src/parseTools.js
index d749fb0a..f60c0cc1 100644
--- a/src/parseTools.js
+++ b/src/parseTools.js
@@ -2558,3 +2558,18 @@ function deParen(text) {
return text;
}
+function addVariable(ident, type, funcData) {
+ funcData = funcData || Framework.currItem.funcData;
+ funcData.variables[ident] = {
+ ident: ident,
+ type: type,
+ origin: 'added',
+ lineNum: 0,
+ rawLinesIndex: 0,
+ hasValueTaken: false,
+ pointingLevels: 0,
+ uses: 0,
+ impl: "native"
+ };
+}
+