fix(Native Analyze)

This commit is contained in:
2026-10-24 12:38:25 +03:00
parent b30bf037db
commit 30932d9f28

View File

@@ -80,7 +80,7 @@ void main(List<String> args) {
final sorted = <String, Map<String, dynamic>>{
for (final key in contract.keys.toList()..sort()) key: contract[key]!,
};
final encoder = JsonEncoder.withIndent(' ');
final encoder = const JsonEncoder.withIndent(' ');
final output = encoder.convert(sorted);
if (args.isNotEmpty) {
@@ -166,7 +166,7 @@ Map<String, Map<String, dynamic>> extractModels(String source) {
}
/// Разбивает тело фабрики по запятым верхнего уровня,
/// не разрывая дженерики (List<int, String>) и вложенные скобки.
/// не разрывая дженерики (`List<int, String>`) и вложенные скобки.
List<String> _splitTopLevel(String body) {
final parts = <String>[];
final current = StringBuffer();