com.google.dart.compiler.backend.js.ast
Class JsRootScope

java.lang.Object
  extended by com.google.dart.compiler.backend.js.ast.JsScope
      extended by com.google.dart.compiler.backend.js.ast.JsRootScope

public final class JsRootScope
extends JsScope

The root scope is the parent of every scope. All identifiers in this scope are not obfuscatable. This scope is prefilled with reserved global JavaScript symbols.


Field Summary
 
Fields inherited from class com.google.dart.compiler.backend.js.ast.JsScope
tempIndex
 
Constructor Summary
JsRootScope(JsProgram program)
           
 
Method Summary
protected  JsName findOwnName(java.lang.String ident)
          Attempts to find the name object for the specified ident, searching in this scope only.
 JsProgram getProgram()
           
 
Methods inherited from class com.google.dart.compiler.backend.js.ast.JsScope
declareFreshName, declareName, declareTemporary, doCreateName, findName, getParent, hasOwnName, innerScope, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JsRootScope

public JsRootScope(JsProgram program)
Method Detail

getProgram

public JsProgram getProgram()
Overrides:
getProgram in class JsScope

findOwnName

protected JsName findOwnName(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