[modular_aot] Fix number of optional named parameters when reading function types from module snapshot

TEST=ci

Issue: https://github.com/dart-lang/sdk/issues/61635
Change-Id: Iaa38ca6c62f9899d2c3f0363c484dbe15e0a9859
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/509523
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Slava Egorov <vegorov@google.com>
This commit is contained in:
Alexander Markov
2026-06-08 07:36:51 -07:00
committed by dart-scoped@luci-project-accounts.iam.gserviceaccount.com
parent ea1360fbaf
commit 7df4ef0cf1
2 changed files with 6 additions and 3 deletions
@@ -428,8 +428,9 @@ class WrapperConstant extends ast.AuxiliaryConstant {
void visitChildren(ast.Visitor v) => throw 'Should not be called.';
@override
void toTextInternal(ast_printer.AstPrinter printer) =>
throw 'Should not be called.';
void toTextInternal(ast_printer.AstPrinter printer) {
printer.write('WrapperConstant(${unwrap})');
}
@override
ast.DartType getType(ast_type_environment.StaticTypeContext context) =>