Changeset fec3e9a for src/Parser/TypeData.h
- Timestamp:
- Mar 28, 2021, 10:58:45 PM (2 years ago)
- Branches:
- ADT, arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 8bea701
- Parents:
- 1da7397
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/TypeData.h
r1da7397 rfec3e9a 7 7 // TypeData.h -- 8 8 // 9 // Author : Rodolfo G. Esteves9 // Author : Peter A. Buhr 10 10 // Created On : Sat May 16 15:18:36 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Dec 13 23:42:35 201913 // Update Count : 19912 // Last Modified On : Sat Mar 27 09:05:35 2021 13 // Update Count : 200 14 14 // 15 15 16 16 #pragma once 17 17 18 #include <iosfwd> 19 #include <list> 20 #include <string> 18 #include <iosfwd> // for ostream 19 #include <list> // for list 20 #include <string> // for string 21 21 22 #include "ParseNode.h" 23 #include "SynTree/LinkageSpec.h" 24 #include "SynTree/Type.h" 25 #include "SynTree/SynTree.h" 22 #include "ParseNode.h" // for DeclarationNode, DeclarationNode::Ag... 23 #include "SynTree/LinkageSpec.h" // for Spec 24 #include "SynTree/Type.h" // for Type, ReferenceToType (ptr only) 25 #include "SynTree/SynTree.h" // for Visitor Nodes 26 26 27 27 struct TypeData { … … 33 33 const std::string * name = nullptr; 34 34 DeclarationNode * params = nullptr; 35 ExpressionNode * actuals = nullptr; 35 ExpressionNode * actuals = nullptr; // holds actual parameters later applied to AggInst 36 36 DeclarationNode * fields = nullptr; 37 37 bool body; … … 62 62 63 63 struct Function_t { 64 mutable DeclarationNode * params = nullptr; 65 mutable DeclarationNode * idList = nullptr; 64 mutable DeclarationNode * params = nullptr; // mutables modified in buildKRFunction 65 mutable DeclarationNode * idList = nullptr; // old-style 66 66 mutable DeclarationNode * oldDeclList = nullptr; 67 67 StatementNode * body = nullptr; 68 ExpressionNode * withExprs = nullptr; 68 ExpressionNode * withExprs = nullptr; // expressions from function's with_clause 69 69 }; 70 70
Note: See TracChangeset
for help on using the changeset viewer.