use dot shorthands where possible in generate script

This commit is contained in:
Henry Hiles 2026-09-10 15:21:53 -04:00
commit c105a6035c
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -11,12 +11,12 @@ void main(List<String> args) async {
final libclangPath = Platform.environment["LIBCLANG_PATH"]; final libclangPath = Platform.environment["LIBCLANG_PATH"];
FfiGenerator( FfiGenerator(
output: Output( output: .new(
dart: .new( dart: .new(
path: Platform.script.resolve("../lib/src/third_party/gomuks.g.dart"), path: Platform.script.resolve("../lib/src/third_party/gomuks.g.dart"),
), ),
), ),
visitors: [Visitor(func: (node) => node.isIncluded = true)], visitors: [.new(func: (node) => node.isIncluded = true)],
input: .new( input: .new(
entryPoints: [File(join(repoDir.path, "pkg", "ffi", "gomuksffi.h")).uri], entryPoints: [File(join(repoDir.path, "pkg", "ffi", "gomuksffi.h")).uri],
compilerOptions: [ compilerOptions: [