visitLiteral method

  1. @override
void visitLiteral(
  1. LiteralExpression node
)
override

Implementation

@override
void visitLiteral(LiteralExpression node) {
  final text = node.text;
  if (text.isEmpty) {
    _addAllCharactersWithEof(node);
  } else {
    final characters = SparseBoolList();
    final rune = text.runes.first;
    final group = GroupedRangeList<bool>(rune, rune, true);
    characters.addGroup(group);
    _addCharacters(node, characters);
  }
}