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

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

Issue 2860753005: Make elements/names.dart its own library (Closed)
Patch Set: Created 3 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) 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 '../closure.dart'; 5 import '../closure.dart';
6 import '../common.dart'; 6 import '../common.dart';
7 import '../common_elements.dart'; 7 import '../common_elements.dart';
8 import '../compiler.dart'; 8 import '../compiler.dart';
9 import '../constants/values.dart'; 9 import '../constants/values.dart';
10 import '../elements/elements.dart'; 10 import '../elements/elements.dart';
11 import '../elements/entities.dart'; 11 import '../elements/entities.dart';
12 import '../elements/names.dart';
12 import '../elements/types.dart'; 13 import '../elements/types.dart';
13 import '../options.dart'; 14 import '../options.dart';
14 import '../world.dart'; 15 import '../world.dart';
15 import '../universe/world_builder.dart'; 16 import '../universe/world_builder.dart';
16 import '../util/emptyset.dart'; 17 import '../util/emptyset.dart';
17 import 'constant_handler_javascript.dart'; 18 import 'constant_handler_javascript.dart';
18 19
19 abstract class MirrorsData { 20 abstract class MirrorsData {
20 /// True if a call to preserveMetadataMarker has been seen. This means that 21 /// True if a call to preserveMetadataMarker has been seen. This means that
21 /// metadata must be retained for dart:mirrors to work correctly. 22 /// metadata must be retained for dart:mirrors to work correctly.
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 } 690 }
690 691
691 /// Called when `const Symbol(name)` is seen. 692 /// Called when `const Symbol(name)` is seen.
692 void registerConstSymbol(String name) { 693 void registerConstSymbol(String name) {
693 symbolsUsed.add(name); 694 symbolsUsed.add(name);
694 if (name.endsWith('=')) { 695 if (name.endsWith('=')) {
695 symbolsUsed.add(name.substring(0, name.length - 1)); 696 symbolsUsed.add(name.substring(0, name.length - 1));
696 } 697 }
697 } 698 }
698 } 699 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/mirrors_analysis.dart ('k') | pkg/compiler/lib/src/js_backend/namer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698