weak returns whether the ith import of the current file is a weak import.
(i int32)
| 1256 | |
| 1257 | // weak returns whether the ith import of the current file is a weak import. |
| 1258 | func (g *Generator) weak(i int32) bool { |
| 1259 | for _, j := range g.file.WeakDependency { |
| 1260 | if j == i { |
| 1261 | return true |
| 1262 | } |
| 1263 | } |
| 1264 | return false |
| 1265 | } |
| 1266 | |
| 1267 | // Generate the imports |
| 1268 | func (g *Generator) generateImports() { |