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

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

Issue 1933403002: Revert "Implements support for ignoring method type arguments in resolution." (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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 dart2js.resolution; 5 library dart2js.resolution;
6 6
7 import 'dart:collection' show Queue; 7 import 'dart:collection' show Queue;
8 8
9 import '../common.dart'; 9 import '../common.dart';
10 import '../common/names.dart' show Identifiers; 10 import '../common/names.dart' show Identifiers;
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after
972 if (element.isFactoryConstructor) { 972 if (element.isFactoryConstructor) {
973 FunctionExpression body = element.parseNode(parsingContext); 973 FunctionExpression body = element.parseNode(parsingContext);
974 if (body.isRedirectingFactory) { 974 if (body.isRedirectingFactory) {
975 defaultValuesError = MessageKind.REDIRECTING_FACTORY_WITH_DEFAULT; 975 defaultValuesError = MessageKind.REDIRECTING_FACTORY_WITH_DEFAULT;
976 } 976 }
977 } 977 }
978 return reporter.withCurrentElement(element, () { 978 return reporter.withCurrentElement(element, () {
979 FunctionExpression node = element.parseNode(parsingContext); 979 FunctionExpression node = element.parseNode(parsingContext);
980 return measure(() => SignatureResolver.analyze( 980 return measure(() => SignatureResolver.analyze(
981 compiler, 981 compiler,
982 element.enclosingElement.buildScope(),
983 node.typeVariables,
984 node.parameters, 982 node.parameters,
985 node.returnType, 983 node.returnType,
986 element, 984 element,
987 new ResolutionRegistry(compiler, _ensureTreeElements(element)), 985 new ResolutionRegistry(compiler, _ensureTreeElements(element)),
988 defaultValuesError: defaultValuesError, 986 defaultValuesError: defaultValuesError,
989 createRealParameters: true)); 987 createRealParameters: true));
990 }); 988 });
991 } 989 }
992 990
993 WorldImpact resolveTypedef(TypedefElementX element) { 991 WorldImpact resolveTypedef(TypedefElementX element) {
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1097 TreeElements get treeElements { 1095 TreeElements get treeElements {
1098 assert(invariant(this, _treeElements != null, 1096 assert(invariant(this, _treeElements != null,
1099 message: "TreeElements have not been computed for $this.")); 1097 message: "TreeElements have not been computed for $this."));
1100 return _treeElements; 1098 return _treeElements;
1101 } 1099 }
1102 1100
1103 void reuseElement() { 1101 void reuseElement() {
1104 _treeElements = null; 1102 _treeElements = null;
1105 } 1103 }
1106 } 1104 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/members.dart ('k') | pkg/compiler/lib/src/resolution/scope.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698