Changes in src/Parser/DeclarationNode.h [028e512:561354f]
- File:
-
- 1 edited
-
src/Parser/DeclarationNode.h (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/DeclarationNode.h
r028e512 r561354f 76 76 static DeclarationNode * newStaticAssert( ExpressionNode * condition, ast::Expr * message ); 77 77 78 // Experimental algebric data type 79 static DeclarationNode * newAdt( const std::string * name, DeclarationNode * constructors ); 80 static DeclarationNode * newDataConstructor( const std::string * name ); 81 // static DeclarationNode * newDataConstructor( const std::string * name, DeclarationNode * typeSpecifiers ); 82 78 83 DeclarationNode(); 79 84 ~DeclarationNode(); … … 156 161 ExpressionNode * bitfieldWidth = nullptr; 157 162 std::unique_ptr<ExpressionNode> enumeratorValue; 163 158 164 bool hasEllipsis = false; 159 165 ast::Linkage::Spec linkage; … … 211 217 void buildTypeList( const DeclarationNode * firstNode, std::vector<ast::ptr<ast::Type>> & outputList ); 212 218 219 std::vector<ast::ptr<ast::StructDecl>> buildDataConstructors( DeclarationNode * firstNode ); 220 ast::UnionDecl * buildDataUnion( const CodeLocation & loc, const std::vector<ast::ptr<ast::StructDecl>> & typeList ); 221 ast::EnumDecl * buildTag( const CodeLocation & loc, std::vector<ast::ptr<ast::StructDecl>> & typeList ); 222 ast::StructDecl * buildTaggedUnions( const TypeData * data, const ast::EnumDecl * tag, const ast::UnionDecl * data_union ); 223 213 224 template<typename AstType, typename NodeType, 214 225 template<typename, typename...> class Container, typename... Args>
Note:
See TracChangeset
for help on using the changeset viewer.