src/com/google/javascript/jscomp/TypeCheck.java
/**
   * Ensures the node is typed.
   *
   * @param n The node getting a type assigned to it.
   * @param type The type to be assigned.
   */
Ensures the node is typed.
@param n The node getting a type assigned to it.
@param type The type to be assigned.
Ensures the node is typed . @param n The node getting a type assigned to it . @param type The type to be assigned .
private void ensureTyped(Node n, JSType type) {
    checkState(!n.isFunction() || type.isFunctionType() || type.isUnknownType());
    if (n.getJSType() == null) {
      n.setJSType(type);
    }
  }
private void ensureTyped ( Node n , JSType type ) { checkState ( ! n . isFunction ( ) || type . isFunctionType ( ) || type . isUnknownType ( ) ) ; if ( n . getJSType ( ) == null ) { n . setJSType ( type ) ; } }
Ensures the node is typed.
Ensures the node is typed .
// Make sure FUNCTION nodes always get function type.