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

This commit is contained in:
Phil Quitslund 2018-02-28 15:33:56 -08:00 committed by GitHub
parent 9a9aed191d
commit a3f520e488
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();