Changes in src/SynTree/Declaration.h [76f7fc7:7a63486]
- File:
-
- 1 edited
-
src/SynTree/Declaration.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/SynTree/Declaration.h
r76f7fc7 r7a63486 9 9 // Author : Richard C. Bilson 10 10 // Created On : Mon May 18 07:44:20 2015 11 // Last Modified By : Andrew Beach12 // Last Modified On : Thr May 2 10:47:00 201913 // Update Count : 13 511 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Sun Sep 3 19:24:06 2017 13 // Update Count : 131 14 14 // 15 15 … … 19 19 #include <iosfwd> // for ostream 20 20 #include <list> // for list 21 #include <unordered_map> // for unordered_map22 21 #include <string> // for string, operator+, allocator, to_string 23 22 … … 167 166 CompoundStmt *get_statements() const { return statements; } 168 167 void set_statements( CompoundStmt *newValue ) { statements = newValue; } 169 bool has_body() const { return NULL != statements; }170 168 171 169 static FunctionDecl * newFunction( const std::string & name, FunctionType * type, CompoundStmt * statements ); … … 336 334 virtual Declaration *acceptMutator( Mutator &m ) override { return m.mutate( this ); } 337 335 private: 338 std:: unordered_map< std::string, long long int > enumValues;336 std::map< std::string, long long int > enumValues; 339 337 virtual std::string typeString() const override; 340 338 };
Note:
See TracChangeset
for help on using the changeset viewer.