Unverified Commit a3f520e4 authored by Phil Quitslund's avatar Phil Quitslund Committed by GitHub

Add ‘name’s to widget location Json. (#14993)

parent 9a9aed19
...@@ -1101,6 +1101,9 @@ class _Location { ...@@ -1101,6 +1101,9 @@ class _Location {
'line': line, 'line': line,
'column': column, 'column': column,
}; };
if (name != null) {
json['name'] = name;
}
if (parameterLocations != null) { if (parameterLocations != null) {
json['parameterLocations'] = parameterLocations.map<Map<String, Object>>( json['parameterLocations'] = parameterLocations.map<Map<String, Object>>(
(_Location location) => location.toJsonMap()).toList(); (_Location location) => location.toJsonMap()).toList();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment