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

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: return null for unresolved default constructors Created 5 years, 10 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/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/elements/modelx.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 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 1356 matching lines...) Expand 10 before | Expand all | Expand 10 after
1367 Element lookupSelector(Selector selector); 1367 Element lookupSelector(Selector selector);
1368 Element lookupSuperSelector(Selector selector); 1368 Element lookupSuperSelector(Selector selector);
1369 1369
1370 Element lookupLocalMember(String memberName); 1370 Element lookupLocalMember(String memberName);
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 ConstructorElement lookupDefaultConstructor();
1378 Element result, 1378 ConstructorElement lookupConstructor(String name);
1379 Element noMatch(Element));
1380
1381 Element lookupConstructor(Selector selector, [Element noMatch(Element)]);
1382 1379
1383 void forEachMember(void f(ClassElement enclosingClass, Element member), 1380 void forEachMember(void f(ClassElement enclosingClass, Element member),
1384 {bool includeBackendMembers: false, 1381 {bool includeBackendMembers: false,
1385 bool includeSuperAndInjectedMembers: false}); 1382 bool includeSuperAndInjectedMembers: false});
1386 1383
1387 void forEachInstanceField(void f(ClassElement enclosingClass, 1384 void forEachInstanceField(void f(ClassElement enclosingClass,
1388 FieldElement field), 1385 FieldElement field),
1389 {bool includeSuperAndInjectedMembers: false}); 1386 {bool includeSuperAndInjectedMembers: false});
1390 1387
1391 /// Similar to [forEachInstanceField] but visits static fields. 1388 /// Similar to [forEachInstanceField] but visits static fields.
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
1613 bool get isDeclaredByField; 1610 bool get isDeclaredByField;
1614 1611
1615 /// Returns `true` if this member is abstract. 1612 /// Returns `true` if this member is abstract.
1616 bool get isAbstract; 1613 bool get isAbstract;
1617 1614
1618 /// If abstract, [implementation] points to the overridden concrete member, 1615 /// If abstract, [implementation] points to the overridden concrete member,
1619 /// if any. Otherwise [implementation] points to the member itself. 1616 /// if any. Otherwise [implementation] points to the member itself.
1620 Member get implementation; 1617 Member get implementation;
1621 } 1618 }
1622 1619
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/compiler.dart ('k') | pkg/compiler/lib/src/elements/modelx.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698