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

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

Issue 2609063002: Further reduce use of Element in codegen. (Closed)
Patch Set: Created 3 years, 12 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
Index: pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
diff --git a/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart b/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
index 9c392296e5736d165e9aba8fca8aa99ab44a8869..0cc5b97f16e54d0f90c015ec997280d9a1b4328d 100644
--- a/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
+++ b/pkg/compiler/lib/src/js_emitter/code_emitter_task.dart
@@ -122,7 +122,7 @@ class CodeEmitterTask extends CompilerTask {
/// Returns the JS expression representing the type [e].
///
/// The given type [e] might be a Typedef.
- jsAst.Expression typeAccess(Element e) {
+ jsAst.Expression typeAccess(Entity e) {
return emitter.typeAccess(e);
}
@@ -214,7 +214,7 @@ abstract class Emitter {
jsAst.Expression interceptorClassAccess(ClassElement e);
/// Returns the JS expression representing the type [e].
- jsAst.Expression typeAccess(Element e);
+ jsAst.Expression typeAccess(Entity e);
/// Returns the JS expression representing a function that returns 'null'
jsAst.Expression generateFunctionThatReturnsNull();

Powered by Google App Engine
This is Rietveld 408576698