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

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

Issue 2535213003: Support patched generic methods. (Closed)
Patch Set: Add tests for renaming. Created 4 years 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 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after
1410 1410
1411 /// JavaScript backend specific element for the body of constructor. 1411 /// JavaScript backend specific element for the body of constructor.
1412 // TODO(johnniwinther): Remove this class from the element model. 1412 // TODO(johnniwinther): Remove this class from the element model.
1413 abstract class ConstructorBodyElement extends MethodElement { 1413 abstract class ConstructorBodyElement extends MethodElement {
1414 FunctionElement get constructor; 1414 FunctionElement get constructor;
1415 } 1415 }
1416 1416
1417 /// [GenericElement] defines the common interface for generic functions and 1417 /// [GenericElement] defines the common interface for generic functions and
1418 /// [TypeDeclarationElement]. 1418 /// [TypeDeclarationElement].
1419 abstract class GenericElement extends Element implements AstElement { 1419 abstract class GenericElement extends Element implements AstElement {
1420 /// Do not use [computeType] outside of the resolver.
1421 ///
1422 /// Trying to access a type that has not been computed in resolution is an
1423 /// error and calling [computeType] covers that error.
1424 /// This method will go away!
1425 @deprecated
1426 DartType computeType(Resolution resolution);
1427
1420 /** 1428 /**
1421 * The type variables declared on this declaration. The type variables are not 1429 * The type variables declared on this declaration. The type variables are not
1422 * available until the type of the element has been computed through 1430 * available until the type of the element has been computed through
1423 * [computeType]. 1431 * [computeType].
1424 */ 1432 */
1425 List<DartType> get typeVariables; 1433 List<DartType> get typeVariables;
1426 } 1434 }
1427 1435
1428 /// [TypeDeclarationElement] defines the common interface for class/interface 1436 /// [TypeDeclarationElement] defines the common interface for class/interface
1429 /// declarations and typedefs. 1437 /// declarations and typedefs.
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
1923 /// by a field. 1931 /// by a field.
1924 bool get isDeclaredByField; 1932 bool get isDeclaredByField;
1925 1933
1926 /// Returns `true` if this member is abstract. 1934 /// Returns `true` if this member is abstract.
1927 bool get isAbstract; 1935 bool get isAbstract;
1928 1936
1929 /// If abstract, [implementation] points to the overridden concrete member, 1937 /// If abstract, [implementation] points to the overridden concrete member,
1930 /// if any. Otherwise [implementation] points to the member itself. 1938 /// if any. Otherwise [implementation] points to the member itself.
1931 Member get implementation; 1939 Member get implementation;
1932 } 1940 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/diagnostics/messages.dart ('k') | pkg/compiler/lib/src/js_backend/patch_resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698