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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @Kolyall

        Issue actions

          How can I check that UVariable is nullable type? · Issue #86 · googlesamples/android-custom-lint-rules