Index: pkg/kernel/lib/binary/ast_from_binary.dart |
diff --git a/pkg/kernel/lib/binary/ast_from_binary.dart b/pkg/kernel/lib/binary/ast_from_binary.dart |
index 336633446a84793fbdaeec611bfb06c7ea46cd79..c4ab123429073d0e8a0a6b3f5f6e81d018ed7d26 100644 |
--- a/pkg/kernel/lib/binary/ast_from_binary.dart |
+++ b/pkg/kernel/lib/binary/ast_from_binary.dart |
@@ -926,7 +926,8 @@ class BinaryBuilder { |
case Tag.AwaitExpression: |
return new AwaitExpression(readExpression()); |
case Tag.FunctionExpression: |
- return new FunctionExpression(readFunctionNode()); |
+ int offset = readOffset(); |
+ return new FunctionExpression(readFunctionNode())..fileOffset = offset; |
case Tag.Let: |
var variable = readVariableDeclaration(); |
int stackHeight = variableStack.length; |