Changes in src/SynTree/Declaration.h [67cf18c:bdd0755]
- File:
-
- 1 edited
-
src/SynTree/Declaration.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
r67cf18c rbdd0755 194 194 }; 195 195 196 TypeDecl( const std::string &name, Type::StorageClasses scs, Type *type, Kind kind , Type * init = nullptr);196 TypeDecl( const std::string &name, Type::StorageClasses scs, Type *type, Kind kind ); 197 197 TypeDecl( const TypeDecl &other ); 198 virtual ~TypeDecl();199 198 200 199 Kind get_kind() const { return kind; } 201 202 Type * get_init() const { return init; }203 TypeDecl * set_init( Type * newValue ) { init = newValue; return this; }204 200 205 201 bool isComplete() const { return kind == Any || sized; } … … 213 209 virtual void accept( Visitor &v ) { v.visit( this ); } 214 210 virtual TypeDecl *acceptMutator( Mutator &m ) { return m.mutate( this ); } 215 virtual void print( std::ostream &os, int indent = 0 ) const;216 217 211 private: 218 212 Kind kind; 219 Type * init;220 213 bool sized; 221 214 };
Note:
See TracChangeset
for help on using the changeset viewer.