Преглед изворни кода

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

7134g пре 1 година
родитељ
комит
117c3a9069
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      tools/goctl/api/parser/g4/ast/apiparser.go

+ 1 - 0
tools/goctl/api/parser/g4/ast/apiparser.go

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