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

Unified Diff: pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart

Issue 812023002: Use CURRENT_ELEMENT_SPANNABLE in invariant. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart
diff --git a/pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart b/pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart
index 9ed026aff77d05c0178a0a28e7a3b8f1fae2a32d..431b2bddb0573ca18b44a207eae6f2fb8eea3dd2 100644
--- a/pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart
+++ b/pkg/compiler/lib/src/tree_ir/tree_ir_builder.dart
@@ -115,7 +115,7 @@ class Builder extends cps_ir.Visitor<Node> {
return buildField(node);
} else {
assert(dart2js.invariant(
- currentElement,
+ CURRENT_ELEMENT_SPANNABLE,
node is cps_ir.FunctionDefinition,
message: 'expected FunctionDefinition or FieldDefinition, '
' found $node'));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698