diff options
Diffstat (limited to 'deps/v8/src/torque/declarations.h')
-rw-r--r-- | deps/v8/src/torque/declarations.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/deps/v8/src/torque/declarations.h b/deps/v8/src/torque/declarations.h index 76a436e43e..880b3e75a6 100644 --- a/deps/v8/src/torque/declarations.h +++ b/deps/v8/src/torque/declarations.h @@ -108,6 +108,7 @@ class Declarations { GenericDeclaration* generic); TypeVector GetCurrentSpecializationTypeNamesVector(); + base::Optional<Generic*> GetCurrentGeneric(); ScopeChain::Snapshot GetScopeChainSnapshot() { return chain_.TaskSnapshot(); } @@ -115,6 +116,8 @@ class Declarations { return chain_.GetLiveVariables(); } + bool IsDeclaredInCurrentScope(const std::string& name); + Statement* next_body() const { return next_body_; } void PrintScopeChain() { chain_.Print(); } |