mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:57:34 +00:00
LibJS: Rename virtuals in EnvironmentRecord
This patch makes the following renames: - get_from_scope() => get_from_environment_record() - put_to_scope() => put_into_environment_record() - delete_from_scope() => delete_from_environment_record()
This commit is contained in:
parent
5edd259b0a
commit
d407f247b7
10 changed files with 32 additions and 31 deletions
|
@ -52,17 +52,17 @@ void DeclarativeEnvironmentRecord::visit_edges(Visitor& visitor)
|
|||
visitor.visit(it.value.value);
|
||||
}
|
||||
|
||||
Optional<Variable> DeclarativeEnvironmentRecord::get_from_scope(FlyString const& name) const
|
||||
Optional<Variable> DeclarativeEnvironmentRecord::get_from_environment_record(FlyString const& name) const
|
||||
{
|
||||
return m_variables.get(name);
|
||||
}
|
||||
|
||||
void DeclarativeEnvironmentRecord::put_to_scope(FlyString const& name, Variable variable)
|
||||
void DeclarativeEnvironmentRecord::put_into_environment_record(FlyString const& name, Variable variable)
|
||||
{
|
||||
m_variables.set(name, variable);
|
||||
}
|
||||
|
||||
bool DeclarativeEnvironmentRecord::delete_from_scope(FlyString const& name)
|
||||
bool DeclarativeEnvironmentRecord::delete_from_environment_record(FlyString const& name)
|
||||
{
|
||||
return m_variables.remove(name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue