keywords property

Set<String> get keywords

reserved keywords, cannot used as identifier names DO NOT put puctuations like '_' in this list, otherwise lexer would not function correctly.

Implementation

Set<String> get keywords => {
      kNull,
      ...kMutables,
      kImmutable,
      kLate,
      kConst,
      kDelete,
      kTypeValue,
      kTypeValueOf,
      // kDeclTypeof,
      kTypeNameOf,
      kClass,
      // kExtends,
      kEnum,
      ...kFunctions,
      kStruct,
      kThis,
      kSuper,
      // kAbstract,
      // kExternal,
      // kStatic,
      // kWith,
      kNew,
      // ...kConstructors,
      // kFactory,
      // kGet,
      // kSet,
      kAsync,
      kAwait,
      kBreak,
      kContinue,
      kReturn,
      kFor,
      kIn,
      kIf,
      kElse,
      kWhile,
      kDo,
      ...kSwitchs,
      kCase,
      kIs,
      kAs,
      // kThrow,
      // kTry,
      // kCatch,
      // kFinally,
    };