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

Unified Diff: lib/src/codegen/js_field_storage.dart

Issue 1752133002: Search html extension types lazily (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/codegen/js_field_storage.dart
diff --git a/lib/src/codegen/js_field_storage.dart b/lib/src/codegen/js_field_storage.dart
index ffb6b770abc04250a743752b4785e16bd5e41a9c..882359802c8b842c68eeeef82c479998d7c0607f 100644
--- a/lib/src/codegen/js_field_storage.dart
+++ b/lib/src/codegen/js_field_storage.dart
@@ -6,12 +6,13 @@ import 'dart:collection' show HashMap, HashSet;
import 'package:analyzer/src/generated/ast.dart' show Identifier;
import 'package:analyzer/src/generated/element.dart';
+import 'js_codegen.dart' show ExtensionTypeSet;
import '../info.dart' show LibraryUnit;
/// We use a storage slot for fields that override or can be overridden by
/// getter/setter pairs.
HashSet<FieldElement> findFieldsNeedingStorage(
- LibraryUnit library, HashSet<ClassElement> extensionTypes) {
+ LibraryUnit library, ExtensionTypeSet extensionTypes) {
var overrides = new HashSet<FieldElement>();
for (var unit in library.partsThenLibrary) {
for (var cls in unit.element.types) {
@@ -32,7 +33,7 @@ void checkForPropertyOverride(
FieldElement field,
List<ClassElement> superclasses,
HashSet<FieldElement> overrides,
- HashSet<ClassElement> extensionTypes) {
+ ExtensionTypeSet extensionTypes) {
assert(!field.isSynthetic);
var library = field.library;
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698