mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 04:58:21 +00:00
use differentiated record field accessors
This commit is contained in:
parent
e363bab55f
commit
931cec4e06
10 changed files with 21 additions and 15 deletions
|
@ -1310,6 +1310,9 @@ protected:
|
|||
static RecordTypeValMap parse_time_records;
|
||||
|
||||
private:
|
||||
// Just for template inferencing.
|
||||
RecordVal* Get() { return this; }
|
||||
|
||||
// Keep this handy for quick access during low-level operations.
|
||||
RecordTypePtr rt;
|
||||
|
||||
|
@ -1479,6 +1482,10 @@ protected:
|
|||
ValPtr DoClone(CloneState* state) override;
|
||||
|
||||
private:
|
||||
// Just for template inferencing.
|
||||
friend class RecordVal;
|
||||
VectorVal* Get() { return this; }
|
||||
|
||||
// Check the type of the given element against our current
|
||||
// yield type and adjust as necessary. Returns whether the
|
||||
// element type-checked.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue