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

Issue 804323002: refactor duplicate code into single visitor (Closed)

Created:
6 years ago by danrubel
Modified:
6 years ago
Reviewers:
Paul Berry
CC:
reviews_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

refactor duplicate code into single visitor BUG= R=paulberry@google.com Committed: https://code.google.com/p/dart/source/detail?r=42398

Patch Set 1 #

Total comments: 7

Patch Set 2 : merge and address comments #

Messages

Total messages: 6 (1 generated)
danrubel
6 years ago (2014-12-16 08:04:36 UTC) #2
Paul Berry
Lgtm. I've made some suggestions for possible areas of future improvement, but none of them ...
6 years ago (2014-12-16 16:21:57 UTC) #3
danrubel
https://codereview.chromium.org/804323002/diff/1/pkg/analysis_server/lib/src/services/completion/imported_computer.dart File pkg/analysis_server/lib/src/services/completion/imported_computer.dart (right): https://codereview.chromium.org/804323002/diff/1/pkg/analysis_server/lib/src/services/completion/imported_computer.dart#newcode33 pkg/analysis_server/lib/src/services/completion/imported_computer.dart:33: OpTypeAstVisitor opTypeVisitor = new OpTypeAstVisitor(request.offset); On 2014/12/16 16:21:56, Paul ...
6 years ago (2014-12-16 16:51:07 UTC) #4
danrubel
Committed patchset #2 (id:20001) manually as 42398 (presubmit successful).
6 years ago (2014-12-16 16:53:39 UTC) #5
danrubel
6 years ago (2014-12-16 21:23:18 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/804323002/diff/1/pkg/analysis_server/lib/src/...
File pkg/analysis_server/lib/src/services/completion/imported_computer.dart
(right):

https://codereview.chromium.org/804323002/diff/1/pkg/analysis_server/lib/src/...
pkg/analysis_server/lib/src/services/completion/imported_computer.dart:33:
OpTypeAstVisitor opTypeVisitor = new OpTypeAstVisitor(request.offset);
On 2014/12/16 16:51:07, danrubel wrote:
> On 2014/12/16 16:21:56, Paul Berry wrote:
> > It looks like many of the computers now invoke OpTypeAstVisitor as their
first
> > action.  As a future improvement, consider moving this invocation into
> > DartCompletionRequest in order to avoid duplicate computation.
> 
> Agreed. This CL got too involved so I pushed that off to a subsequent CL.

https://codereview.chromium.org/807743003/

Powered by Google App Engine
This is Rietveld 408576698