mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 23:09:48 +00:00
[dds/dap] Switch to using isGetter isntead of checking _kind
Both VM and DWDS populate isGetter now so we don't need to check this internal field. There are existing tests verifying this behaviour. Change-Id: Ia0f0d74167c718ec66a692523c1f255d63eed654 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/330784 Reviewed-by: Helin Shiah <helinx@google.com> Commit-Queue: Ben Konyi <bkonyi@google.com> Reviewed-by: Ben Konyi <bkonyi@google.com>
This commit is contained in:
parent
c5f60241a8
commit
5e255e0110
|
@ -744,9 +744,7 @@ class ProtocolConverter {
|
|||
final functions = classResponse.functions;
|
||||
if (functions != null) {
|
||||
final instanceFields = functions.where((f) =>
|
||||
// TODO(dantup): Update this to use something better that bkonyi is
|
||||
// adding to the protocol.
|
||||
f.json?['_kind'] == 'GetterFunction' &&
|
||||
(f.isGetter ?? false) &&
|
||||
!(f.isStatic ?? false) &&
|
||||
!(f.isConst ?? false));
|
||||
getterNames.addAll(instanceFields
|
||||
|
|
Loading…
Reference in a new issue