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

Unified Diff: pkg/compiler/lib/src/js_model/elements.dart

Issue 2970673004: Handle static fields in js_model/model_test (Closed)
Patch Set: Updated cf. comment Created 3 years, 5 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 | « no previous file | pkg/compiler/lib/src/js_model/js_strategy.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_model/elements.dart
diff --git a/pkg/compiler/lib/src/js_model/elements.dart b/pkg/compiler/lib/src/js_model/elements.dart
index 3efe0ad56b4df85400d660b22fb3fb9335898261..b5c87d1cc3f7ad41040139f8539234a74970c7b7 100644
--- a/pkg/compiler/lib/src/js_model/elements.dart
+++ b/pkg/compiler/lib/src/js_model/elements.dart
@@ -16,9 +16,7 @@ import '../js_backend/native_data.dart';
import '../kernel/elements.dart';
import '../kernel/element_map_impl.dart';
import '../native/behavior.dart';
-import '../ordered_typeset.dart';
import '../universe/class_set.dart';
-import '../universe/selector.dart';
import '../universe/world_builder.dart';
import '../world.dart';
@@ -521,7 +519,9 @@ class JTypeVariable implements TypeVariableEntity {
}
class JsClosedWorld extends ClosedWorldBase with KernelClosedWorldMixin {
- JsClosedWorld(
+ final JsKernelToElementMap elementMap;
+
+ JsClosedWorld(this.elementMap,
{ElementEnvironment elementEnvironment,
DartTypes dartTypes,
CommonElements commonElements,
@@ -555,56 +555,9 @@ class JsClosedWorld extends ClosedWorldBase with KernelClosedWorldMixin {
classSets);
@override
- bool hasConcreteMatch(ClassEntity cls, Selector selector,
- {ClassEntity stopAtSuperclass}) {
- throw new UnimplementedError('JsClosedWorld.hasConcreteMatch');
- }
-
- @override
void registerClosureClass(ClassElement cls) {
throw new UnimplementedError('JsClosedWorld.registerClosureClass');
}
-
- @override
- bool checkEntity(Entity element) => true;
-
- @override
- bool checkClass(ClassEntity cls) => true;
-
- @override
- bool checkInvariants(ClassEntity cls, {bool mustBeInstantiated: true}) {
- return true;
- }
-
- @override
- OrderedTypeSet getOrderedTypeSet(ClassEntity cls) {
- throw new UnimplementedError('JsClosedWorld.getOrderedTypeSet');
- }
-
- @override
- int getHierarchyDepth(ClassEntity cls) {
- throw new UnimplementedError('JsClosedWorld.getHierarchyDepth');
- }
-
- @override
- ClassEntity getSuperClass(ClassEntity cls) {
- throw new UnimplementedError('JsClosedWorld.getSuperClass');
- }
-
- @override
- Iterable<ClassEntity> getInterfaces(ClassEntity cls) {
- throw new UnimplementedError('JsClosedWorld.getInterfaces');
- }
-
- @override
- ClassEntity getAppliedMixin(ClassEntity cls) {
- throw new UnimplementedError('JsClosedWorld.getAppliedMixin');
- }
-
- @override
- bool isNamedMixinApplication(ClassEntity cls) {
- throw new UnimplementedError('JsClosedWorld.isNamedMixinApplication');
- }
}
class JsNativeData implements NativeData {
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_model/js_strategy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698