parsedParameterSegment property

Parser<ParsedParameterSegment> parsedParameterSegment
final

Implementation

static final Parser<ParsedParameterSegment> parsedParameterSegment = chain([
  match(RegExp(r'(int|num|double)'),
          errorMessage: 'Expected "int","double", or "num".')
      .map((r) => r.span.text),
  parameterSegment,
]).map((r) {
  return ParsedParameterSegment(
      r.value[0] as String, r.value[1] as ParameterSegment);
})