(marker, allowStatic)
| 9497 | } |
| 9498 | |
| 9499 | function parseInterfaceish(marker, allowStatic) { |
| 9500 | var body, bodyMarker, extended = [], id, |
| 9501 | typeParameters = null; |
| 9502 | |
| 9503 | id = parseVariableIdentifier(); |
| 9504 | if (match('<')) { |
| 9505 | typeParameters = parseTypeParameterDeclaration(); |
| 9506 | } |
| 9507 | |
| 9508 | if (matchKeyword('extends')) { |
| 9509 | expectKeyword('extends'); |
| 9510 | |
| 9511 | while (index < length) { |
| 9512 | extended.push(parseInterfaceExtends()); |
| 9513 | if (!match(',')) { |
| 9514 | break; |
| 9515 | } |
| 9516 | expect(','); |
| 9517 | } |
| 9518 | } |
| 9519 | |
| 9520 | bodyMarker = markerCreate(); |
| 9521 | body = markerApply(bodyMarker, parseObjectType(allowStatic)); |
| 9522 | |
| 9523 | return markerApply(marker, delegate.createInterface( |
| 9524 | id, |
| 9525 | typeParameters, |
| 9526 | body, |
| 9527 | extended |
| 9528 | )); |
| 9529 | } |
| 9530 | |
| 9531 | function parseInterface() { |
| 9532 | var marker = markerCreate(); |
no test coverage detected