mirror of
https://github.com/flutter/flutter
synced 2024-10-13 19:52:53 +00:00
Add ‘name’s to widget location Json. (#14993)
This commit is contained in:
parent
9a9aed191d
commit
a3f520e488
|
@ -1101,6 +1101,9 @@ class _Location {
|
|||
'line': line,
|
||||
'column': column,
|
||||
};
|
||||
if (name != null) {
|
||||
json['name'] = name;
|
||||
}
|
||||
if (parameterLocations != null) {
|
||||
json['parameterLocations'] = parameterLocations.map<Map<String, Object>>(
|
||||
(_Location location) => location.toJsonMap()).toList();
|
||||
|
|
Loading…
Reference in a new issue