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

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

Issue 2223133003: pkg/compiler: clean up imports (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 js_backend.namer; 5 library js_backend.namer;
6 6
7 import 'dart:collection' show HashMap; 7 import 'dart:collection' show HashMap;
8 8
9 import 'package:js_runtime/shared/embedded_names.dart' show JsGetName; 9 import 'package:js_runtime/shared/embedded_names.dart' show JsGetName;
10 10
11 import '../closure.dart'; 11 import '../closure.dart';
12 import '../common.dart'; 12 import '../common.dart';
13 import '../common/names.dart' show Identifiers, Names, Selectors, Uris; 13 import '../common/names.dart' show Identifiers, Selectors;
14 import '../compiler.dart' show Compiler; 14 import '../compiler.dart' show Compiler;
15 import '../constants/values.dart'; 15 import '../constants/values.dart';
16 import '../core_types.dart' show CoreClasses, CoreTypes; 16 import '../core_types.dart' show CoreClasses;
17 import '../dart_types.dart'; 17 import '../dart_types.dart';
18 import '../diagnostics/invariant.dart' show DEBUG_MODE; 18 import '../diagnostics/invariant.dart' show DEBUG_MODE;
19 import '../elements/elements.dart'; 19 import '../elements/elements.dart';
20 import '../js/js.dart' as jsAst; 20 import '../js/js.dart' as jsAst;
21 import '../js/js.dart' show js; 21 import '../js/js.dart' show js;
22 import '../tree/tree.dart'; 22 import '../tree/tree.dart';
23 import '../universe/call_structure.dart' show CallStructure; 23 import '../universe/call_structure.dart' show CallStructure;
24 import '../universe/selector.dart' show Selector, SelectorKind; 24 import '../universe/selector.dart' show Selector, SelectorKind;
25 import '../util/characters.dart'; 25 import '../util/characters.dart';
26 import '../util/util.dart'; 26 import '../util/util.dart';
(...skipping 2060 matching lines...) Expand 10 before | Expand all | Expand 10 after
2087 void addSuggestion(String original, String suggestion) { 2087 void addSuggestion(String original, String suggestion) {
2088 assert(!_suggestedNames.containsKey(original)); 2088 assert(!_suggestedNames.containsKey(original));
2089 _suggestedNames[original] = suggestion; 2089 _suggestedNames[original] = suggestion;
2090 } 2090 }
2091 2091
2092 bool hasSuggestion(String original) => _suggestedNames.containsKey(original); 2092 bool hasSuggestion(String original) => _suggestedNames.containsKey(original);
2093 bool isSuggestion(String candidate) { 2093 bool isSuggestion(String candidate) {
2094 return _suggestedNames.containsValue(candidate); 2094 return _suggestedNames.containsValue(candidate);
2095 } 2095 }
2096 } 2096 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698