mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00
tracking of optimization information associated with expressions
This commit is contained in:
parent
3ac725f44b
commit
074b18f3e8
3 changed files with 36 additions and 0 deletions
17
src/script_opt/ExprOptInfo.h
Normal file
17
src/script_opt/ExprOptInfo.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
// See the file "COPYING" in the main distribution directory for copyright.
|
||||
|
||||
// Auxiliary information associated with expressions to aid script
|
||||
// optimization.
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
class ExprOptInfo {
|
||||
public:
|
||||
// The AST number of the statement in which this expression
|
||||
// appears.
|
||||
int stmt_num = -1; // -1 = not assigned yet
|
||||
};
|
||||
|
||||
} // namespace zeek::detail
|
Loading…
Add table
Add a link
Reference in a new issue