Add 'islocal' flag to XML serialization for variables.

This commit is contained in:
Karishma Chadha 2018-07-06 13:02:23 -04:00
parent ed608ffe6f
commit a0a11f2f19
2 changed files with 11 additions and 8 deletions
src/engine

View file

@ -33,8 +33,9 @@ class Variable {
}
}
toXML () {
return `<variable type="${this.type}" id="${this.id}">${this.name}</variable>`;
toXML (isLocal) {
isLocal = (isLocal === true);
return `<variable type="${this.type}" id="${this.id}" islocal="${isLocal}">${this.name}</variable>`;
}
/**