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

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

Issue 2647043002: Fix hints reported by analyzer. (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) 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, Selectors; 13 import '../common/names.dart' show Identifiers, Selectors;
14 import '../compiler.dart' show Compiler;
15 import '../constants/values.dart'; 14 import '../constants/values.dart';
16 import '../core_types.dart' show CommonElements; 15 import '../core_types.dart' show CommonElements;
17 import '../elements/resolution_types.dart'; 16 import '../elements/resolution_types.dart';
18 import '../diagnostics/invariant.dart' show DEBUG_MODE; 17 import '../diagnostics/invariant.dart' show DEBUG_MODE;
19 import '../elements/elements.dart'; 18 import '../elements/elements.dart';
20 import '../elements/entities.dart'; 19 import '../elements/entities.dart';
21 import '../js/js.dart' as jsAst; 20 import '../js/js.dart' as jsAst;
22 import '../js/js.dart' show js; 21 import '../js/js.dart' show js;
23 import '../tree/tree.dart'; 22 import '../tree/tree.dart';
24 import '../universe/call_structure.dart' show CallStructure; 23 import '../universe/call_structure.dart' show CallStructure;
(...skipping 2163 matching lines...) Expand 10 before | Expand all | Expand 10 after
2188 void addSuggestion(String original, String suggestion) { 2187 void addSuggestion(String original, String suggestion) {
2189 assert(!_suggestedNames.containsKey(original)); 2188 assert(!_suggestedNames.containsKey(original));
2190 _suggestedNames[original] = suggestion; 2189 _suggestedNames[original] = suggestion;
2191 } 2190 }
2192 2191
2193 bool hasSuggestion(String original) => _suggestedNames.containsKey(original); 2192 bool hasSuggestion(String original) => _suggestedNames.containsKey(original);
2194 bool isSuggestion(String candidate) { 2193 bool isSuggestion(String candidate) {
2195 return _suggestedNames.containsValue(candidate); 2194 return _suggestedNames.containsValue(candidate);
2196 } 2195 }
2197 } 2196 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698