Added if else support

This commit is contained in:
Pavel Talanov
2011-11-09 17:38:05 +04:00
parent 6654405efc
commit d9d8a40d5c
7 changed files with 342 additions and 218 deletions
@@ -297,4 +297,12 @@ public class JsScope implements Serializable {
public JsName findExistingNameNoRecurse(String ident) {
return names.get(ident);
}
/**
*
* Checks whether this scope owns this name.
*/
public boolean ownsName(JsName name) {
return names.containsValue(name);
}
}