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

Issue 10545189: Issue 3643. Associate 'no such method' problem with method name, not with whole invocation (Closed)

Created:
8 years, 6 months ago by scheglov
Modified:
8 years, 6 months ago
Reviewers:
Brian Wilkerson
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Issue 3643. Associate 'no such method' problem with method name, not with whole invocation http://code.google.com/p/dart/issues/detail?id=3643 R=brianwilkerson@google.com BUG= TEST= Committed: https://code.google.com/p/dart/source/detail?r=8726

Patch Set 1 #

Total comments: 3

Patch Set 2 : Use 'resolutionError' flag in DartIdentifier #

Total comments: 6

Messages

Total messages: 8 (0 generated)
scheglov
8 years, 6 months ago (2012-06-14 22:43:22 UTC) #1
Brian Wilkerson
https://chromiumcodereview.appspot.com/10545189/diff/1/compiler/java/com/google/dart/compiler/ast/DartNode.java File compiler/java/com/google/dart/compiler/ast/DartNode.java (right): https://chromiumcodereview.appspot.com/10545189/diff/1/compiler/java/com/google/dart/compiler/ast/DartNode.java#newcode23 compiler/java/com/google/dart/compiler/ast/DartNode.java:23: private Set<ErrorCode> reportedErrors; Why do we need to keep ...
8 years, 6 months ago (2012-06-15 00:08:42 UTC) #2
scheglov
https://chromiumcodereview.appspot.com/10545189/diff/1/compiler/java/com/google/dart/compiler/ast/DartNode.java File compiler/java/com/google/dart/compiler/ast/DartNode.java (right): https://chromiumcodereview.appspot.com/10545189/diff/1/compiler/java/com/google/dart/compiler/ast/DartNode.java#newcode23 compiler/java/com/google/dart/compiler/ast/DartNode.java:23: private Set<ErrorCode> reportedErrors; On 2012/06/15 00:08:42, Brian Wilkerson wrote: ...
8 years, 6 months ago (2012-06-15 00:27:33 UTC) #3
Brian Wilkerson
https://chromiumcodereview.appspot.com/10545189/diff/1/compiler/java/com/google/dart/compiler/ast/DartNode.java File compiler/java/com/google/dart/compiler/ast/DartNode.java (right): https://chromiumcodereview.appspot.com/10545189/diff/1/compiler/java/com/google/dart/compiler/ast/DartNode.java#newcode23 compiler/java/com/google/dart/compiler/ast/DartNode.java:23: private Set<ErrorCode> reportedErrors; > I can rewrite it to ...
8 years, 6 months ago (2012-06-15 01:07:22 UTC) #4
scheglov
Have to commit to unfreeze my "master" branch (I've missed branch creation for this issue). ...
8 years, 6 months ago (2012-06-15 18:01:25 UTC) #5
scheglov
Have to commit to unfreeze my "master" branch (I've missed branch creation for this issue). ...
8 years, 6 months ago (2012-06-15 18:01:48 UTC) #6
Brian Wilkerson
LGTM https://chromiumcodereview.appspot.com/10545189/diff/6001/compiler/java/com/google/dart/compiler/ast/DartIdentifier.java File compiler/java/com/google/dart/compiler/ast/DartIdentifier.java (right): https://chromiumcodereview.appspot.com/10545189/diff/6001/compiler/java/com/google/dart/compiler/ast/DartIdentifier.java#newcode1 compiler/java/com/google/dart/compiler/ast/DartIdentifier.java:1: // Copyright (c) 2011, the Dart project authors. ...
8 years, 6 months ago (2012-06-15 18:18:45 UTC) #7
scheglov
8 years, 6 months ago (2012-06-15 18:46:09 UTC) #8
https://chromiumcodereview.appspot.com/10545189/diff/6001/compiler/java/com/g...
File compiler/java/com/google/dart/compiler/ast/DartIdentifier.java (right):

https://chromiumcodereview.appspot.com/10545189/diff/6001/compiler/java/com/g...
compiler/java/com/google/dart/compiler/ast/DartIdentifier.java:17: private
boolean hasResolutionError;
On 2012/06/15 18:18:45, Brian Wilkerson wrote:
> Definitely better than the other solutions, but I still don't like it much.
The
> one change I would request at this point is that we make the name of the field
> very specific so that it's clear that this should not be used for any other
> kinds of resolution errors. Perhaps something as ugly as
> "resolutionAlreadyReportedThatTheMethodCouldNotBeFound", but something that
will
> make it clear that this is intended for a very specific case.

I like this name!

https://chromiumcodereview.appspot.com/10545189/diff/6001/compiler/javatests/...
File
compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java
(right):

https://chromiumcodereview.appspot.com/10545189/diff/6001/compiler/javatests/...
compiler/javatests/com/google/dart/compiler/type/TypeAnalyzerCompilerTest.java:2535:
public void test_canNotResolveMethod_unqualified() throws Exception {
On 2012/06/15 18:18:45, Brian Wilkerson wrote:
> nit: "canNot" --> "cannot"

Done.

Powered by Google App Engine
This is Rietveld 408576698