Changeset 489bacf
- Timestamp:
- May 22, 2019, 5:47:36 PM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, cleanup-dtors, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- c957e7f
- Parents:
- 722c4831
- Location:
- src/AST
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Attribute.hpp
r722c4831 r489bacf 30 30 public: 31 31 std::string name; 32 std::vector<ptr<Expr>> param eters;32 std::vector<ptr<Expr>> params; 33 33 34 34 Attribute( const std::string & name = "", std::vector<ptr<Expr>> && params = {}) 35 : name( name ), param eters( params ) {}35 : name( name ), params( params ) {} 36 36 virtual ~Attribute() = default; 37 37 -
src/AST/Convert.cpp
r722c4831 r489bacf 1328 1328 auto attr = new Attribute( 1329 1329 node->name, 1330 get<Expression>().acceptL(node->param eters)1330 get<Expression>().acceptL(node->params) 1331 1331 ); 1332 1332 this->node = attr; -
src/AST/Pass.impl.hpp
r722c4831 r489bacf 1879 1879 1880 1880 VISIT( 1881 maybe_accept( node, &Attribute::param eters );1881 maybe_accept( node, &Attribute::params ); 1882 1882 ) 1883 1883 -
src/AST/Print.cpp
r722c4831 r489bacf 491 491 492 492 virtual const ast::Attribute * visit( const ast::Attribute * node ) { 493 if ( node->empty() ) return node; 494 os << "Attribute with name: " << node->name; 495 if ( node->params.empty() ) return node; 496 os << " with parameters: " << std::endl; 497 ++indent; 498 printAll( node->params ); 499 --indent; 493 500 return node; 494 501 } -
src/AST/porting.md
r722c4831 r489bacf 110 110 111 111 ## Specific Nodes ## 112 `Attribute` 113 * `parameters` => `params` 114 112 115 `Decl` 113 116 * `storageClasses` => `storage`
Note: See TracChangeset
for help on using the changeset viewer.