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

Side by Side Diff: pkg/compiler/lib/src/js_backend/backend_usage.dart

Issue 2827283002: Implement subtype relation for kernel based elements. (Closed)
Patch Set: Remove @override annotations Created 3 years, 8 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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 import '../common.dart'; 5 import '../common.dart';
6 import '../common_elements.dart'; 6 import '../common_elements.dart';
7 import '../elements/elements.dart' show Element; 7 import '../elements/elements.dart' show Element;
8 import '../elements/entities.dart'; 8 import '../elements/entities.dart';
9 import '../elements/types.dart'; 9 import '../elements/types.dart';
10 import '../util/util.dart' show Setlet; 10 import '../util/util.dart' show Setlet;
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 return _helperFunctionsUsed.contains(element); 332 return _helperFunctionsUsed.contains(element);
333 } 333 }
334 334
335 @override 335 @override
336 bool isFieldUsedByBackend(FieldEntity element) { 336 bool isFieldUsedByBackend(FieldEntity element) {
337 return _helperClassesUsed.contains(element.enclosingClass); 337 return _helperClassesUsed.contains(element.enclosingClass);
338 } 338 }
339 339
340 @override 340 @override
341 Iterable<FunctionEntity> get globalFunctionDependencies => 341 Iterable<FunctionEntity> get globalFunctionDependencies =>
342 _globalFunctionDependencies; 342 _globalFunctionDependencies ?? const <FunctionEntity>[];
343 343
344 @override 344 @override
345 Iterable<ClassEntity> get globalClassDependencies => _globalClassDependencies; 345 Iterable<ClassEntity> get globalClassDependencies =>
346 _globalClassDependencies ?? const <ClassEntity>[];
347
348 Iterable<FunctionEntity> get helperFunctionsUsed => _helperFunctionsUsed;
349
350 Iterable<ClassEntity> get helperClassesUsed => _helperClassesUsed;
346 } 351 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698