static boolean mayBeString ( Node n , boolean useType ) { if ( useType ) { JSType type = n . getJSType ( ) ; if ( type != null ) { if ( type . isStringValueType ( ) ) { return true ; } else if ( type . isNumberValueType ( ) || type . isBooleanValueType ( ) || type . isNullType ( ) || type . isVoidType ( ) ) { return false ; } } } return mayBeString ( getKnownValueType ( n ) ) ; }
Return if the node is possibly a string .