private void ensureTyped ( Node n , JSType type ) { // Make sure FUNCTION nodes always get function type. checkState ( ! n . isFunction ( ) || type . isFunctionType ( ) || type . isUnknownType ( ) ) ; if ( n . getJSType ( ) == null ) { n . setJSType ( type ) ; } }
Ensures the node is typed .