Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add more scenarios to write deepEquals
  • Loading branch information
tarrinneal committed Mar 20, 2025
commit 8613ea98385a8c3d191db17913d3f699a2d99e03
5 changes: 3 additions & 2 deletions packages/pigeon/lib/src/kotlin/kotlin_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1308,8 +1308,9 @@ private fun deepEquals${generatorOptions.fileSpecificClassNameComponent}(a: Any?
if (root.classes.isNotEmpty &&
root.classes.any((Class dataClass) => dataClass.fields.any(
(NamedType field) =>
field.type.baseName.startsWith('List') ||
field.type.baseName.startsWith('Map')))) {
_kotlinTypeForBuiltinDartType(field.type) != null &&
(field.type.baseName.contains('List') ||
field.type.baseName.startsWith('Map'))))) {
_writeDeepEquals(generatorOptions, indent);
}
}
Expand Down