diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-09-29 12:30:52 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-10-02 17:31:36 -0700 |
commit | 435f17d4955c75e9ccef3fccd991c0da7756d7f0 (patch) | |
tree | 78eb2ec5d6b8be7ac3ca18139675c235b9b5bc07 /src/parseTools.js | |
parent | c41746de750ddea1d69955fd17ee85f06c0aeed1 (diff) |
chunk label init with the rest
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 15 |
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" + }; +} + |