@@ -55,14 +55,15 @@ private Endpoint getSampleForSignature(
5555}
5656
5757from
58- Endpoint endpoint , string message , ApplicationModeMetadataExtractor meta , DollarAtString package ,
58+ Endpoint endpoint , ApplicationModeMetadataExtractor meta , DollarAtString package ,
5959 DollarAtString type , DollarAtString subtypes , DollarAtString name , DollarAtString signature ,
6060 DollarAtString input , DollarAtString output , DollarAtString isVarargsArray ,
6161 DollarAtString alreadyAiModeled , DollarAtString extensibleType
6262where
6363 not exists ( CharacteristicsImpl:: UninterestingToModelCharacteristic u |
6464 u .appliesToEndpoint ( endpoint )
6565 ) and
66+ CharacteristicsImpl:: isSinkCandidate ( endpoint , _) and
6667 endpoint =
6768 getSampleForSignature ( 9 , package , type , subtypes , name , signature , input , output ,
6869 isVarargsArray , extensibleType ) and
7879 CharacteristicsImpl:: isModeled ( endpoint , _, _, alreadyAiModeled )
7980 ) and
8081 meta .hasMetadata ( endpoint , package , type , subtypes , name , signature , input , output , isVarargsArray ) and
81- includeAutomodelCandidate ( package , type , name , signature ) and
82- // The message is the concatenation of all sink types for which this endpoint is known neither to be a sink nor to be
83- // a non-sink, and we surface only endpoints that have at least one such sink type.
84- message =
85- strictconcat ( AutomodelEndpointTypes:: SinkType sinkType |
86- not CharacteristicsImpl:: isKnownAs ( endpoint , sinkType , _) and
87- CharacteristicsImpl:: isSinkCandidate ( endpoint , sinkType )
88- |
89- sinkType , ", "
90- )
82+ includeAutomodelCandidate ( package , type , name , signature )
9183select endpoint .asNode ( ) ,
92- message + "\nrelated locations: $@, $@, $@." +
93- "\nmetadata: $@, $@, $@, $@, $@, $@, $@, $@, $@, $@." , //
84+ "related locations: $@, $@, $@." + "\nmetadata: $@, $@, $@, $@, $@, $@, $@, $@, $@, $@." , //
9485 CharacteristicsImpl:: getRelatedLocationOrCandidate ( endpoint , CallContext ( ) ) , "CallContext" , //
9586 CharacteristicsImpl:: getRelatedLocationOrCandidate ( endpoint , MethodDoc ( ) ) , "MethodDoc" , //
9687 CharacteristicsImpl:: getRelatedLocationOrCandidate ( endpoint , ClassDoc ( ) ) , "ClassDoc" , //
0 commit comments