Index: src/scopes.h |
diff --git a/src/scopes.h b/src/scopes.h |
index 021b7b3b17820a8aae3da5aa20096c846d7f056d..4b8fe4997b46a151439be29e70f9d30de261c240 100644 |
--- a/src/scopes.h |
+++ b/src/scopes.h |
@@ -190,9 +190,9 @@ class Scope: public ZoneObject { |
// the additional requests will be silently ignored. |
void SetIllegalRedeclaration(Expression* expression); |
- // Visit the illegal redeclaration expression. Do not call if the |
+ // Retrieve the illegal redeclaration expression. Do not call if the |
// scope doesn't have an illegal redeclaration node. |
- void VisitIllegalRedeclaration(AstVisitor* visitor); |
+ Expression* GetIllegalRedeclaration(); |
// Check if the scope has (at least) one illegal redeclaration. |
bool HasIllegalRedeclaration() const { return illegal_redecl_ != NULL; } |