Keyword constructor

const Keyword(
  1. int index,
  2. String lexeme,
  3. String name,
  4. KeywordStyle keywordStyle, {
  5. bool isModifier = false,
  6. bool isTopLevelKeyword = false,
  7. int precedence = NO_PRECEDENCE,
})

Initialize a newly created keyword.

Implementation

const Keyword(int index, String lexeme, String name, this.keywordStyle,
    {bool isModifier = false,
    bool isTopLevelKeyword = false,
    int precedence = NO_PRECEDENCE})
    : super(index, lexeme, name, precedence, KEYWORD_TOKEN,
          isModifier: isModifier, isTopLevelKeyword: isTopLevelKeyword);