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

Unified Diff: pkg/compiler/lib/src/resolution/class_hierarchy.dart

Issue 1314573002: Use Name instead of Selector in SemanticSendVisitor (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/resolution/class_hierarchy.dart
diff --git a/pkg/compiler/lib/src/resolution/class_hierarchy.dart b/pkg/compiler/lib/src/resolution/class_hierarchy.dart
index a6fb8c4fd98c538a2be78a774076c1c26d91c3cb..1c3dc8e604b81e26c880954578237e2d8a1bd023 100644
--- a/pkg/compiler/lib/src/resolution/class_hierarchy.dart
+++ b/pkg/compiler/lib/src/resolution/class_hierarchy.dart
@@ -27,6 +27,7 @@ import '../util/util.dart' show
Link,
Setlet;
import '../universe/universe.dart' show
+ CallStructure,
Selector;
import 'enum_creator.dart';
@@ -201,9 +202,9 @@ class ClassResolverVisitor extends TypeDefinitionVisitor {
registry.registerThrowNoSuchMethod();
} else {
ConstructorElement superConstructor = superMember;
- Selector callToMatch = new Selector.call(const PublicName(''), 0);
superConstructor.computeType(compiler);
- if (!callToMatch.applies(superConstructor, compiler.world)) {
+ if (!CallStructure.NO_ARGS.signatureApplies(
+ superConstructor.functionSignature)) {
MessageKind kind = MessageKind.NO_MATCHING_CONSTRUCTOR_FOR_IMPLICIT;
compiler.reportError(node, kind);
superMember = new ErroneousElementX(kind, {}, '', element);

Powered by Google App Engine
This is Rietveld 408576698