()
| 3126 | } |
| 3127 | |
| 3128 | func (p *Parser) nextIsStartOfMappedType() bool { |
| 3129 | p.nextToken() |
| 3130 | if p.token == ast.KindPlusToken || p.token == ast.KindMinusToken { |
| 3131 | return p.nextToken() == ast.KindReadonlyKeyword |
| 3132 | } |
| 3133 | if p.token == ast.KindReadonlyKeyword { |
| 3134 | p.nextToken() |
| 3135 | } |
| 3136 | return p.token == ast.KindOpenBracketToken && p.nextTokenIsIdentifier() && p.nextToken() == ast.KindInKeyword |
| 3137 | } |
| 3138 | |
| 3139 | func (p *Parser) parseMappedType() *ast.Node { |
| 3140 | pos := p.nodePos() |
nothing calls this directly
no test coverage detected