Commit a0d119c7 authored by adamk's avatar adamk Committed by Commit bot

[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}
parent 60f83174
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment