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

Side by Side Diff: pkg/compiler/lib/src/elements/entities.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
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 entities; 5 library entities;
6 6
7 import 'elements.dart' show Entity; 7 import 'elements.dart' show Entity;
8 8
9 /// Stripped down super interface for library like entities. 9 /// Stripped down super interface for library like entities.
10 /// 10 ///
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } 46 }
47 47
48 /// Stripped down super interface for field like entities. 48 /// Stripped down super interface for field like entities.
49 /// 49 ///
50 /// Currently only [FieldElement] but later also kernel based Dart fields 50 /// Currently only [FieldElement] but later also kernel based Dart fields
51 /// and/or Dart-in-JS field-like properties. 51 /// and/or Dart-in-JS field-like properties.
52 abstract class FieldEntity extends MemberEntity {} 52 abstract class FieldEntity extends MemberEntity {}
53 53
54 /// Stripped down super interface for function like entities. 54 /// Stripped down super interface for function like entities.
55 /// 55 ///
56 /// Currently only [FieldElement] but later also kernel based Dart constructors 56 /// Currently only [MethodElement] but later also kernel based Dart constructors
57 /// and methods and/or Dart-in-JS function-like properties. 57 /// and methods and/or Dart-in-JS function-like properties.
58 abstract class FunctionEntity extends MemberEntity {} 58 abstract class FunctionEntity extends MemberEntity {}
59
60 /// Stripped down super interface for constructor like entities.
61 ///
62 /// Currently only [ConstructorElement] but later also kernel based Dart
63 /// constructors and/or Dart-in-JS constructor-like properties.
64 // TODO(johnniwinther): Remove factory constructors from the set of
65 // constructors.
66 abstract class ConstructorEntity extends FunctionEntity {
67 bool get isGenerativeConstructor;
68 bool get isFactoryConstructor;
69 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/elements/elements.dart ('k') | pkg/compiler/lib/src/js_emitter/interceptor_stub_generator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698