(in *API)
| 246 | } |
| 247 | |
| 248 | func (api *API) mergeAPI(in *API) error { |
| 249 | if api.Syntax.Value.Format() != in.Syntax.Value.Format() { |
| 250 | return ast.SyntaxError( |
| 251 | in.Syntax.Value.Pos(), |
| 252 | "multiple syntax value expression, expected <%s>, got <%s>", |
| 253 | api.Syntax.Value.Format(), |
| 254 | in.Syntax.Value.Format(), |
| 255 | ) |
| 256 | } |
| 257 | api.TypeStmt = append(api.TypeStmt, in.TypeStmt...) |
| 258 | api.ServiceStmts = append(api.ServiceStmts, in.ServiceStmts...) |
| 259 | return nil |
| 260 | } |
| 261 | |
| 262 | func (api *API) parseImportedAPI(imports []ast.ImportStmt) ([]*API, error) { |
| 263 | var list []*API |
no test coverage detected