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

Issue 21544003: Handle missing imports/exports/parts. (Closed)

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

Description

Handle missing imports/exports/parts. BUG= R=ahe@google.com Committed: https://code.google.com/p/dart/source/detail?r=26341

Patch Set 1 #

Total comments: 6

Patch Set 2 : Rebased #

Patch Set 3 : Updated cf. comments. #

Patch Set 4 : Add example to warning. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+195 lines, -70 lines) Patch
M sdk/lib/_internal/compiler/implementation/apiimpl.dart View 1 2 2 chunks +13 lines, -28 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/dart2jslib.dart View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/library_loader.dart View 1 3 chunks +18 lines, -15 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/script.dart View 1 chunk +1 line, -4 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/source_file_provider.dart View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M sdk/lib/_internal/compiler/implementation/warnings.dart View 1 2 3 2 chunks +20 lines, -0 lines 4 comments Download
A tests/compiler/dart2js/import_test.dart View 1 2 1 chunk +49 lines, -0 lines 0 comments Download
M tests/compiler/dart2js/memory_compiler.dart View 1 3 chunks +68 lines, -12 lines 0 comments Download
M tests/compiler/dart2js/memory_source_file_helper.dart View 1 chunk +1 line, -1 line 0 comments Download
M tests/compiler/dart2js/message_kind_helper.dart View 1 2 3 2 chunks +10 lines, -3 lines 0 comments Download
M tests/compiler/dart2js/message_kind_test.dart View 1 2 3 2 chunks +12 lines, -5 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Johnni Winther
7 years, 4 months ago (2013-08-01 13:44:42 UTC) #1
ahe
LGTM! https://codereview.chromium.org/21544003/diff/1/sdk/lib/_internal/compiler/implementation/apiimpl.dart File sdk/lib/_internal/compiler/implementation/apiimpl.dart (right): https://codereview.chromium.org/21544003/diff/1/sdk/lib/_internal/compiler/implementation/apiimpl.dart#newcode179 sdk/lib/_internal/compiler/implementation/apiimpl.dart:179: leg.MessageKind.GENERIC, {'text': 'Error: $exception'}); Could you turn this ...
7 years, 4 months ago (2013-08-06 15:01:00 UTC) #2
Johnni Winther
PTAL https://codereview.chromium.org/21544003/diff/1/sdk/lib/_internal/compiler/implementation/apiimpl.dart File sdk/lib/_internal/compiler/implementation/apiimpl.dart (right): https://codereview.chromium.org/21544003/diff/1/sdk/lib/_internal/compiler/implementation/apiimpl.dart#newcode179 sdk/lib/_internal/compiler/implementation/apiimpl.dart:179: leg.MessageKind.GENERIC, {'text': 'Error: $exception'}); On 2013/08/06 15:01:00, ahe ...
7 years, 4 months ago (2013-08-19 08:05:19 UTC) #3
ahe
LGTM! It would be nice if you could use MessageKind.examples. Cheers, Peter
7 years, 4 months ago (2013-08-19 08:52:58 UTC) #4
Johnni Winther
Committed patchset #4 manually as r26341 (presubmit successful).
7 years, 4 months ago (2013-08-20 09:20:14 UTC) #5
ahe
7 years, 4 months ago (2013-08-20 10:18:16 UTC) #6
Message was sent while issue was closed.
https://codereview.chromium.org/21544003/diff/25001/sdk/lib/_internal/compile...
File sdk/lib/_internal/compiler/implementation/warnings.dart (right):

https://codereview.chromium.org/21544003/diff/25001/sdk/lib/_internal/compile...
sdk/lib/_internal/compiler/implementation/warnings.dart:634: static const
MessageKind INTERNAL_LIBRARY_FROM = const MessageKind(
Could you add an example for this as well?

https://codereview.chromium.org/21544003/diff/25001/sdk/lib/_internal/compile...
sdk/lib/_internal/compiler/implementation/warnings.dart:639: 'Error: Internal
library "#{resolvedUri}" is not accessible.');
Ditto.

https://codereview.chromium.org/21544003/diff/25001/sdk/lib/_internal/compile...
sdk/lib/_internal/compiler/implementation/warnings.dart:642: 'Error: Library not
found "#{resolvedUri}".');
Ditto.

https://codereview.chromium.org/21544003/diff/25001/sdk/lib/_internal/compile...
sdk/lib/_internal/compiler/implementation/warnings.dart:756: "Error: Can't read
'#{uri}' (#{exception}).",
howToFix?

Powered by Google App Engine
This is Rietveld 408576698