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

Side by Side Diff: pkg/analyzer/lib/src/dart/element/member.dart

Issue 2997333002: Deprecate MethodElement.getReifiedType (Closed)
Patch Set: Created 3 years, 4 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 analyzer.src.dart.element.member; 5 library analyzer.src.dart.element.member;
6 6
7 import 'package:analyzer/dart/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
8 import 'package:analyzer/dart/constant/value.dart'; 8 import 'package:analyzer/dart/constant/value.dart';
9 import 'package:analyzer/dart/element/element.dart'; 9 import 'package:analyzer/dart/element/element.dart';
10 import 'package:analyzer/dart/element/type.dart'; 10 import 'package:analyzer/dart/element/type.dart';
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 542
543 @override 543 @override
544 ClassElement get enclosingElement => baseElement.enclosingElement; 544 ClassElement get enclosingElement => baseElement.enclosingElement;
545 545
546 @override 546 @override
547 T accept<T>(ElementVisitor<T> visitor) => visitor.visitMethodElement(this); 547 T accept<T>(ElementVisitor<T> visitor) => visitor.visitMethodElement(this);
548 548
549 @override 549 @override
550 MethodDeclaration computeNode() => baseElement.computeNode(); 550 MethodDeclaration computeNode() => baseElement.computeNode();
551 551
552 @deprecated
552 @override 553 @override
553 FunctionType getReifiedType(DartType objectType) => 554 FunctionType getReifiedType(DartType objectType) =>
554 substituteFor(baseElement.getReifiedType(objectType)); 555 substituteFor(baseElement.getReifiedType(objectType));
555 556
556 @override 557 @override
557 String toString() { 558 String toString() {
558 MethodElement baseElement = this.baseElement; 559 MethodElement baseElement = this.baseElement;
559 List<ParameterElement> parameters = this.parameters; 560 List<ParameterElement> parameters = this.parameters;
560 FunctionType type = this.type; 561 FunctionType type = this.type;
561 StringBuffer buffer = new StringBuffer(); 562 StringBuffer buffer = new StringBuffer();
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
991 DartObject computeConstantValue() => baseElement.computeConstantValue(); 992 DartObject computeConstantValue() => baseElement.computeConstantValue();
992 993
993 @override 994 @override
994 void visitChildren(ElementVisitor visitor) { 995 void visitChildren(ElementVisitor visitor) {
995 // TODO(brianwilkerson) We need to finish implementing the accessors used 996 // TODO(brianwilkerson) We need to finish implementing the accessors used
996 // below so that we can safely invoke them. 997 // below so that we can safely invoke them.
997 super.visitChildren(visitor); 998 super.visitChildren(visitor);
998 baseElement.initializer?.accept(visitor); 999 baseElement.initializer?.accept(visitor);
999 } 1000 }
1000 } 1001 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/handle.dart ('k') | pkg/analyzer/test/src/dart/element/element_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698