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

Issue 1181663002: Add Resource class. (Closed)

Created:
5 years, 6 months ago by Lasse Reichstein Nielsen
Modified:
5 years, 5 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address comments #

Patch Set 3 : Fix dart2js version, import dart:async in dart:core. #

Patch Set 4 : Fix fragile try test #

Patch Set 5 : Add suppression for analyzer warnings. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -2 lines) Patch
M pkg/analyzer/lib/file_system/file_system.dart View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M pkg/pkg.status View 1 2 3 4 1 chunk +122 lines, -0 lines 0 comments Download
M runtime/lib/core_patch.dart View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
M runtime/lib/internal_patch.dart View 1 1 chunk +1 line, -1 line 0 comments Download
M sdk/lib/_internal/compiler/js_lib/core_patch.dart View 1 2 3 1 chunk +68 lines, -0 lines 0 comments Download
M sdk/lib/core/core.dart View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M sdk/lib/core/core_sources.gypi View 1 chunk +1 line, -0 lines 0 comments Download
A sdk/lib/core/resource.dart View 1 1 chunk +52 lines, -0 lines 0 comments Download
M tests/try/poi/serialize_test.dart View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (2 generated)
Lasse Reichstein Nielsen
Adding just the resource class first, no implementation. I believe the prior proof-of-concept implementation needed ...
5 years, 6 months ago (2015-06-11 12:44:20 UTC) #2
sethladd
https://codereview.chromium.org/1181663002/diff/1/sdk/lib/core/resource.dart File sdk/lib/core/resource.dart (right): https://codereview.chromium.org/1181663002/diff/1/sdk/lib/core/resource.dart#newcode10 sdk/lib/core/resource.dart:10: * A resource is data that can be located ...
5 years, 6 months ago (2015-06-11 12:50:13 UTC) #3
Lasse Reichstein Nielsen
https://codereview.chromium.org/1181663002/diff/1/sdk/lib/core/resource.dart File sdk/lib/core/resource.dart (right): https://codereview.chromium.org/1181663002/diff/1/sdk/lib/core/resource.dart#newcode10 sdk/lib/core/resource.dart:10: * A resource is data that can be located ...
5 years, 6 months ago (2015-06-11 13:53:55 UTC) #4
sethladd
Yes, please state this in the class docs. Thanks!
5 years, 6 months ago (2015-06-12 07:25:44 UTC) #5
Ivan Posva
LGTM once the unneeded code is removed. Thanks, -Ivan https://codereview.chromium.org/1181663002/diff/1/runtime/lib/core_patch.dart File runtime/lib/core_patch.dart (right): https://codereview.chromium.org/1181663002/diff/1/runtime/lib/core_patch.dart#newcode7 runtime/lib/core_patch.dart:7: ...
5 years, 6 months ago (2015-06-12 10:51:03 UTC) #6
Lasse Reichstein Nielsen
https://codereview.chromium.org/1181663002/diff/1/runtime/lib/internal_patch.dart File runtime/lib/internal_patch.dart (right): https://codereview.chromium.org/1181663002/diff/1/runtime/lib/internal_patch.dart#newcode16 runtime/lib/internal_patch.dart:16: // Example: "dart:core Resource._readAsStream" On 2015/06/12 10:51:03, Ivan Posva ...
5 years, 6 months ago (2015-06-16 12:05:01 UTC) #7
Lasse Reichstein Nielsen
The current location of the Resource class, in dart:core, means that dart:core must import dart:async ...
5 years, 6 months ago (2015-06-16 12:06:54 UTC) #9
herhut
As it is not used right now and has no implementation behind it, I expect ...
5 years, 6 months ago (2015-06-16 12:17:04 UTC) #10
floitsch
On 2015/06/16 12:17:04, herhut wrote: > As it is not used right now and has ...
5 years, 6 months ago (2015-06-16 12:27:49 UTC) #11
sethladd
I wonder if any dart:html app doesn't use async in some way. Perhaps most if ...
5 years, 6 months ago (2015-06-16 15:14:27 UTC) #12
floitsch
On 2015/06/16 15:14:27, sethladd wrote: > I wonder if any dart:html app doesn't use async ...
5 years, 6 months ago (2015-06-16 15:17:02 UTC) #13
Ivan Posva
On 2015/06/16 15:17:02, floitsch wrote: > On 2015/06/16 15:14:27, sethladd wrote: > > I wonder ...
5 years, 6 months ago (2015-06-16 15:27:17 UTC) #14
sethladd
Are we good to commit this? We understand this may increase a "hello world" app ...
5 years, 6 months ago (2015-06-20 08:59:45 UTC) #15
floitsch
On 2015/06/20 08:59:45, sethladd wrote: > Are we good to commit this? We understand this ...
5 years, 6 months ago (2015-06-22 08:47:26 UTC) #16
floitsch
On 2015/06/20 08:59:45, sethladd wrote: > Are we good to commit this? We understand this ...
5 years, 6 months ago (2015-06-22 08:47:28 UTC) #17
Lasse Reichstein Nielsen
Committed patchset #3 (id:40001) manually as 2890a7a2a94ff54c7c0050e69c40ca6a60a28474 (presubmit successful).
5 years, 6 months ago (2015-06-22 13:05:20 UTC) #18
Lasse Reichstein Nielsen
Adding a Resource class to dart:core does cause a number of warnings in the analyzer ...
5 years, 6 months ago (2015-06-22 14:47:06 UTC) #19
Lasse Reichstein Nielsen
I've added suppression for the warnings caused by this. It all goes back to the ...
5 years, 6 months ago (2015-06-26 09:41:54 UTC) #20
Lasse Reichstein Nielsen
Committed patchset #5 (id:80001) manually as f8ce36df557af9028ef72612a43e9942d6f16585 (presubmit successful).
5 years, 6 months ago (2015-06-26 09:42:07 UTC) #21
kevmoo
5 years, 5 months ago (2015-06-30 21:29:32 UTC) #22
Message was sent while issue was closed.
On 2015/06/26 09:42:07, Lasse Reichstein Nielsen wrote:
> Committed patchset #5 (id:80001) manually as
> f8ce36df557af9028ef72612a43e9942d6f16585 (presubmit successful).

Please update CHANGELOG.md for API changes – even if it's just to say this is a
place-holder.

It'll keep us honest as we get closer to release 1.12 – make sure it's fully
implemented, removed, etc.

Powered by Google App Engine
This is Rietveld 408576698