| Index: dart/frog/leg/frog_leg.dart
|
| diff --git a/dart/frog/leg/frog_leg.dart b/dart/frog/leg/frog_leg.dart
|
| index f1febacfc067cfc7fe6d885bedb1b329c4ae296a..5c9d299b3a808f65f8a491de0414745945c7b1ad 100644
|
| --- a/dart/frog/leg/frog_leg.dart
|
| +++ b/dart/frog/leg/frog_leg.dart
|
| @@ -91,7 +91,7 @@ class WorldCompiler extends Compiler {
|
|
|
| String get legDirectory() => io.join([frog.options.libDir, '..', 'leg']);
|
|
|
| - void cancel([String reason, Node node, token, instruction]) {
|
| + void cancel([String reason, Node node, token, instruction, element]) {
|
| Script script = currentScript();
|
| if (node !== null) {
|
| print(spanFromNode(node, script).toMessageString("cancel leg: $reason"));
|
| @@ -101,6 +101,9 @@ class WorldCompiler extends Compiler {
|
| int end = begin + tokenString.length;
|
| print(script.file.getLocationMessage("cancel leg: $reason",
|
| begin, end, true));
|
| + } else if (element !== null) {
|
| + currentElement = element;
|
| + cancel(reason: reason, token: element.position());
|
| }
|
| if (throwOnError) {
|
| throw new AbortLeg(reason);
|
|
|