Skip to content

How can I check that UVariable is nullable type? #86

Open
@Kolyall

Description

@Kolyall

I didnt find an answer for the question in the doc (https://googlesamples.github.io/android-custom-lint-rules/)
I want to check that variable is nullable type. For example:
an fun for UVariable:

fun isNullable(uVariable: UVariable): Boolean {
}

for var value: Strings should return false
for var value: Strings? should return true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions