Map<String, Symbol> t = scope.getSymbolTable();
if (t != null) {
for (String key : t.keySet()) {
/* read the symbol */
Symbol symbol = t.get(key);
/* only add variables and function parameters */
if (symbol.getDeclType() == Token.LP || symbol.getDeclType() == Token.VAR) {
result.add(symbol.getName());
}
}
}