mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 11:38:20 +00:00
simpler and more robust identification of function parameters for AST profiling
This commit is contained in:
parent
691a4003b7
commit
2477213619
4 changed files with 27 additions and 38 deletions
10
src/ID.h
10
src/ID.h
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue