simpler and more robust identification of function parameters for AST profiling

This commit is contained in:
Vern Paxson 2024-08-15 13:02:09 -07:00 committed by Arne Welzel
parent 691a4003b7
commit 2477213619
4 changed files with 27 additions and 38 deletions

View file

@ -81,7 +81,6 @@ public:
}
bool IsType() const { return is_type; }
void MakeType() { is_type = true; }
void SetVal(ValPtr v);
@ -160,9 +159,14 @@ protected:
const char* name;
IDScope scope;
bool is_export;
bool infer_return_type;
TypePtr type;
bool is_const, is_enum_const, is_type, is_option, is_blank;
bool is_capture = false;
bool is_const = false;
bool is_enum_const = false;
bool is_type = false;
bool is_option = false;
bool is_blank = false;
bool infer_return_type = false;
int offset;
ValPtr val;
AttributesPtr attrs;