void expectString ( Node n , JSType type , String msg ) { if ( ! type . matchesStringContext ( ) ) { mismatch ( n , msg , type , STRING_TYPE ) ; } }
Expect the type to be a string or a type convertible to string . If the expectation is not met issue a warning at the provided node s source code position .