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

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

Issue 2791993002: Fix dart2js warnings and add test to ensure it stays clean. (Closed)
Patch Set: Remove unused method. 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 library js_backend.interceptor_data; 5 library js_backend.interceptor_data;
6 6
7 import '../common/names.dart' show Identifiers; 7 import '../common/names.dart' show Identifiers;
8 import '../common/resolution.dart' show Resolution;
9 import '../common_elements.dart' show CommonElements, ElementEnvironment; 8 import '../common_elements.dart' show CommonElements, ElementEnvironment;
10 import '../elements/elements.dart' show MemberElement; 9 import '../elements/elements.dart' show MemberElement;
11 import '../elements/entities.dart'; 10 import '../elements/entities.dart';
12 import '../elements/types.dart'; 11 import '../elements/types.dart';
13 import '../js/js.dart' as jsAst; 12 import '../js/js.dart' as jsAst;
14 import '../types/types.dart' show TypeMask; 13 import '../types/types.dart' show TypeMask;
15 import '../universe/selector.dart'; 14 import '../universe/selector.dart';
16 import '../world.dart' show ClosedWorld; 15 import '../world.dart' show ClosedWorld;
17 import 'backend_helpers.dart'; 16 import 'backend_helpers.dart';
18 import 'namer.dart'; 17 import 'namer.dart';
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 jsAst.Name name = namer.nameForGetInterceptor(classes); 327 jsAst.Name name = namer.nameForGetInterceptor(classes);
329 if (classes.contains(_helpers.jsInterceptorClass)) { 328 if (classes.contains(_helpers.jsInterceptorClass)) {
330 // We can't use a specialized [getInterceptorMethod], so we make 329 // We can't use a specialized [getInterceptorMethod], so we make
331 // sure we emit the one with all checks. 330 // sure we emit the one with all checks.
332 _specializedGetInterceptors[name] = _interceptorData.interceptedClasses; 331 _specializedGetInterceptors[name] = _interceptorData.interceptedClasses;
333 } else { 332 } else {
334 _specializedGetInterceptors[name] = classes; 333 _specializedGetInterceptors[name] = classes;
335 } 334 }
336 } 335 }
337 } 336 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698