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

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

Issue 2661873002: Introduce ConstructorEntity (Closed)
Patch Set: Updated cf. comment Created 3 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
« no previous file with comments | « pkg/compiler/lib/src/core_types.dart ('k') | pkg/compiler/lib/src/elements/entities.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 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after
1409 1409
1410 /// A top level, static or instance function. 1410 /// A top level, static or instance function.
1411 abstract class MethodElement extends FunctionElement 1411 abstract class MethodElement extends FunctionElement
1412 implements MemberElement, FunctionEntity {} 1412 implements MemberElement, FunctionEntity {}
1413 1413
1414 /// A local function or closure (anonymous local function). 1414 /// A local function or closure (anonymous local function).
1415 abstract class LocalFunctionElement extends FunctionElement 1415 abstract class LocalFunctionElement extends FunctionElement
1416 implements LocalElement {} 1416 implements LocalElement {}
1417 1417
1418 /// A constructor. 1418 /// A constructor.
1419 abstract class ConstructorElement extends MethodElement { 1419 abstract class ConstructorElement extends MethodElement
1420 implements ConstructorEntity {
1420 /// Returns `true` if [effectiveTarget] has been computed for this 1421 /// Returns `true` if [effectiveTarget] has been computed for this
1421 /// constructor. 1422 /// constructor.
1422 bool get hasEffectiveTarget; 1423 bool get hasEffectiveTarget;
1423 1424
1424 /// The effective target of this constructor, that is the non-redirecting 1425 /// The effective target of this constructor, that is the non-redirecting
1425 /// constructor that is called on invocation of this constructor. 1426 /// constructor that is called on invocation of this constructor.
1426 /// 1427 ///
1427 /// Consider for instance this hierarchy: 1428 /// Consider for instance this hierarchy:
1428 /// 1429 ///
1429 /// class C { factory C.c() = D.d; } 1430 /// class C { factory C.c() = D.d; }
(...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after
2044 /// by a field. 2045 /// by a field.
2045 bool get isDeclaredByField; 2046 bool get isDeclaredByField;
2046 2047
2047 /// Returns `true` if this member is abstract. 2048 /// Returns `true` if this member is abstract.
2048 bool get isAbstract; 2049 bool get isAbstract;
2049 2050
2050 /// If abstract, [implementation] points to the overridden concrete member, 2051 /// If abstract, [implementation] points to the overridden concrete member,
2051 /// if any. Otherwise [implementation] points to the member itself. 2052 /// if any. Otherwise [implementation] points to the member itself.
2052 Member get implementation; 2053 Member get implementation;
2053 } 2054 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/core_types.dart ('k') | pkg/compiler/lib/src/elements/entities.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698