optionalFormalParameters method

Parser optionalFormalParameters()

Implementation

Parser optionalFormalParameters() =>
    ref1(token, '[') &
    ref0(defaultFormalParameter) &
    (ref1(token, ',') & ref0(defaultFormalParameter)).star() &
    ref1(token, ']');