com.google.dart.compiler.backend.js.ast
Class JsCatchScope
java.lang.Object
com.google.dart.compiler.backend.js.ast.JsScope
com.google.dart.compiler.backend.js.ast.JsCatchScope
public class JsCatchScope
- extends JsScope
A special scope used only for catch blocks. It only holds a single symbol:
the catch argument's name.
Fields inherited from class com.google.dart.compiler.backend.js.ast.JsScope |
tempIndex |
Method Summary |
JsCatchScope |
copy()
|
JsName |
declareName(java.lang.String identifier)
Gets a name object associated with the specified identifier in this scope,
creating it if necessary.
If the JsName does not exist yet, a new JsName is created. |
protected JsName |
findOwnName(java.lang.String ident)
Attempts to find the name object for the specified ident, searching in this
scope only. |
boolean |
hasOwnName(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
JsCatchScope
public JsCatchScope(JsScope parent,
@NotNull
java.lang.String ident)
declareName
@NotNull
public JsName declareName(@NotNull
java.lang.String identifier)
- Description copied from class:
JsScope
- Gets a name object associated with the specified identifier in this scope,
creating it if necessary.
If the JsName does not exist yet, a new JsName is created. The identifier,
short name, and original name of the newly created JsName are equal to
the given identifier.
- Overrides:
declareName
in class JsScope
- Parameters:
identifier
- An identifier that is unique within this scope.
hasOwnName
public boolean hasOwnName(@NotNull
java.lang.String name)
- Overrides:
hasOwnName
in class JsScope
copy
@NotNull
public JsCatchScope copy()
findOwnName
protected JsName findOwnName(@NotNull
java.lang.String ident)
- Description copied from class:
JsScope
- Attempts to find the name object for the specified ident, searching in this
scope only.
- Overrides:
findOwnName
in class JsScope
- Returns:
null
if the identifier has no associated name