Index: pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart |
diff --git a/pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart b/pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart |
index 44f0ae919e798c5bf75da1617845e3eb60a440b2..6af3a4cb7d8c565501c0c9d633bbb0d3c4436e72 100644 |
--- a/pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart |
+++ b/pkg/compiler/lib/src/dart_backend/backend_ast_emitter.dart |
@@ -969,6 +969,21 @@ class ASTEmitter |
} |
@override |
+ Expression visitGetStatic(tree.GetStatic node, |
+ BuilderContext<Statement> context) { |
+ return new Identifier(node.element.name)..element = node.element; |
+ } |
+ |
+ @override |
+ Expression visitSetStatic(tree.SetStatic node, |
+ BuilderContext<Statement> context) { |
+ Expression target = |
+ new Identifier(node.element.name)..element = node.element; |
+ Expression value = visitExpression(node.value, context); |
+ return makeAssignment(target, value); |
+ } |
+ |
+ @override |
Expression visitTypeExpression(tree.TypeExpression node, arg) { |
throw '$node not supported by dart backend'; |
} |