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

Issue 2623453003: Add visitors that throw by default (Closed)

Created:
3 years, 11 months ago by Brian Wilkerson
Modified:
3 years, 11 months ago
Reviewers:
Bob Nystrom, Paul Berry
CC:
reviews_dartlang.org, Bob Nystrom
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : rework implementation #

Total comments: 9
Unified diffs Side-by-side diffs Delta from patch set Stats (+443 lines, -12 lines) Patch
M pkg/analyzer/lib/dart/ast/ast.dart View 1 1 chunk +1 line, -1 line 2 comments Download
M pkg/analyzer/lib/dart/ast/visitor.dart View 1 6 chunks +359 lines, -6 lines 2 comments Download
M pkg/analyzer/lib/dart/element/element.dart View 1 2 chunks +2 lines, -2 lines 5 comments Download
M pkg/analyzer/lib/dart/element/visitor.dart View 1 4 chunks +81 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
Brian Wilkerson
I need to add new AstNode subclasses, which means adding new visit methods to AstVisitor, ...
3 years, 11 months ago (2017-01-09 17:16:50 UTC) #2
Paul Berry
lgtm https://codereview.chromium.org/2623453003/diff/20001/pkg/analyzer/lib/dart/ast/ast.dart File pkg/analyzer/lib/dart/ast/ast.dart (right): https://codereview.chromium.org/2623453003/diff/20001/pkg/analyzer/lib/dart/ast/ast.dart#newcode559 pkg/analyzer/lib/dart/ast/ast.dart:559: * Clients may not extend, implement or mix-in ...
3 years, 11 months ago (2017-01-09 17:36:51 UTC) #3
Brian Wilkerson
https://codereview.chromium.org/2623453003/diff/20001/pkg/analyzer/lib/dart/ast/ast.dart File pkg/analyzer/lib/dart/ast/ast.dart (right): https://codereview.chromium.org/2623453003/diff/20001/pkg/analyzer/lib/dart/ast/ast.dart#newcode559 pkg/analyzer/lib/dart/ast/ast.dart:559: * Clients may not extend, implement or mix-in this ...
3 years, 11 months ago (2017-01-09 18:08:07 UTC) #4
Brian Wilkerson
Committed patchset #2 (id:20001) manually as d1fcb1e986f48708270eef786b8e6f602db5af1a (presubmit successful).
3 years, 11 months ago (2017-01-09 18:08:52 UTC) #6
Paul Berry
https://codereview.chromium.org/2623453003/diff/20001/pkg/analyzer/lib/dart/element/element.dart File pkg/analyzer/lib/dart/element/element.dart (right): https://codereview.chromium.org/2623453003/diff/20001/pkg/analyzer/lib/dart/element/element.dart#newcode722 pkg/analyzer/lib/dart/element/element.dart:722: /*=T*/ accept/*<T>*/(ElementVisitor<dynamic/*=T*/ > visitor); On 2017/01/09 18:08:07, Brian Wilkerson ...
3 years, 11 months ago (2017-01-09 18:17:56 UTC) #7
Bob Nystrom
https://codereview.chromium.org/2623453003/diff/20001/pkg/analyzer/lib/dart/element/element.dart File pkg/analyzer/lib/dart/element/element.dart (right): https://codereview.chromium.org/2623453003/diff/20001/pkg/analyzer/lib/dart/element/element.dart#newcode722 pkg/analyzer/lib/dart/element/element.dart:722: /*=T*/ accept/*<T>*/(ElementVisitor<dynamic/*=T*/ > visitor); On 2017/01/09 18:17:56, Paul Berry ...
3 years, 11 months ago (2017-01-11 01:19:39 UTC) #9
Paul Berry
3 years, 11 months ago (2017-01-11 04:17:09 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/2623453003/diff/20001/pkg/analyzer/lib/dart/e...
File pkg/analyzer/lib/dart/element/element.dart (right):

https://codereview.chromium.org/2623453003/diff/20001/pkg/analyzer/lib/dart/e...
pkg/analyzer/lib/dart/element/element.dart:722: /*=T*/
accept/*<T>*/(ElementVisitor<dynamic/*=T*/ > visitor);
On 2017/01/11 01:19:38, Bob Nystrom wrote:
> On 2017/01/09 18:17:56, Paul Berry wrote:
> > On 2017/01/09 18:08:07, Brian Wilkerson wrote:
> > > Yes. The formatter appears to be inserting it, but I don't know why
because
> it
> > > doesn't do so elsewhere. I manually removed it, but it might reappear the
> next
> > > time the file is formatted.
> > 
> > FYI, Bob: possible formatter bug.
> 
> Hmm, yeah. It tries to handle most of the generic method comment stuff
> correctly. (They are not formatted like regular /* */ comments in some ways.)
> But it's not a heavily tested code path, and it's effectively deprecated now,
so
> I'm not inclined to improve it.
> 
> We have real syntax for generic methods. :)

Fair enough.  Thanks for checking!

Powered by Google App Engine
This is Rietveld 408576698