visitCharacterClass method

  1. @override
Expression visitCharacterClass(
  1. CharacterClassExpression node
)
override

Implementation

@override
Expression visitCharacterClass(CharacterClassExpression node) {
  final list = <List<int>>[];
  for (final group in node.ranges.groups) {
    list.add([group.start, group.end]);
  }

  return CharacterClassExpression(list);
}