Changeset 0c327ce for src/Validate
- Timestamp:
- Jul 12, 2024, 3:30:06 PM (5 months ago)
- Branches:
- master
- Children:
- 76b507d
- Parents:
- 9c447e2
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Validate/ImplementEnumFunc.cpp
r9c447e2 r0c327ce 228 228 ast::FunctionDecl* EnumAttrFuncGenerator::genFromIntProto() const { 229 229 return genProto( 230 "fromInt ",230 "fromInt_unsafe", 231 231 {new ast::ObjectDecl(getLocation(), "_i", new ast::BasicType(ast::BasicKind::UnsignedInt))}, 232 232 {new ast::ObjectDecl(getLocation(), "_ret", new ast::EnumInstType(decl))} … … 313 313 genFromIntProto(), 314 314 genFromInstanceProto(), 315 genInstToInstFuncProto("succ "),316 genInstToInstFuncProto("pred ")315 genInstToInstFuncProto("succ_unsafe"), 316 genInstToInstFuncProto("pred_unsafe") 317 317 }; 318 318 for (auto& proto: protos) produceForwardDecl(proto);
Note: See TracChangeset
for help on using the changeset viewer.