GlobNodeCharacterClass constructor

GlobNodeCharacterClass(
  1. String source,
  2. int? position
)

Implementation

GlobNodeCharacterClass(String source, int? position)
    : super(source, position) {


  if (source.length < 3) {
    throw ArgumentError('source: $source');
  }

  if (source[0] != '[' || source[source.length - 1] != ']') {
    throw ArgumentError('source: $source');
  }
}