()
| 6821 | } |
| 6822 | |
| 6823 | function parseFunctionTypeParam() { |
| 6824 | var marker = markerCreate(), name, optional = false, typeAnnotation; |
| 6825 | name = parseVariableIdentifier(); |
| 6826 | if (match('?')) { |
| 6827 | lex(); |
| 6828 | optional = true; |
| 6829 | } |
| 6830 | expect(':'); |
| 6831 | typeAnnotation = parseType(); |
| 6832 | return markerApply(marker, delegate.createFunctionTypeParam( |
| 6833 | name, |
| 6834 | typeAnnotation, |
| 6835 | optional |
| 6836 | )); |
| 6837 | } |
| 6838 | |
| 6839 | function parseFunctionTypeParams() { |
| 6840 | var ret = { params: [], rest: null }; |
no test coverage detected