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

Side by Side Diff: pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart

Issue 2615223003: Use MemberElement instead of Element in function sets and selectors. (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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 dart2js.js_emitter.full_emitter; 5 library dart2js.js_emitter.full_emitter;
6 6
7 import 'dart:collection' show HashMap; 7 import 'dart:collection' show HashMap;
8 import 'dart:convert'; 8 import 'dart:convert';
9 9
10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; 10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames;
11 import 'package:js_runtime/shared/embedded_names.dart' 11 import 'package:js_runtime/shared/embedded_names.dart'
12 show JsBuiltin, JsGetName; 12 show JsBuiltin, JsGetName;
13 13
14 import '../../common.dart'; 14 import '../../common.dart';
15 import '../../common/names.dart' show Names; 15 import '../../common/names.dart' show Names;
16 import '../../compiler.dart' show Compiler; 16 import '../../compiler.dart' show Compiler;
17 import '../../constants/values.dart'; 17 import '../../constants/values.dart';
18 import '../../core_types.dart' show CommonElements; 18 import '../../core_types.dart' show CommonElements;
19 import '../../elements/resolution_types.dart' show DartType; 19 import '../../elements/resolution_types.dart' show DartType;
20 import '../../deferred_load.dart' show OutputUnit; 20 import '../../deferred_load.dart' show OutputUnit;
21 import '../../elements/elements.dart' 21 import '../../elements/elements.dart'
22 show 22 show
23 ClassElement, 23 ClassElement,
24 Element, 24 Element,
25 Elements, 25 Elements,
26 FieldElement, 26 FieldElement,
27 FunctionElement, 27 FunctionElement,
28 FunctionSignature, 28 FunctionSignature,
29 LibraryElement, 29 LibraryElement,
30 MemberElement,
30 MetadataAnnotation, 31 MetadataAnnotation,
31 MethodElement, 32 MethodElement,
32 Name, 33 Name,
33 TypedefElement, 34 TypedefElement,
34 VariableElement; 35 VariableElement;
35 import '../../hash/sha1.dart' show Hasher; 36 import '../../hash/sha1.dart' show Hasher;
36 import '../../io/code_output.dart'; 37 import '../../io/code_output.dart';
37 import '../../io/line_column_provider.dart' 38 import '../../io/line_column_provider.dart'
38 show LineColumnCollector, LineColumnProvider; 39 show LineColumnCollector, LineColumnProvider;
39 import '../../io/source_map_builder.dart' show SourceMapBuilder; 40 import '../../io/source_map_builder.dart' show SourceMapBuilder;
(...skipping 2139 matching lines...) Expand 10 before | Expand all | Expand 10 after
2179 if (cachedElements.isEmpty) return; 2180 if (cachedElements.isEmpty) return;
2180 for (Element element in backend.codegenEnqueuer.newlyEnqueuedElements) { 2181 for (Element element in backend.codegenEnqueuer.newlyEnqueuedElements) {
2181 if (element.isInstanceMember) { 2182 if (element.isInstanceMember) {
2182 cachedClassBuilders.remove(element.enclosingClass); 2183 cachedClassBuilders.remove(element.enclosingClass);
2183 2184
2184 nativeEmitter.cachedBuilders.remove(element.enclosingClass); 2185 nativeEmitter.cachedBuilders.remove(element.enclosingClass);
2185 } 2186 }
2186 } 2187 }
2187 } 2188 }
2188 } 2189 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698