MCPcopy Create free account
hub / github.com/Yuy0ung/YuC0de / parseImport

Method parseImport

backend/engine/java_parser.go:227–241  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

225}
226
227func (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
243func (p *Parser) parseClass() {
244 // Skip annotations

Callers 1

parseMethod · 0.95

Calls 2

consumeMethod · 0.95
nextMethod · 0.95

Tested by

no test coverage detected