Page Speed Optimization Libraries
1.4.26.1
|
Classes | |
class | Iterator |
Public Types | |
enum | Type { kNull, kTrue, kFalse, kBreak, kCase, kCatch, kConst, kDefault, kFinally, kFor, kInstanceof, kNew, kVar, kContinue, kFunction, kReturn, kVoid, kDelete, kIf, kThis, kDo, kWhile, kElse, kIn, kSwitch, kThrow, kTry, kTypeof, kWith, kDebugger, kClass, kEnum, kExport, kExtends, kImport, kSuper, kImplements, kInterface, kLet, kPackage, kPrivate, kProtected, kPublic, kStatic, kYield, kNotAKeyword, kComment, kWhitespace, kLineSeparator, kRegex, kStringLiteral, kNumber, kOperator, kIdentifier, kEndOfInput } |
enum | Flag { kNone, kIsValue, kIsReservedNonStrict, kIsReservedStrict } |
Static Public Member Functions | |
static bool | IsAKeyword (Type type) |
static Type | Lookup (const StringPiece &name, Flag *flag) |
Friends | |
class | JsLexer |
static Type net_instaweb::JsKeywords::Lookup | ( | const StringPiece & | name, |
Flag * | flag | ||
) | [static] |
Finds a Keyword based on a keyword string. If not found, returns kNotAKeyword. Otherwise, this always returns a Type for which IsAKeyword is true.