mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 07:08:19 +00:00
tidying with respect to "const", and streamlining OuterIDBindingFinder
This commit is contained in:
parent
01bf4b8484
commit
cde212ac18
3 changed files with 12 additions and 12 deletions
|
@ -64,12 +64,12 @@ class FuncInfo {
|
|||
public:
|
||||
FuncInfo(ScriptFuncPtr _func, ScopePtr _scope, StmtPtr _body);
|
||||
|
||||
ScriptFunc* Func() { return func.get(); }
|
||||
ScriptFuncPtr FuncPtr() { return func; }
|
||||
ScopePtr Scope() { return scope; }
|
||||
StmtPtr Body() { return body; }
|
||||
std::shared_ptr<ProfileFunc> Profile() { return pf; }
|
||||
const std::string& SaveFile() { return save_file; }
|
||||
ScriptFunc* Func() const { return func.get(); }
|
||||
ScriptFuncPtr FuncPtr() const { return func; }
|
||||
ScopePtr Scope() const { return scope; }
|
||||
StmtPtr Body() const { return body; }
|
||||
std::shared_ptr<ProfileFunc> Profile() const { return pf; }
|
||||
const std::string& SaveFile() const { return save_file; }
|
||||
|
||||
void SetBody(StmtPtr new_body) { body = std::move(new_body); }
|
||||
void SetProfile(std::shared_ptr<ProfileFunc> _pf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue