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

Method parsePackage

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

Source from the content-addressed store, hash-verified

212}
213
214func (p *Parser) parsePackage() {
215 p.consume("package")
216 pkgName := ""
217 for p.pos < len(p.tokens) {
218 t := p.next()
219 if t.Value == ";" {
220 break
221 }
222 pkgName += t.Value
223 }
224 p.file.Package = pkgName
225}
226
227func (p *Parser) parseImport() {
228 p.consume("import")

Callers 1

parseMethod · 0.95

Calls 2

consumeMethod · 0.95
nextMethod · 0.95

Tested by

no test coverage detected