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

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

Issue 1149973004: Start to compute SendStructure in resolution. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 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) 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 part of resolution; 5 part of resolution;
6 6
7 /// [ResolutionRegistry] collects all resolution information. It stores node 7 /// [ResolutionRegistry] collects all resolution information. It stores node
8 /// related information in a [TreeElements] mapping and registers calls with 8 /// related information in a [TreeElements] mapping and registers calls with
9 /// [Backend], [World] and [Enqueuer]. 9 /// [Backend], [World] and [Enqueuer].
10 // TODO(johnniwinther): Split this into an interface and implementation class. 10 // TODO(johnniwinther): Split this into an interface and implementation class.
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 372
373 void registerAssert(Send node) { 373 void registerAssert(Send node) {
374 mapping.setAssert(node); 374 mapping.setAssert(node);
375 backend.resolutionCallbacks.onAssert(node, this); 375 backend.resolutionCallbacks.onAssert(node, this);
376 } 376 }
377 377
378 bool isAssert(Send node) { 378 bool isAssert(Send node) {
379 return mapping.isAssert(node); 379 return mapping.isAssert(node);
380 } 380 }
381 381
382 void registerSendStructure(Send node, SendStructure sendStructure) {
383 mapping.setSendStructure(node, sendStructure);
384 }
385
382 void registerAsyncMarker(FunctionElement element) { 386 void registerAsyncMarker(FunctionElement element) {
383 backend.registerAsyncMarker(element, world, this); 387 backend.registerAsyncMarker(element, world, this);
384 } 388 }
385 389
386 void registerAsyncForIn(AsyncForIn node) { 390 void registerAsyncForIn(AsyncForIn node) {
387 backend.resolutionCallbacks.onAsyncForIn(node, this); 391 backend.resolutionCallbacks.onAsyncForIn(node, this);
388 } 392 }
389 } 393 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolution/members.dart ('k') | pkg/compiler/lib/src/resolution/resolution.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698