Results 222 comments of Liam Appelbe

Yeah, it's a limitation in the VM. By default coverage is only tracked for function calls. If your return statement had a function call in it, it would be marked...

I'll probably also generate a `main()` in `ffigen_build.g.dart`, so that if this is the user's only native asset they can just generate this file directly as their `hook/build.dart`. > And...

> Unrelated, just wanted to flag the following test: > > ```dart > // pkgs\ffigen\test\collision_tests\decl_decl_collision_test.dart > > /// Conflicts with ffi library prefix, name of prefix is changed. > Struct(name:...

I think you want `FfiGenerator.libraryImports`.

For ObjC and Swift, one file per interface/protocol would make sense. I'd probably stick each category in its parent interface's file, and have a separate file for all the block...

Are you asking for `NSAttributedString` to be added to the package:objective_c bindings? Or are you saying that you expect `NSAttributedString` to be part of your bindings but it isn't? >...

I can't really help you if you give me so little information. I'm still not sure what version of ffigen you're using (you gave me the `objective_c` version, not ffigen),...

Which protocols did you want to exclude? I see a bunch of stubbed protocols. These stubs are generated because other APIs depend on them. In a sense, stubs are already...

> @liamappelbe, what about sealed classes that should be generated as enums because native method accepts values like int and sealed classes cannot be directly pass in that function? That's...

> @liamappelbe can proivde some sample how i can set `FfiGenerator.enums.style` Set the `enums` options in your `FfiGenerator` constructor. Something like this: ```dart FfiGenerator( ... enums: Enums( style: (Declaration declaration,...