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

Unified Diff: frog/leg/ssa/builder.dart

Issue 9378008: Support anonymous functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 | « frog/leg/resolver.dart ('k') | tests/co19/co19-leg.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/ssa/builder.dart
diff --git a/frog/leg/ssa/builder.dart b/frog/leg/ssa/builder.dart
index 359e7cd95a50864237fe4af110e85a182d552111..0b10097613b8fedd5fe92ac3e4f0333a455110cb 100644
--- a/frog/leg/ssa/builder.dart
+++ b/frog/leg/ssa/builder.dart
@@ -1471,6 +1471,12 @@ class SsaBuilder implements Visitor {
visitStaticSend(Send node) {
Selector selector = elements.getSelector(node);
Element element = elements[node];
+ if (element.kind != ElementKind.FUNCTION &&
+ element.kind != ElementKind.GENERATIVE_CONSTRUCTOR) {
+ compiler.unimplemented(
+ "SsaBuilder.visitStaticSend static field invocation",
+ node: node);
+ }
HStatic target = new HStatic(element);
add(target);
var inputs = <HInstruction>[];
« no previous file with comments | « frog/leg/resolver.dart ('k') | tests/co19/co19-leg.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698