Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(719)

Issue 24823002: The scope of a function's signature is the function's enclosing scope, not the formal parameters sc… (Closed)

Created:
7 years, 2 months ago by scheglov
Modified:
7 years, 2 months ago
Reviewers:
jwren, Brian Wilkerson
CC:
reviews_dartlang.org, lukeechurch_gmail.com
Visibility:
Public.

Description

The scope of a function's signature is the function's enclosing scope, not the formal parameters scope. This is the recent change in spec. Implementation for it is not nice though... R=brianwilkerson@google.com, jwren@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=28031

Patch Set 1 #

Total comments: 2

Messages

Total messages: 5 (0 generated)
scheglov
7 years, 2 months ago (2013-09-26 20:25:17 UTC) #1
jwren
On 2013/09/26 20:25:17, scheglov wrote: LGTM Not pretty though like you commented.
7 years, 2 months ago (2013-09-26 20:33:17 UTC) #2
Brian Wilkerson
LGTM https://codereview.chromium.org/24823002/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/scope/FunctionScope.java File editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/scope/FunctionScope.java (right): https://codereview.chromium.org/24823002/diff/1/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/scope/FunctionScope.java#newcode43 editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/scope/FunctionScope.java:43: if (parametersDefined) { Just out of curiosity, why ...
7 years, 2 months ago (2013-09-27 12:26:09 UTC) #3
scheglov
Committed patchset #1 manually as r28031 (presubmit successful).
7 years, 2 months ago (2013-09-27 23:37:31 UTC) #4
scheglov
7 years, 2 months ago (2013-09-27 23:40:07 UTC) #5
Message was sent while issue was closed.
https://codereview.chromium.org/24823002/diff/1/editor/tools/plugins/com.goog...
File
editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/scope/FunctionScope.java
(right):

https://codereview.chromium.org/24823002/diff/1/editor/tools/plugins/com.goog...
editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/scope/FunctionScope.java:43:
if (parametersDefined) {
On 2013/09/27 12:26:10, Brian Wilkerson wrote:
> Just out of curiosity, why are we invoking this method multiple times? (Looks
> like a problem that we should come back to later.)

It seems that ResolverVisitor redirects to two other visitors, so we visit
single node twice.

Powered by Google App Engine
This is Rietveld 408576698