compileNext method

  1. @override
Parser<RouteResult> compileNext (
  1. Parser<RouteResult> p,
  2. bool isLast
)
override

Implementation

@override
Parser<RouteResult> compileNext(Parser<RouteResult> p, bool isLast) {
  return p.then(parameter._compile()).map((r) {
    return (r.value[0] as RouteResult)
      ..addAll({
        parameter.name: getValue(Uri.decodeComponent(r.value[1] as String))
      });
  });
}