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

Issue 511143002: Start filling out analyzer2dart (Closed)

Created:
6 years, 3 months ago by Paul Berry
Modified:
6 years, 3 months ago
Reviewers:
jwren, scheglov
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -3 lines) Patch
M pkg/analyzer2dart/bin/analyzer2dart.dart View 1 chunk +106 lines, -3 lines 3 comments Download

Messages

Total messages: 4 (0 generated)
jwren
LGTM
6 years, 3 months ago (2014-08-28 08:59:16 UTC) #1
Paul Berry
Committed patchset #1 manually as 39635 (presubmit successful).
6 years, 3 months ago (2014-08-28 08:59:37 UTC) #2
scheglov
scheglov@google.com changed reviewers: + scheglov@google.com
6 years, 3 months ago (2014-08-28 16:52:49 UTC) #3
scheglov
6 years, 3 months ago (2014-08-28 16:52:49 UTC) #4
Message was sent while issue was closed.
Wow, a new shiny project :-)

https://codereview.chromium.org/511143002/diff/1/pkg/analyzer2dart/bin/analyz...
File pkg/analyzer2dart/bin/analyzer2dart.dart (right):

https://codereview.chromium.org/511143002/diff/1/pkg/analyzer2dart/bin/analyz...
pkg/analyzer2dart/bin/analyzer2dart.dart:57: Set<Element> _alreadyEnqueued = new
Set<Element>();
new HashSet<Element>() ?

https://codereview.chromium.org/511143002/diff/1/pkg/analyzer2dart/bin/analyz...
pkg/analyzer2dart/bin/analyzer2dart.dart:61: if (!_alreadyEnqueued.contains(e))
{
You could use if (!_alreadyEnqueued.add(e)) instead.

https://codereview.chromium.org/511143002/diff/1/pkg/analyzer2dart/bin/analyz...
pkg/analyzer2dart/bin/analyzer2dart.dart:69: Element e = _queue.removeAt(0);
List.removeLast() is much faster.
So, if the order is not important, we could use it instead.

Powered by Google App Engine
This is Rietveld 408576698