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

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

Issue 2056903003: Remove Registry from registerMetadataConstant (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Add missing annotations Created 4 years, 6 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 dart2js.resolution.registry; 5 library dart2js.resolution.registry;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/backend_api.dart' 8 import '../common/backend_api.dart'
9 show Backend, ForeignResolver, NativeRegistry; 9 show Backend, ForeignResolver, NativeRegistry;
10 import '../common/resolution.dart' 10 import '../common/resolution.dart'
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 } 327 }
328 328
329 ////////////////////////////////////////////////////////////////////////////// 329 //////////////////////////////////////////////////////////////////////////////
330 // Various Backend/Enqueuer/World registration. 330 // Various Backend/Enqueuer/World registration.
331 ////////////////////////////////////////////////////////////////////////////// 331 //////////////////////////////////////////////////////////////////////////////
332 332
333 void registerStaticUse(StaticUse staticUse) { 333 void registerStaticUse(StaticUse staticUse) {
334 worldImpact.registerStaticUse(staticUse); 334 worldImpact.registerStaticUse(staticUse);
335 } 335 }
336 336
337 void registerMetadataConstant(MetadataAnnotation metadata) {
338 backend.registerMetadataConstant(metadata, metadata.annotatedElement, this);
339 }
340
341 /// Register the use of a type. 337 /// Register the use of a type.
342 void registerTypeUse(TypeUse typeUse) { 338 void registerTypeUse(TypeUse typeUse) {
343 worldImpact.registerTypeUse(typeUse); 339 worldImpact.registerTypeUse(typeUse);
344 } 340 }
345 341
346 void registerSuperUse(SourceSpan span) { 342 void registerSuperUse(SourceSpan span) {
347 mapping.addSuperUse(span); 343 mapping.addSuperUse(span);
348 } 344 }
349 345
350 void registerTypeLiteral(Send node, DartType type) { 346 void registerTypeLiteral(Send node, DartType type) {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 @override 430 @override
435 void registerInstantiatedType(InterfaceType type) { 431 void registerInstantiatedType(InterfaceType type) {
436 registry.registerInstantiation(type); 432 registry.registerInstantiation(type);
437 } 433 }
438 434
439 @override 435 @override
440 DartType resolveTypeFromString(Node node, String typeName) { 436 DartType resolveTypeFromString(Node node, String typeName) {
441 return visitor.resolveTypeFromString(node, typeName); 437 return visitor.resolveTypeFromString(node, typeName);
442 } 438 }
443 } 439 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/resolution/resolution.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698