aboutsummaryrefslogtreecommitdiff
path: root/src/parseTools.js
diff options
context:
space:
mode:
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"
+ };
+}
+