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

Side by Side Diff: pkg/compiler/lib/src/elements/elements.dart

Issue 2033893004: Align semantics of getDefaultConstructor() (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/serialization/modelz.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) 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 elements; 5 library elements;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/resolution.dart' show Resolution; 8 import '../common/resolution.dart' show Resolution;
9 import '../compiler.dart' show Compiler; 9 import '../compiler.dart' show Compiler;
10 import '../constants/constructors.dart'; 10 import '../constants/constructors.dart';
(...skipping 1481 matching lines...) Expand 10 before | Expand all | Expand 10 after
1492 Element lookupMember(String memberName); 1492 Element lookupMember(String memberName);
1493 Element lookupByName(Name memberName); 1493 Element lookupByName(Name memberName);
1494 Element lookupSuperByName(Name memberName); 1494 Element lookupSuperByName(Name memberName);
1495 1495
1496 Element lookupLocalMember(String memberName); 1496 Element lookupLocalMember(String memberName);
1497 Element lookupBackendMember(String memberName); 1497 Element lookupBackendMember(String memberName);
1498 Element lookupSuperMember(String memberName); 1498 Element lookupSuperMember(String memberName);
1499 1499
1500 Element lookupSuperMemberInLibrary(String memberName, LibraryElement library); 1500 Element lookupSuperMemberInLibrary(String memberName, LibraryElement library);
1501 1501
1502 // TODO(johnniwinther): Clean up semantics. Can the default constructor take
1503 // optional arguments? Must it be resolved?
1502 ConstructorElement lookupDefaultConstructor(); 1504 ConstructorElement lookupDefaultConstructor();
1503 ConstructorElement lookupConstructor(String name); 1505 ConstructorElement lookupConstructor(String name);
1504 1506
1505 void forEachMember(void f(ClassElement enclosingClass, Element member), 1507 void forEachMember(void f(ClassElement enclosingClass, Element member),
1506 {bool includeBackendMembers: false, 1508 {bool includeBackendMembers: false,
1507 bool includeSuperAndInjectedMembers: false}); 1509 bool includeSuperAndInjectedMembers: false});
1508 1510
1509 void forEachInstanceField( 1511 void forEachInstanceField(
1510 void f(ClassElement enclosingClass, FieldElement field), 1512 void f(ClassElement enclosingClass, FieldElement field),
1511 {bool includeSuperAndInjectedMembers: false}); 1513 {bool includeSuperAndInjectedMembers: false});
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
1843 /// by a field. 1845 /// by a field.
1844 bool get isDeclaredByField; 1846 bool get isDeclaredByField;
1845 1847
1846 /// Returns `true` if this member is abstract. 1848 /// Returns `true` if this member is abstract.
1847 bool get isAbstract; 1849 bool get isAbstract;
1848 1850
1849 /// If abstract, [implementation] points to the overridden concrete member, 1851 /// If abstract, [implementation] points to the overridden concrete member,
1850 /// if any. Otherwise [implementation] points to the member itself. 1852 /// if any. Otherwise [implementation] points to the member itself.
1851 Member get implementation; 1853 Member get implementation;
1852 } 1854 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/serialization/modelz.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698