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

Issue 11882017: Add --analyze-only flag to dart2js (Closed)

Created:
7 years, 11 months ago by Johnni Winther
Modified:
7 years, 11 months ago
Reviewers:
ahe
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Rebased #

Total comments: 5

Patch Set 3 : Updated cf. comments. #

Patch Set 4 : Add analyze_only_test #

Total comments: 5

Patch Set 5 : Refactored to reuse provider/handler. #

Patch Set 6 : Fixed bugs in other tests + moved analyze_only_test to compiler/dart2js. #

Patch Set 7 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -14 lines) Patch
M sdk/lib/_internal/compiler/implementation/apiimpl.dart View 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/compiler.dart View 1 2 3 4 5 5 chunks +51 lines, -14 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/dart2js.dart View 1 2 3 5 chunks +12 lines, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/resolution/members.dart View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
A tests/compiler/dart2js/analyze_only_test.dart View 1 2 3 4 5 1 chunk +129 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Johnni Winther
7 years, 11 months ago (2013-01-14 11:49:14 UTC) #1
ahe
You haven't actually added a flag that can be used from the command line, I ...
7 years, 11 months ago (2013-01-21 12:23:21 UTC) #2
Johnni Winther
PTAL https://codereview.chromium.org/11882017/diff/3001/sdk/lib/_internal/compiler/implementation/compiler.dart File sdk/lib/_internal/compiler/implementation/compiler.dart (right): https://codereview.chromium.org/11882017/diff/3001/sdk/lib/_internal/compiler/implementation/compiler.dart#newcode662 sdk/lib/_internal/compiler/implementation/compiler.dart:662: if (!main.isFunction()) reportFatalError('main is not a function', main); ...
7 years, 11 months ago (2013-01-22 16:06:55 UTC) #3
ahe
Did you add a test?
7 years, 11 months ago (2013-01-23 11:07:44 UTC) #4
Johnni Winther
On 2013/01/23 11:07:44, ahe wrote: > Did you add a test? Forgot to. I'll ping ...
7 years, 11 months ago (2013-01-23 11:12:16 UTC) #5
Johnni Winther
PTAL Test added. https://codereview.chromium.org/11882017/diff/15001/sdk/lib/_internal/compiler/implementation/compiler.dart File sdk/lib/_internal/compiler/implementation/compiler.dart (right): https://codereview.chromium.org/11882017/diff/15001/sdk/lib/_internal/compiler/implementation/compiler.dart#newcode673 sdk/lib/_internal/compiler/implementation/compiler.dart:673: mainApp); This will allow us to ...
7 years, 11 months ago (2013-01-24 10:06:15 UTC) #6
ahe
LGTM! https://codereview.chromium.org/11882017/diff/15001/tests/utils/analyze_only_test.dart File tests/utils/analyze_only_test.dart (right): https://codereview.chromium.org/11882017/diff/15001/tests/utils/analyze_only_test.dart#newcode6 tests/utils/analyze_only_test.dart:6: library dummy_compiler; Rename? https://codereview.chromium.org/11882017/diff/15001/tests/utils/analyze_only_test.dart#newcode13 tests/utils/analyze_only_test.dart:13: Future<String> provider(Uri uri, ...
7 years, 11 months ago (2013-01-24 10:16:33 UTC) #7
Johnni Winther
7 years, 11 months ago (2013-01-24 11:21:51 UTC) #8
https://codereview.chromium.org/11882017/diff/15001/tests/utils/analyze_only_...
File tests/utils/analyze_only_test.dart (right):

https://codereview.chromium.org/11882017/diff/15001/tests/utils/analyze_only_...
tests/utils/analyze_only_test.dart:6: library dummy_compiler;
On 2013/01/24 10:16:33, ahe wrote:
> Rename?

Done.

https://codereview.chromium.org/11882017/diff/15001/tests/utils/analyze_only_...
tests/utils/analyze_only_test.dart:13: Future<String> provider(Uri uri, String
mainSource) {
On 2013/01/24 10:16:33, ahe wrote:
> Can you import this from dummy_compiler_test?

Done.

Powered by Google App Engine
This is Rietveld 408576698