()
| 225 | } |
| 226 | |
| 227 | func (p *Parser) parseImport() { |
| 228 | p.consume("import") |
| 229 | importName := "" |
| 230 | for p.pos < len(p.tokens) { |
| 231 | t := p.next() |
| 232 | if t.Value == ";" { |
| 233 | break |
| 234 | } |
| 235 | if t.Value == "static" { |
| 236 | continue // Skip static keyword in import |
| 237 | } |
| 238 | importName += t.Value |
| 239 | } |
| 240 | p.file.Imports = append(p.file.Imports, importName) |
| 241 | } |
| 242 | |
| 243 | func (p *Parser) parseClass() { |
| 244 | // Skip annotations |