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

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

Issue 2331923002: Handle signature types and fields in kernel_impact (Closed)
Patch Set: Fix lookup_map_test. Created 4 years, 3 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) 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 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after
1168 * looking at code like "foo.x", we don't have to look for both a 1168 * looking at code like "foo.x", we don't have to look for both a
1169 * field named "x", a getter named "x", and a setter named "x=". 1169 * field named "x", a getter named "x", and a setter named "x=".
1170 */ 1170 */
1171 abstract class AbstractFieldElement extends Element { 1171 abstract class AbstractFieldElement extends Element {
1172 GetterElement get getter; 1172 GetterElement get getter;
1173 SetterElement get setter; 1173 SetterElement get setter;
1174 } 1174 }
1175 1175
1176 abstract class FunctionSignature { 1176 abstract class FunctionSignature {
1177 FunctionType get type; 1177 FunctionType get type;
1178 DartType get returnType;
1178 List<DartType> get typeVariables; 1179 List<DartType> get typeVariables;
1179 List<FormalElement> get requiredParameters; 1180 List<FormalElement> get requiredParameters;
1180 List<FormalElement> get optionalParameters; 1181 List<FormalElement> get optionalParameters;
1181 1182
1182 int get requiredParameterCount; 1183 int get requiredParameterCount;
1183 int get optionalParameterCount; 1184 int get optionalParameterCount;
1184 bool get optionalParametersAreNamed; 1185 bool get optionalParametersAreNamed;
1185 bool get hasOptionalParameters; 1186 bool get hasOptionalParameters;
1186 1187
1187 int get parameterCount; 1188 int get parameterCount;
(...skipping 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
1908 /// by a field. 1909 /// by a field.
1909 bool get isDeclaredByField; 1910 bool get isDeclaredByField;
1910 1911
1911 /// Returns `true` if this member is abstract. 1912 /// Returns `true` if this member is abstract.
1912 bool get isAbstract; 1913 bool get isAbstract;
1913 1914
1914 /// If abstract, [implementation] points to the overridden concrete member, 1915 /// If abstract, [implementation] points to the overridden concrete member,
1915 /// if any. Otherwise [implementation] points to the member itself. 1916 /// if any. Otherwise [implementation] points to the member itself.
1916 Member get implementation; 1917 Member get implementation;
1917 } 1918 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698