- Timestamp:
- Dec 10, 2020, 3:59:41 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 3e3f236
- Parents:
- d4e338f
- Location:
- src/AST
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Convert.cpp
rd4e338f r6a45bd78 233 233 const ast::Decl * namedTypePostamble( NamedTypeDecl * decl, const ast::NamedTypeDecl * node ) { 234 234 // base comes from constructor 235 decl->parameters = get<TypeDecl>().acceptL( node->params );236 235 decl->assertions = get<DeclarationWithType>().acceptL( node->assertions ); 237 236 declPostamble( decl, node ); … … 1704 1703 cache.emplace( old, decl ); 1705 1704 decl->assertions = GET_ACCEPT_V(assertions, DeclWithType); 1706 decl->params = GET_ACCEPT_V(parameters, TypeDecl);1707 1705 decl->extension = old->extension; 1708 1706 decl->uniqueId = old->uniqueId; … … 1720 1718 ); 1721 1719 decl->assertions = GET_ACCEPT_V(assertions, DeclWithType); 1722 decl->params = GET_ACCEPT_V(parameters, TypeDecl);1723 1720 decl->extension = old->extension; 1724 1721 decl->uniqueId = old->uniqueId; -
src/AST/Decl.hpp
rd4e338f r6a45bd78 154 154 public: 155 155 ptr<Type> base; 156 std::vector<ptr<TypeDecl>> params;157 156 std::vector<ptr<DeclWithType>> assertions; 158 157 … … 160 159 const CodeLocation & loc, const std::string & name, Storage::Classes storage, 161 160 const Type * b, Linkage::Spec spec = Linkage::Cforall ) 162 : Decl( loc, name, storage, spec ), base( b ), params(),assertions() {}161 : Decl( loc, name, storage, spec ), base( b ), assertions() {} 163 162 164 163 /// Produces a name for the kind of alias -
src/AST/Pass.impl.hpp
rd4e338f r6a45bd78 609 609 VISIT({ 610 610 guard_symtab guard { *this }; 611 maybe_accept( node, &TypeDecl::params );612 611 maybe_accept( node, &TypeDecl::base ); 613 612 }) … … 638 637 VISIT({ 639 638 guard_symtab guard { *this }; 640 maybe_accept( node, &TypedefDecl::params );641 639 maybe_accept( node, &TypedefDecl::base ); 642 640 }) -
src/AST/Print.cpp
rd4e338f r6a45bd78 221 221 ++indent; 222 222 node->base->accept( *this ); 223 --indent;224 }225 226 if ( ! node->params.empty() ) {227 os << endl << indent << "... with parameters" << endl;228 ++indent;229 printAll( node->params );230 223 --indent; 231 224 }
Note:
See TracChangeset
for help on using the changeset viewer.