Changeset e9e9f56 for src/Validate/GenericParameter.cpp
- Timestamp:
- Sep 21, 2022, 9:22:24 AM (2 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation
- Children:
- 20737104
- Parents:
- b6c3688
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Validate/GenericParameter.cpp
rb6c3688 re9e9f56 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // GenericParameter. hpp -- Generic parameter related passes.7 // GenericParameter.cpp -- Generic parameter related passes. 8 8 // 9 9 // Author : Andrew Beach 10 10 // Created On : Fri Mar 21 10:02:00 2022 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Fri Apr 22 16:43:00 202213 // Update Count : 112 // Last Modified On : Tue Sep 20 16:28:00 2022 13 // Update Count : 2 14 14 // 15 15 … … 119 119 } 120 120 121 struct ValidateGenericParamsCore : public ast::WithGuards { 122 const CodeLocation * locationPtr = nullptr; 123 124 void previsit( const ast::ParseNode * node ) { 125 GuardValue( locationPtr ) = &node->location; 126 } 127 121 struct ValidateGenericParamsCore : public ast::WithCodeLocation { 128 122 const ast::StructInstType * previsit( const ast::StructInstType * type ) { 129 assert( location Ptr);130 return validateGeneric( *location Ptr, type );123 assert( location ); 124 return validateGeneric( *location, type ); 131 125 } 132 126 133 127 const ast::UnionInstType * previsit( const ast::UnionInstType * type ) { 134 assert( location Ptr);135 return validateGeneric( *location Ptr, type );128 assert( location ); 129 return validateGeneric( *location, type ); 136 130 } 137 131 };
Note: See TracChangeset
for help on using the changeset viewer.