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

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

Issue 1437463005: Compute NewStructure in resolution. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Long line. Created 5 years, 1 month 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/semantic_visitor.dart
diff --git a/pkg/compiler/lib/src/resolution/semantic_visitor.dart b/pkg/compiler/lib/src/resolution/semantic_visitor.dart
index 92db2c454dd2d58613d49f323669a63833792765..cb391a359987045f81fc077b1f7b652caad1134c 100644
--- a/pkg/compiler/lib/src/resolution/semantic_visitor.dart
+++ b/pkg/compiler/lib/src/resolution/semantic_visitor.dart
@@ -23,8 +23,10 @@ part 'semantic_visitor_mixins.dart';
/// Mixin that couples a [SendResolverMixin] to a [SemanticSendVisitor] in a
/// [Visitor].
-abstract class SemanticSendResolvedMixin<R, A>
- implements Visitor<R>, SendResolverMixin {
+abstract class SemanticSendResolvedMixin<R, A> implements Visitor<R> {
+ TreeElements get elements;
+
+ internalError(Spannable spannable, String message);
SemanticSendVisitor<R, A> get sendVisitor;
@@ -63,7 +65,7 @@ abstract class SemanticSendResolvedMixin<R, A>
// TODO(johnniwinther): Support argument.
A arg = null;
- NewStructure structure = computeNewStructure(node);
+ NewStructure structure = elements.getNewStructure(node);
if (structure == null) {
return internalError(node, 'No structure for $node');
} else {
@@ -127,7 +129,6 @@ abstract class SemanticDeclarationResolvedMixin<R, A>
abstract class SemanticVisitor<R, A> extends Visitor<R>
with SemanticSendResolvedMixin<R, A>,
- SendResolverMixin,
SemanticDeclarationResolvedMixin<R, A>,
DeclarationResolverMixin {
TreeElements elements;

Powered by Google App Engine
This is Rietveld 408576698