tidying with respect to "const", and streamlining OuterIDBindingFinder

This commit is contained in:
Vern Paxson 2021-03-18 08:24:14 -07:00
parent 01bf4b8484
commit cde212ac18
3 changed files with 12 additions and 12 deletions

View file

@ -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);