fix: multiple files import the same api file (#3642)

master
7134g 1 year ago committed by GitHub
parent 172ff407f3
commit 117c3a9069
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -156,6 +156,7 @@ func (p *Parser) invokeImportedApi(filename string, imports []*ImportExpr) ([]*A
} }
// ignore already imported file // ignore already imported file
if p.alreadyImported(impPath) { if p.alreadyImported(impPath) {
p.importStatck.pop()
continue continue
} }
p.fileMap[impPath] = PlaceHolder{} p.fileMap[impPath] = PlaceHolder{}

Loading…
Cancel
Save