Page Speed Optimization Libraries  1.2.24.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Public Types | Static Public Member Functions | Friends
net_instaweb::JsKeywords Class Reference

List of all members.

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

Member Enumeration Documentation

Enumerator:
kNull 

literals

kBreak 

keywords

kClass 

reserved for future use

kImplements 

reserved for future use in strict code

kNotAKeyword 

Sentinel value for gperf.

kComment 

Other types of lexical tokens; returned by lexer, but not gperf.


Member Function Documentation

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.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines