AS2: static methods & variables

This commit is contained in:
Jindra Pet��k
2013-01-21 21:08:31 +01:00
parent b1e1747b84
commit 03522032f8
@@ -68,9 +68,15 @@ public class ClassTreeItem extends TreeItem implements Block {
for (FunctionTreeItem f : functions) {
ret += f.toString(constants) + "\r\n";
}
for (FunctionTreeItem f : staticFunctions) {
ret += "static "+f.toString(constants) + "\r\n";
}
for (TreeItem v : vars.keySet()) {
ret += "var " + v.toStringNoQuotes(constants) + " = " + vars.get(v).toStringNoQuotes(constants) + ";\r\n";
}
for (TreeItem v : staticVars.keySet()) {
ret += "static var " + v.toStringNoQuotes(constants) + " = " + staticVars.get(v).toStringNoQuotes(constants) + ";\r\n";
}
ret += "}\r\n";
return ret;
}