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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/elements/modelx.dart

Issue 24645002: added bool type to named args in lib/io and lib/_internal (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: long line 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 library elements.modelx; 5 library elements.modelx;
6 6
7 import 'dart:collection' show LinkedHashMap; 7 import 'dart:collection' show LinkedHashMap;
8 8
9 import 'elements.dart'; 9 import 'elements.dart';
10 import '../../compiler.dart' as api; 10 import '../../compiler.dart' as api;
(...skipping 1871 matching lines...) Expand 10 before | Expand all | Expand 10 after
1882 /** 1882 /**
1883 * Runs through all instance-field members of this class. 1883 * Runs through all instance-field members of this class.
1884 * 1884 *
1885 * The enclosing class is passed to the callback. This is useful when 1885 * The enclosing class is passed to the callback. This is useful when
1886 * [includeSuperAndInjectedMembers] is [:true:]. 1886 * [includeSuperAndInjectedMembers] is [:true:].
1887 * 1887 *
1888 * When called on the implementation element both the fields declared in the 1888 * When called on the implementation element both the fields declared in the
1889 * origin and in the patch are included. 1889 * origin and in the patch are included.
1890 */ 1890 */
1891 void forEachInstanceField(void f(ClassElement enclosingClass, Element field), 1891 void forEachInstanceField(void f(ClassElement enclosingClass, Element field),
1892 {includeSuperAndInjectedMembers: false}) { 1892 {bool includeSuperAndInjectedMembers: false}) {
1893 // Filters so that [f] is only invoked with instance fields. 1893 // Filters so that [f] is only invoked with instance fields.
1894 void fieldFilter(ClassElement enclosingClass, Element member) { 1894 void fieldFilter(ClassElement enclosingClass, Element member) {
1895 if (member.isInstanceMember() && member.kind == ElementKind.FIELD) { 1895 if (member.isInstanceMember() && member.kind == ElementKind.FIELD) {
1896 f(enclosingClass, member); 1896 f(enclosingClass, member);
1897 } 1897 }
1898 } 1898 }
1899 1899
1900 forEachMember(fieldFilter, 1900 forEachMember(fieldFilter,
1901 includeSuperAndInjectedMembers: includeSuperAndInjectedMembers); 1901 includeSuperAndInjectedMembers: includeSuperAndInjectedMembers);
1902 } 1902 }
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
2232 2232
2233 MetadataAnnotation ensureResolved(Compiler compiler) { 2233 MetadataAnnotation ensureResolved(Compiler compiler) {
2234 if (resolutionState == STATE_NOT_STARTED) { 2234 if (resolutionState == STATE_NOT_STARTED) {
2235 compiler.resolver.resolveMetadataAnnotation(this); 2235 compiler.resolver.resolveMetadataAnnotation(this);
2236 } 2236 }
2237 return this; 2237 return this;
2238 } 2238 }
2239 2239
2240 String toString() => 'MetadataAnnotation($value, $resolutionState)'; 2240 String toString() => 'MetadataAnnotation($value, $resolutionState)';
2241 } 2241 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/elements/elements.dart ('k') | sdk/lib/_internal/pub/lib/src/io.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698