Changeset 24afc53 for src/AST/Decl.hpp
- Timestamp:
- May 16, 2019, 1:54:43 PM (5 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:
- 1fb7bfd, f3cc5b6
- Parents:
- 54e41b3 (diff), aa00626 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Aaron Moss <a3moss@…> (05/16/19 13:46:32)
- git-committer:
- Aaron Moss <a3moss@…> (05/16/19 13:54:43)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Decl.hpp
r54e41b3 r24afc53 114 114 }; 115 115 116 /// Object declaration `int foo()` 116 117 class FunctionDecl : public DeclWithType { 117 118 public: … … 126 127 stmts( stmts ) {} 127 128 128 const Type * get_type() const override { return type.get(); }129 void set_type(Type * t) override { type = strict_dynamic_cast< FunctionType* >( t ); }129 const Type * get_type() const override; 130 void set_type(Type * t) override; 130 131 131 132 bool has_body() const { return stmts; } … … 184 185 TypeDecl( const CodeLocation& loc, const std::string& name, Storage::Classes storage, Type* b, 185 186 TypeVar::Kind k, bool s, Type* i = nullptr ) 186 : NamedTypeDecl( loc, name, storage, b ), kind( k ), sized( k == TypeVar::Ttype || s ), 187 : NamedTypeDecl( loc, name, storage, b ), kind( k ), sized( k == TypeVar::Ttype || s ), 187 188 init( i ) {} 188 189
Note: See TracChangeset
for help on using the changeset viewer.