Changes in src/AST/Attribute.hpp [6d98a07:6d51bd7]
- File:
-
- 1 edited
-
src/AST/Attribute.hpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Attribute.hpp
r6d98a07 r6d51bd7 19 19 #include <vector> 20 20 21 #include "Fwd.hpp" 21 22 #include "Node.hpp" // for ptr 22 23 #include "Visitor.hpp" … … 31 32 std::vector<ptr<Expr>> parameters; 32 33 33 Attribute( const std::string & name = "", std::vector<ptr<Expr>>&& params = {})34 Attribute( const std::string & name = "", std::vector<ptr<Expr>> && params = {}) 34 35 : name( name ), parameters( params ) {} 36 virtual ~Attribute() = default; 35 37 36 38 bool empty() const { return name.empty(); } … … 42 44 bool isValidOnFuncParam() const; 43 45 44 Attribute* accept( Visitor& v )override { return v.visit( this ); }46 const Attribute * accept( Visitor & v ) const override { return v.visit( this ); } 45 47 private: 46 Attribute* clone() const override { return new Attribute{ *this }; } 48 Attribute * clone() const override { return new Attribute{ *this }; } 49 50 /// Must be copied in ALL derived classes 51 template<typename node_t> 52 friend auto mutate(const node_t * node); 47 53 }; 48 54
Note:
See TracChangeset
for help on using the changeset viewer.