Note: The type returned by type via PSI associations does not guarantee the correct type is returned.
The field access may be occurring on the part of a name like a.b from a.b.TypeName.
The association will climb up the parent until the FIR element is resolved and return a type for PSI elements that should not be type attributed.
Note: The type returned by
type
via PSI associations does not guarantee the correct type is returned.The field access may be occurring on the part of a name like
a.b
froma.b.TypeName
. The association will climb up the parent until the FIR element is resolved and return a type for PSI elements that should not be type attributed.