checkTypeAlignment checks the alignment of the given type. This calls typeAlignment, which resolves all types recursively. This method should be called for all types individual to ensure full coverage.
(pkg *types.Package, typ *types.Named)
| 85 | // This calls typeAlignment, which resolves all types recursively. This method |
| 86 | // should be called for all types individual to ensure full coverage. |
| 87 | func (pc *passContext) checkTypeAlignment(pkg *types.Package, typ *types.Named) { |
| 88 | if !hasTypeParams(typ) { |
| 89 | _ = pc.typeAlignment(pkg, typ.Obj()) |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | // atomicRules specify read constraints. |
| 94 | type atomicRules int |
no test coverage detected