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

Side by Side Diff: sdk/lib/_collection_dev/iterable.dart

Issue 25354003: Redo StreamTransformers so they work with Stack traces. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/utf/lib/utf_stream.dart ('k') | sdk/lib/_internal/compiler/implementation/compiler.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart._collection.dev; 5 part of dart._collection.dev;
6 6
7 7
8 // This is a hack to make @deprecated work in dart:io. Don't remove or use this, 8 // This is a hack to make @deprecated work in dart:io. Don't remove or use this,
9 // unless coordinated with either me or the core library team. Thanks! 9 // unless coordinated with either me or the core library team. Thanks!
10 // TODO(ajohnsen): Remove at the 11th of August 2013. 10 // TODO(ajohnsen): Remove at the 11th of August 2013.
11 // TODO(ajohnsen): Remove hide in: 11 // TODO(ajohnsen): Remove hide in:
12 // tools/dom/templates/html/dart2js/html_dart2js.darttemplate 12 // tools/dom/templates/html/dart2js/html_dart2js.darttemplate
13 // tools/dom/templates/html/dart2js/svg_dart2js.darttemplate 13 // tools/dom/templates/html/dart2js/svg_dart2js.darttemplate
14 // tools/dom/templates/html/dart2js/web_audio_dart2js.darttemplate 14 // tools/dom/templates/html/dart2js/web_audio_dart2js.darttemplate
15 // tools/dom/templates/html/dart2js/web_gl_dart2js.darttemplate 15 // tools/dom/templates/html/dart2js/web_gl_dart2js.darttemplate
16 // tools/dom/templates/html/dart2js/web_sql_dart2js.darttemplate 16 // tools/dom/templates/html/dart2js/web_sql_dart2js.darttemplate
17 // tools/dom/templates/html/dartium/html_dartium.darttemplate 17 // tools/dom/templates/html/dartium/html_dartium.darttemplate
18 // tools/dom/templates/html/dartium/svg_dartium.darttemplate 18 // tools/dom/templates/html/dartium/svg_dartium.darttemplate
19 // tools/dom/templates/html/dartium/web_audio_dartium.darttemplate 19 // tools/dom/templates/html/dartium/web_audio_dartium.darttemplate
20 // tools/dom/templates/html/dartium/web_gl_dartium.darttemplate 20 // tools/dom/templates/html/dartium/web_gl_dartium.darttemplate
21 // tools/dom/templates/html/dartium/web_sql_dartium.darttemplate 21 // tools/dom/templates/html/dartium/web_sql_dartium.darttemplate
22 // sdk/lib/core/regexp.dart 22 // sdk/lib/core/regexp.dart
23 // TODO(floitsch): also used in dart:async until end of September for 23 // TODO(floitsch): also used in dart:async until end of September for
24 // deprecation of runZonedExperimental. 24 // deprecation of runZonedExperimental.
25 // TODO(floitsch): also used in dart:json and dart:utf until middle of October 25 // TODO(floitsch): also used in dart:json and dart:utf until middle of October
26 // for deprecation of json and utf libraries. 26 // for deprecation of json and utf libraries.
27 // TODO(floitsch): and dart:async until middle of October for deprecation of
28 // getAttachedStackTrace.
27 29
28 // We use a random string constant to avoid it clashing with other constants. 30 // We use a random string constant to avoid it clashing with other constants.
29 // This is, because we have a test that verifies that no metadata is included 31 // This is, because we have a test that verifies that no metadata is included
30 // in the output, when no mirrors need them. 32 // in the output, when no mirrors need them.
31 const deprecated = "qB2n4PYM"; 33 const deprecated = "qB2n4PYM";
32 34
33 /** 35 /**
34 * An [Iterable] for classes that have efficient [length] and [elementAt]. 36 * An [Iterable] for classes that have efficient [length] and [elementAt].
35 * 37 *
36 * All other methods are implemented in terms of [length] and [elementAt], 38 * All other methods are implemented in terms of [length] and [elementAt],
(...skipping 1057 matching lines...) Expand 10 before | Expand all | Expand 10 after
1094 1096
1095 static Set setDifference(Set set, Set other, Set result) { 1097 static Set setDifference(Set set, Set other, Set result) {
1096 for (var element in set) { 1098 for (var element in set) {
1097 if (!other.contains(element)) { 1099 if (!other.contains(element)) {
1098 result.add(element); 1100 result.add(element);
1099 } 1101 }
1100 } 1102 }
1101 return result; 1103 return result;
1102 } 1104 }
1103 } 1105 }
OLDNEW
« no previous file with comments | « pkg/utf/lib/utf_stream.dart ('k') | sdk/lib/_internal/compiler/implementation/compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698