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

Unified Diff: compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java

Issue 8845002: Function type checking: Part Deux (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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: compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
diff --git a/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java b/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
index 251d3962186a0347533b8d678fe82f715476f1fb..18fe9e7d2d836f56b892222c456b8d28d45687cd 100644
--- a/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
+++ b/compiler/java/com/google/dart/compiler/resolver/ResolutionContext.java
@@ -9,6 +9,7 @@ import com.google.dart.compiler.DartCompilationError;
import com.google.dart.compiler.DartCompilerContext;
import com.google.dart.compiler.ErrorCode;
import com.google.dart.compiler.ast.DartFunctionExpression;
+import com.google.dart.compiler.ast.DartFunctionTypeAlias;
import com.google.dart.compiler.ast.DartIdentifier;
import com.google.dart.compiler.ast.DartNode;
import com.google.dart.compiler.ast.DartNodeTraverser;
@@ -253,6 +254,10 @@ public class ResolutionContext implements ResolutionErrorListener {
pushScope(x.getFunctionName() == null ? "<function>" : x.getFunctionName());
}
+ void pushFunctionAliasScope(DartFunctionTypeAlias x) {
+ pushScope(x.getName().getTargetName() == null ? "<function>" : x.getName().getTargetName());
+ }
+
AssertionError internalError(DartNode node, String message, Object... arguments) {
message = String.format(message, arguments);
context.onError(new DartCompilationError(node, ResolverErrorCode.INTERNAL_ERROR,

Powered by Google App Engine
This is Rietveld 408576698