Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Attribute.hpp

    r6d51bd7 r6d98a07  
    1919#include <vector>
    2020
    21 #include "Fwd.hpp"
    2221#include "Node.hpp"     // for ptr
    2322#include "Visitor.hpp"
     
    3231        std::vector<ptr<Expr>> parameters;
    3332
    34         Attribute( const std::string & name = "", std::vector<ptr<Expr>> && params = {})
     33        Attribute( const std::string& name = "", std::vector<ptr<Expr>>&& params = {})
    3534        : name( name ), parameters( params ) {}
    36         virtual ~Attribute() = default;
    3735
    3836        bool empty() const { return name.empty(); }
     
    4442        bool isValidOnFuncParam() const;
    4543
    46         const Attribute * accept( Visitor & v ) const override { return v.visit( this ); }
     44        Attribute* accept( Visitor& v ) override { return v.visit( this ); }
    4745private:
    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 }; }
    5347};
    5448
Note: See TracChangeset for help on using the changeset viewer.