Skip to content

[ffigen][jnigen] Custom lint for is and as #3159

@liamappelbe

Description

@liamappelbe

It would be nice to warn users they should use Foo.isA(x) instead of x is Foo, and Foo.as(x) instead of x as Foo, if Foo is an extension type of ObjCObject. Same for JNIgen.

https://github.com/dart-lang/native/blob/main/pkgs/ffigen/doc/objc_runtime_types.md

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions