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