text property

String text

Return the text matched so far for the current token or any text override.

Implementation

String get text {
  if (_text != null) {
    return _text!;
  }
  return interpreter!.getText(_input);
}
void text=(String text)

Set the complete text of this token; it wipes any previous changes to the text.

Implementation

set text(String text) {
  _text = text;
}