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

Side by Side Diff: pkg/compiler/lib/src/common/backend_api.dart

Issue 2647793003: Use entities in some full_emitter sublibraries (Closed)
Patch Set: Created 3 years, 11 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.backend_api; 5 library dart2js.backend_api;
6 6
7 import 'dart:async' show Future; 7 import 'dart:async' show Future;
8 8
9 import '../common.dart'; 9 import '../common.dart';
10 import '../common/codegen.dart' show CodegenImpact; 10 import '../common/codegen.dart' show CodegenImpact;
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 255
256 /// Called by [MirrorUsageAnalyzerTask] after it has merged all @MirrorsUsed 256 /// Called by [MirrorUsageAnalyzerTask] after it has merged all @MirrorsUsed
257 /// annotations. The arguments corresponds to the unions of the corresponding 257 /// annotations. The arguments corresponds to the unions of the corresponding
258 /// fields of the annotations. 258 /// fields of the annotations.
259 void registerMirrorUsage( 259 void registerMirrorUsage(
260 Set<String> symbols, Set<Element> targets, Set<Element> metaTargets) {} 260 Set<String> symbols, Set<Element> targets, Set<Element> metaTargets) {}
261 261
262 /// Returns true if this element needs reflection information at runtime. 262 /// Returns true if this element needs reflection information at runtime.
263 bool isAccessibleByReflection(Element element) => true; 263 bool isAccessibleByReflection(Element element) => true;
264 264
265 /// Returns true if this member element needs reflection information at
266 /// runtime.
267 bool isMemberAccessibleByReflection(MemberElement element) => true;
268
265 /// Returns true if this element is covered by a mirrorsUsed annotation. 269 /// Returns true if this element is covered by a mirrorsUsed annotation.
266 /// 270 ///
267 /// Note that it might still be ok to tree shake the element away if no 271 /// Note that it might still be ok to tree shake the element away if no
268 /// reflection is used in the program (and thus [isTreeShakingDisabled] is 272 /// reflection is used in the program (and thus [isTreeShakingDisabled] is
269 /// still false). Therefore _do not_ use this predicate to decide inclusion 273 /// still false). Therefore _do not_ use this predicate to decide inclusion
270 /// in the tree, use [requiredByMirrorSystem] instead. 274 /// in the tree, use [requiredByMirrorSystem] instead.
271 bool referencedFromMirrorSystem(Element element, [recursive]) => false; 275 bool referencedFromMirrorSystem(Element element, [recursive]) => false;
272 276
273 /// Returns true if this element has to be enqueued due to 277 /// Returns true if this element has to be enqueued due to
274 /// mirror usage. Might be a subset of [referencedFromMirrorSystem] if 278 /// mirror usage. Might be a subset of [referencedFromMirrorSystem] if
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 ClassElement get indexableImplementation; 420 ClassElement get indexableImplementation;
417 ClassElement get mutableIndexableImplementation; 421 ClassElement get mutableIndexableImplementation;
418 ClassElement get indexingBehaviorImplementation; 422 ClassElement get indexingBehaviorImplementation;
419 ClassElement get interceptorImplementation; 423 ClassElement get interceptorImplementation;
420 424
421 bool isDefaultEqualityImplementation(MemberElement element); 425 bool isDefaultEqualityImplementation(MemberElement element);
422 bool isInterceptorClass(ClassElement cls); 426 bool isInterceptorClass(ClassElement cls);
423 bool isNativeClass(ClassElement element); 427 bool isNativeClass(ClassElement element);
424 bool isNativeMember(MemberElement element); 428 bool isNativeMember(MemberElement element);
425 } 429 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698