Skip to content

Commit

Permalink
BodyResolveContext hasAnnotation
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim092001 committed Jul 30, 2022
1 parent 945cafa commit a6b8f18
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,10 @@ class BodyResolveContext(

val typeParameterScope = (owner as? FirRegularClass)?.typeParameterScope()
val selfTypeScope: FirSelfTypeScope? =
owner.annotations.find { it.classId == StandardClassIds.Annotations.Self }?.let { FirSelfTypeScope(owner) }
if (owner.hasAnnotation(StandardClassIds.Annotations.Self)) {
FirSelfTypeScope(owner)
} else
null

val forMembersResolution =
staticsAndCompanion
Expand Down

0 comments on commit a6b8f18

Please sign in to comment.