Never return a null expression node when source maps are enabled

This commit is contained in:
Natalie Weizenbaum 2020-02-06 02:04:07 -08:00
parent a95c5b8ccb
commit 77a58b34b6
2 changed files with 5 additions and 3 deletions

View File

@ -2803,7 +2803,8 @@ class _EvaluateVisitor
if (!_sourceMap) return null;
if (expression is VariableExpression) {
return _environment.getVariableNode(expression.name,
namespace: expression.namespace);
namespace: expression.namespace) ??
expression;
} else {
return expression;
}

View File

@ -5,7 +5,7 @@
// DO NOT EDIT. This file was generated from async_evaluate.dart.
// See tool/grind/synchronize.dart for details.
//
// Checksum: a5181b80dae7d37a33d231ca4a50487d204bb8c3
// Checksum: f6a7ece88049e365d88091c14cc8143335a06d75
//
// ignore_for_file: unused_import
@ -2778,7 +2778,8 @@ class _EvaluateVisitor
if (!_sourceMap) return null;
if (expression is VariableExpression) {
return _environment.getVariableNode(expression.name,
namespace: expression.namespace);
namespace: expression.namespace) ??
expression;
} else {
return expression;
}