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

Side by Side Diff: pkg/compiler/lib/src/resolution/class_members.dart

Issue 2918913003: Handle list and map literals (Closed)
Patch Set: Updated cf. comments Created 3 years, 6 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 dart2js.resolution.compute_members; 5 library dart2js.resolution.compute_members;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/names.dart' show Identifiers, Names; 8 import '../common/names.dart' show Identifiers, Names;
9 import '../common/resolution.dart' show Resolution; 9 import '../common/resolution.dart' show Resolution;
10 import '../elements/resolution_types.dart';
11 import '../elements/elements.dart' 10 import '../elements/elements.dart'
12 show 11 show
13 ClassElement, 12 ClassElement,
14 Element, 13 Element,
15 LibraryElement, 14 LibraryElement,
16 Member, 15 Member,
17 MemberElement, 16 MemberElement,
18 MemberSignature, 17 MemberSignature,
19 MixinApplicationElement; 18 MixinApplicationElement;
19 import '../elements/resolution_types.dart';
20 import '../elements/types.dart';
20 import '../elements/names.dart'; 21 import '../elements/names.dart';
21 import '../util/util.dart'; 22 import '../util/util.dart';
22 23
23 part 'member_impl.dart'; 24 part 'member_impl.dart';
24 25
25 abstract class MembersCreator { 26 abstract class MembersCreator {
26 final ClassElement cls; 27 final ClassElement cls;
27 final Resolution resolution; 28 final Resolution resolution;
28 29
29 final Iterable<String> computedMemberNames; 30 final Iterable<String> computedMemberNames;
(...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after
959 failedAt(this, "Members have not been fully computed for $this.")); 960 failedAt(this, "Members have not been fully computed for $this."));
960 if (interfaceMembersAreClassMembers) { 961 if (interfaceMembersAreClassMembers) {
961 classMembers.forEach((_, member) { 962 classMembers.forEach((_, member) {
962 if (!member.isStatic) f(member); 963 if (!member.isStatic) f(member);
963 }); 964 });
964 } else { 965 } else {
965 interfaceMembers.forEach((_, member) => f(member)); 966 interfaceMembers.forEach((_, member) => f(member));
966 } 967 }
967 } 968 }
968 } 969 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/types.dart ('k') | pkg/compiler/lib/src/resolution/member_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698