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

Unified Diff: pkg/compiler/lib/src/js_emitter/model.dart

Issue 885093002: dart2js: Fix types in new emitter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix more types. Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/js_emitter/model.dart
diff --git a/pkg/compiler/lib/src/js_emitter/model.dart b/pkg/compiler/lib/src/js_emitter/model.dart
index 1c3f80d72cbbf1e8885d7ab12b17cb6ece405431..468d985ea3d695dddfc654297f5f2d9aca8e36c9 100644
--- a/pkg/compiler/lib/src/js_emitter/model.dart
+++ b/pkg/compiler/lib/src/js_emitter/model.dart
@@ -367,11 +367,17 @@ class StubMethod extends Method {
: super(element, name, code);
}
-class StaticMethod extends DartMethod {
+abstract class StaticMethod implements Method {
+ Holder get holder;
+}
+
+class StaticDartMethod extends DartMethod implements StaticMethod {
final Holder holder;
- StaticMethod(Element element, String name, this.holder, js.Expression code,
- {bool needsTearOff, String tearOffName, bool canBeApplied,
- bool canBeReflected, bool needsStubs})
+
+ StaticDartMethod(Element element, String name, this.holder,
+ js.Expression code,
+ {bool needsTearOff, String tearOffName, bool canBeApplied,
+ bool canBeReflected, bool needsStubs})
: super(element, name, code,
needsTearOff: needsTearOff,
tearOffName : tearOffName,
@@ -380,7 +386,7 @@ class StaticMethod extends DartMethod {
needsStubs : needsStubs);
}
-class StaticStubMethod extends StubMethod {
+class StaticStubMethod extends StubMethod implements StaticMethod {
Holder holder;
StaticStubMethod(String name, this.holder, js.Expression code)
: super(name, code);
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698