src/com/google/javascript/rhino/jstype/JSTypeRegistry.java
/**
   * Records declared global type names. This makes resolution faster
   * and more robust in the common case.
   *
   * @param name The name of the type to be recorded.
   * @param type The actual type being associated with the name.
   * @return True if this name is not already defined, false otherwise.
   */
Records declared global type names. This makes resolution faster
and more robust in the common case.

@param name The name of the type to be recorded.
@param type The actual type being associated with the name.
@return True if this name is not already defined, false otherwise.
Records declared global type names . This makes resolution faster and more robust in the common case . @param name The name of the type to be recorded . @param type The actual type being associated with the name . @return True if this name is not already defined false otherwise .
public boolean declareType(StaticScope scope, String name, JSType type) {
    checkState(!name.isEmpty());
    if (getTypeForScopeInternal(getLookupScope(scope, name), name) != null) {
      return false;
    }
    register(scope, type, name);
    return true;
  }
public boolean declareType ( StaticScope scope , String name , JSType type ) { checkState ( ! name . isEmpty ( ) ) ; if ( getTypeForScopeInternal ( getLookupScope ( scope , name ) , name ) != null ) { return false ; } register ( scope , type , name ) ; return true ; }
Records declared global type names.
Records declared global type names .