void expectAnyObject ( Node n , JSType type , String msg ) { JSType anyObjectType = getNativeType ( NO_OBJECT_TYPE ) ; if ( ! anyObjectType . isSubtypeOf ( type ) && ! type . isEmptyType ( ) ) { mismatch ( n , msg , type , anyObjectType ) ; } }
Expect the type to contain an object sometimes . If the expectation is not met issue a warning at the provided node s source code position .