@@ -435,7 +435,7 @@ private module Input3 implements InputSig3 {
435435 )
436436 or
437437 // no mutual recursion; can be resolved directly with static name binding
438- result .getNameNode ( ) = getStaticBindingTarget ( getIdentifierFromRef ( this ) )
438+ result .getNameNode ( ) = getStaticBindingTargetFromRef ( this )
439439 }
440440 }
441441
@@ -457,7 +457,7 @@ private module Input3 implements InputSig3 {
457457 result = inferType ( fa .getReceiver ( ) , path )
458458 or
459459 // static field with type qualifier
460- result = fa .getReceiver ( ) .( TypeMention ) .getTypeAt ( path )
460+ result = fa .( MemberAccessExpr ) . getBase ( ) .( TypeMention ) .getTypeAt ( path )
461461 or
462462 // field with implicit receiver
463463 result = getImplicitReceiverType ( fa , path )
@@ -546,6 +546,7 @@ private module Input3 implements InputSig3 {
546546 exists ( TypeMention tm | result = tm .getTypeAt ( path ) |
547547 tm = super .getCallee ( )
548548 or
549+ not super .getCallee ( ) instanceof TypeMention and
549550 tm = super .getCallee ( ) .( MemberAccessExpr ) .getBase ( )
550551 )
551552 }
@@ -573,7 +574,7 @@ private module Input3 implements InputSig3 {
573574 }
574575
575576 private Unified:: Callable getTargetViaStaticNameBinding ( ) {
576- exists ( NameBinding b | b = getStaticBindingTarget ( getIdentifierFromRef ( this .getCallee ( ) ) ) |
577+ exists ( NameBinding b | b = getStaticBindingTargetFromRef ( this .getCallee ( ) ) |
577578 // object creation (including enum constructors): `String(42)`, `Optional.Some(42)`
578579 exists ( ClassLikeDeclaration cls , ConstructorDeclaration init |
579580 cls .getNameNode ( ) = b and
@@ -727,7 +728,7 @@ private module Input3 implements InputSig3 {
727728 tp = f .getType ( ) .getType ( ) .getATypeParameter ( ) and
728729 path = TypePath:: singleton ( tp ) and
729730 // `Optional<String>.none` does not have an unknown `Wrapper` type
730- not exists ( n .( FieldAccess ) . getReceiver ( ) .( TypeMention ) .getTypeAt ( path ) )
731+ not exists ( n .( MemberAccessExpr ) . getBase ( ) .( TypeMention ) .getTypeAt ( path ) )
731732 ) and
732733 result instanceof UnknownType
733734 }
0 commit comments