- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Validate/GenericParameter.cpp
re9e9f56 r11df881 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // GenericParameter. cpp -- Generic parameter related passes.7 // GenericParameter.hpp -- 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 : Tue Sep 20 16:28:00 202213 // Update Count : 212 // Last Modified On : Fri Apr 22 16:43:00 2022 13 // Update Count : 1 14 14 // 15 15 … … 119 119 } 120 120 121 struct ValidateGenericParamsCore : public ast::WithCodeLocation { 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 122 128 const ast::StructInstType * previsit( const ast::StructInstType * type ) { 123 assert( location );124 return validateGeneric( *location , type );129 assert( locationPtr ); 130 return validateGeneric( *locationPtr, type ); 125 131 } 126 132 127 133 const ast::UnionInstType * previsit( const ast::UnionInstType * type ) { 128 assert( location );129 return validateGeneric( *location , type );134 assert( locationPtr ); 135 return validateGeneric( *locationPtr, type ); 130 136 } 131 137 };
Note:
See TracChangeset
for help on using the changeset viewer.