src/com/google/javascript/jscomp/NodeUtil.java
/**
   * Determines whether the given name is a valid variable name.
   */
Determines whether the given name is a valid variable name.
Determines whether the given name is a valid variable name .
static boolean isValidSimpleName(String name) {
    return TokenStream.isJSIdentifier(name)
        && !TokenStream.isKeyword(name)
        && isLatin(name);
  }
static boolean isValidSimpleName ( String name ) { return TokenStream . isJSIdentifier ( name ) && ! TokenStream . isKeyword ( name ) && isLatin ( name ) ; }
Determines whether the given name is a valid variable name.
Determines whether the given name is a valid variable name .
// no Unicode escaped characters - some browsers are less tolerant // of Unicode characters that might be valid according to the // language spec. // Note that by this point, Unicode escapes have been converted // to UTF-16 characters, so we're only searching for character // values, not escapes.