void expectAsyncGeneratorSupertype ( Node n , JSType type , String msg ) { if ( ! getNativeType ( ASYNC_GENERATOR_TYPE ) . isSubtypeOf ( type ) ) { mismatch ( n , msg , type , ASYNC_GENERATOR_TYPE ) ; } }
Expect the type to be a AsyncGenerator or supertype of AsyncGenerator .