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

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

Issue 812523002: Change signature of lookupConstructor to only require a name. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fail gracefully on missing default constructors when evaluating constant constructors. Created 5 years, 11 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) 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 7
8 import '../constants/expressions.dart'; 8 import '../constants/expressions.dart';
9 import '../tree/tree.dart'; 9 import '../tree/tree.dart';
10 import '../util/util.dart'; 10 import '../util/util.dart';
(...skipping 1360 matching lines...) Expand 10 before | Expand all | Expand 10 after
1371 Element lookupBackendMember(String memberName); 1371 Element lookupBackendMember(String memberName);
1372 Element lookupSuperMember(String memberName); 1372 Element lookupSuperMember(String memberName);
1373 1373
1374 Element lookupSuperMemberInLibrary(String memberName, 1374 Element lookupSuperMemberInLibrary(String memberName,
1375 LibraryElement library); 1375 LibraryElement library);
1376 1376
1377 Element validateConstructorLookupResults(Selector selector, 1377 Element validateConstructorLookupResults(Selector selector,
1378 Element result, 1378 Element result,
1379 Element noMatch(Element)); 1379 Element noMatch(Element));
1380 1380
1381 Element lookupConstructor(Selector selector, [Element noMatch(Element)]); 1381 ConstructorElement lookupDefaultConstructor();
1382 ConstructorElement lookupConstructor(String name);
1382 1383
1383 void forEachMember(void f(ClassElement enclosingClass, Element member), 1384 void forEachMember(void f(ClassElement enclosingClass, Element member),
1384 {bool includeBackendMembers: false, 1385 {bool includeBackendMembers: false,
1385 bool includeSuperAndInjectedMembers: false}); 1386 bool includeSuperAndInjectedMembers: false});
1386 1387
1387 void forEachInstanceField(void f(ClassElement enclosingClass, 1388 void forEachInstanceField(void f(ClassElement enclosingClass,
1388 FieldElement field), 1389 FieldElement field),
1389 {bool includeSuperAndInjectedMembers: false}); 1390 {bool includeSuperAndInjectedMembers: false});
1390 1391
1391 /// Similar to [forEachInstanceField] but visits static fields. 1392 /// Similar to [forEachInstanceField] but visits static fields.
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
1613 bool get isDeclaredByField; 1614 bool get isDeclaredByField;
1614 1615
1615 /// Returns `true` if this member is abstract. 1616 /// Returns `true` if this member is abstract.
1616 bool get isAbstract; 1617 bool get isAbstract;
1617 1618
1618 /// If abstract, [implementation] points to the overridden concrete member, 1619 /// If abstract, [implementation] points to the overridden concrete member,
1619 /// if any. Otherwise [implementation] points to the member itself. 1620 /// if any. Otherwise [implementation] points to the member itself.
1620 Member get implementation; 1621 Member get implementation;
1621 } 1622 }
1622 1623
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698