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

Issue 967703002: Avoid unnecessary parsing/resolution when running command line analyzer. (Closed)

Created:
5 years, 9 months ago by Paul Berry
Modified:
5 years, 9 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Avoid unnecessary parsing/resolution when running command line analyzer. By default, the command-line analyzer doesn't show errors, warnings, or hints for the SDK or for files imported via "package:" URI's. Accordingly, it shouldn't be necessary to parse or resolve function bodies in those files. This can save a substantial amount of time when analyzing files that are part of large applications. For example, analysis time of pkg/analyzer/bin/anaylzer.dart goes down from ~6.5 seconds to ~3.5 seconds. R=brianwilkerson@google.com Committed: https://code.google.com/p/dart/source/detail?r=44143

Patch Set 1 #

Total comments: 10

Patch Set 2 : Address code review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -16 lines) Patch
M pkg/analyzer/lib/src/analyzer_impl.dart View 1 5 chunks +17 lines, -4 lines 0 comments Download
M pkg/analyzer/lib/src/generated/ast.dart View 1 1 chunk +5 lines, -2 lines 0 comments Download
M pkg/analyzer/lib/src/generated/engine.dart View 1 9 chunks +73 lines, -8 lines 0 comments Download
M pkg/analyzer/lib/src/task/dart.dart View 1 chunk +1 line, -1 line 0 comments Download
M pkg/analyzer/test/generated/resolver_test.dart View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 7 (1 generated)
Paul Berry
5 years, 9 months ago (2015-02-27 23:01:02 UTC) #2
Brian Wilkerson
https://codereview.chromium.org/967703002/diff/1/pkg/analyzer/lib/src/analyzer_impl.dart File pkg/analyzer/lib/src/analyzer_impl.dart (right): https://codereview.chromium.org/967703002/diff/1/pkg/analyzer/lib/src/analyzer_impl.dart#newcode267 pkg/analyzer/lib/src/analyzer_impl.dart:267: return true; This will need to be extended to ...
5 years, 9 months ago (2015-02-27 23:52:06 UTC) #3
scheglov
https://codereview.chromium.org/967703002/diff/1/pkg/analyzer/lib/src/generated/resolver.dart File pkg/analyzer/lib/src/generated/resolver.dart (right): https://codereview.chromium.org/967703002/diff/1/pkg/analyzer/lib/src/generated/resolver.dart#newcode2996 pkg/analyzer/lib/src/generated/resolver.dart:2996: body is EmptyFunctionBody && !body.semicolon.isSynthetic && node.externalKeyword == null; ...
5 years, 9 months ago (2015-02-28 02:47:32 UTC) #4
Paul Berry
PTAL https://codereview.chromium.org/967703002/diff/1/pkg/analyzer/lib/src/analyzer_impl.dart File pkg/analyzer/lib/src/analyzer_impl.dart (right): https://codereview.chromium.org/967703002/diff/1/pkg/analyzer/lib/src/analyzer_impl.dart#newcode267 pkg/analyzer/lib/src/analyzer_impl.dart:267: return true; On 2015/02/27 23:52:05, Brian Wilkerson wrote: ...
5 years, 9 months ago (2015-03-02 19:09:46 UTC) #5
Brian Wilkerson
LGTM
5 years, 9 months ago (2015-03-02 19:27:37 UTC) #6
Paul Berry
5 years, 9 months ago (2015-03-02 19:38:55 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as 44143 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698