| 175 | } |
| 176 | |
| 177 | Expect<void> Loader::loadFieldType(AST::FieldType &FType) { |
| 178 | // The error code logging is handled. |
| 179 | EXPECTED_TRY(auto Type, loadValType(ASTNodeAttr::Type_Rec, true)); |
| 180 | FType.setStorageType(Type); |
| 181 | // The error code logging is handled. |
| 182 | EXPECTED_TRY(auto Mut, loadMutability(ASTNodeAttr::Type_Rec)); |
| 183 | FType.setValMut(Mut); |
| 184 | return {}; |
| 185 | } |
| 186 | |
| 187 | Expect<void> Loader::loadCompositeType(AST::CompositeType &CType) { |
| 188 | // Read the composite type flag. |
nothing calls this directly
no test coverage detected