[cleanup] Make Scope implementation private, remove dead friend declaration

Scope has no subclasses, so "protected" should just be "private". And
there is no ParserFactory class, so making it a friend doesn't buy us
anything.

Review URL: https://codereview.chromium.org/1393303005

Cr-Commit-Position: refs/heads/master@{#31201}
This commit is contained in:
adamk 2015-10-09 14:41:52 -07:00 committed by Commit bot
parent 60f831749f
commit a0d119c766

View File

@ -579,9 +579,7 @@ class Scope: public ZoneObject {
// ---------------------------------------------------------------------------
// Implementation.
protected:
friend class ParserFactory;
private:
// Scope tree.
Scope* outer_scope_; // the immediately enclosing outer scope, or NULL
ZoneList<Scope*> inner_scopes_; // the immediately enclosed inner scopes
@ -791,7 +789,6 @@ class Scope: public ZoneObject {
MUST_USE_RESULT
bool AllocateVariables(ParseInfo* info, AstNodeFactory* factory);
private:
// Construct a scope based on the scope info.
Scope(Zone* zone, Scope* inner_scope, ScopeType type,
Handle<ScopeInfo> scope_info, AstValueFactory* value_factory);