sundry accessors/cast-ers; RE_Matcher's track their construction values

This commit is contained in:
Vern Paxson 2021-03-18 10:33:10 -07:00
parent 17affdb858
commit d53d2ac755
8 changed files with 50 additions and 3 deletions

View file

@ -219,6 +219,9 @@ public:
const FuncType* AsFuncType() const;
FuncType* AsFuncType();
const FileType* AsFileType() const;
FileType* AsFileType();
const EnumType* AsEnumType() const;
EnumType* AsEnumType();
@ -595,7 +598,8 @@ public:
// Given an offset, returns the field's name.
const char* FieldName(int field) const;
type_decl_list* Types() { return types; }
const type_decl_list* Types() const { return types; }
type_decl_list* Types() { return types; }
// Given an offset, returns the field's TypeDecl.
const TypeDecl* FieldDecl(int field) const;