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

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

Issue 2981633002: Introduce TypedefEntity (Closed)
Patch Set: Updated cf. comments Created 3 years, 5 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/common_elements.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 '../constants/constructors.dart'; 9 import '../constants/constructors.dart';
10 import '../constants/expressions.dart'; 10 import '../constants/expressions.dart';
(...skipping 1037 matching lines...) Expand 10 before | Expand all | Expand 10 after
1048 1048
1049 /// Import that declared this deferred prefix. 1049 /// Import that declared this deferred prefix.
1050 ImportElement get deferredImport; 1050 ImportElement get deferredImport;
1051 1051
1052 /// The `loadLibrary` getter implicitly defined on deferred prefixes. 1052 /// The `loadLibrary` getter implicitly defined on deferred prefixes.
1053 GetterElement get loadLibrary; 1053 GetterElement get loadLibrary;
1054 } 1054 }
1055 1055
1056 /// A type alias definition. 1056 /// A type alias definition.
1057 abstract class TypedefElement extends Element 1057 abstract class TypedefElement extends Element
1058 implements AstElement, TypeDeclarationElement, FunctionTypedElement { 1058 implements
1059 AstElement,
1060 TypeDeclarationElement,
1061 FunctionTypedElement,
1062 TypedefEntity {
1059 /// The type defined by this typedef with the type variables as its type 1063 /// The type defined by this typedef with the type variables as its type
1060 /// arguments. 1064 /// arguments.
1061 /// 1065 ///
1062 /// For instance `F<T>` for `typedef void F<T>(T t)`. 1066 /// For instance `F<T>` for `typedef void F<T>(T t)`.
1063 ResolutionTypedefType get thisType; 1067 ResolutionTypedefType get thisType;
1064 1068
1065 /// The type defined by this typedef with `dynamic` as its type arguments. 1069 /// The type defined by this typedef with `dynamic` as its type arguments.
1066 /// 1070 ///
1067 /// For instance `F<dynamic>` for `typedef void F<T>(T t)`. 1071 /// For instance `F<dynamic>` for `typedef void F<T>(T t)`.
1068 ResolutionTypedefType get rawType; 1072 ResolutionTypedefType get rawType;
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
1900 /// by a field. 1904 /// by a field.
1901 bool get isDeclaredByField; 1905 bool get isDeclaredByField;
1902 1906
1903 /// Returns `true` if this member is abstract. 1907 /// Returns `true` if this member is abstract.
1904 bool get isAbstract; 1908 bool get isAbstract;
1905 1909
1906 /// If abstract, [implementation] points to the overridden concrete member, 1910 /// If abstract, [implementation] points to the overridden concrete member,
1907 /// if any. Otherwise [implementation] points to the member itself. 1911 /// if any. Otherwise [implementation] points to the member itself.
1908 Member get implementation; 1912 Member get implementation;
1909 } 1913 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/common_elements.dart ('k') | pkg/compiler/lib/src/elements/entities.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698