Changeset 81da3da4 for src/AST/Decl.hpp
- Timestamp:
- Dec 11, 2023, 4:18:13 AM (22 months ago)
- Branches:
- master
- Children:
- 21ce2c7, 2554f24
- Parents:
- 5ddb8bf (diff), 1c85ffc (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Decl.hpp
r5ddb8bf r81da3da4 30 30 #include "Visitor.hpp" 31 31 #include "Common/utility.h" 32 #include "Common/SemanticError.h" // error_str33 32 34 33 // Must be included in *all* AST classes; should be #undef'd at the end of the file … … 135 134 std::vector< ptr<Expr> > withExprs; 136 135 137 // The difference between the two constructors is in how they handle 138 // assertions. The first constructor uses the assertions from the type 139 // parameters, in the style of the old ast, and puts them on the type. 140 // The second takes an explicite list of assertions and builds a list of 141 // references to them on the type. 142 143 FunctionDecl( const CodeLocation & loc, const std::string & name, std::vector<ptr<TypeDecl>>&& forall, 136 /// Monomorphic Function Constructor: 137 FunctionDecl( const CodeLocation & locaction, const std::string & name, 144 138 std::vector<ptr<DeclWithType>>&& params, std::vector<ptr<DeclWithType>>&& returns, 145 139 CompoundStmt * stmts, Storage::Classes storage = {}, Linkage::Spec linkage = Linkage::Cforall, 146 140 std::vector<ptr<Attribute>>&& attrs = {}, Function::Specs fs = {}, ArgumentFlag isVarArgs = FixedArgs ); 147 141 142 /// Polymorphic Function Constructor: 148 143 FunctionDecl( const CodeLocation & location, const std::string & name, 149 144 std::vector<ptr<TypeDecl>>&& forall, std::vector<ptr<DeclWithType>>&& assertions,
Note:
See TracChangeset
for help on using the changeset viewer.