@@ -55,14 +55,15 @@ private Endpoint getSampleForSignature(
55
55
}
56
56
57
57
from
58
- Endpoint endpoint , string message , ApplicationModeMetadataExtractor meta , DollarAtString package ,
58
+ Endpoint endpoint , ApplicationModeMetadataExtractor meta , DollarAtString package ,
59
59
DollarAtString type , DollarAtString subtypes , DollarAtString name , DollarAtString signature ,
60
60
DollarAtString input , DollarAtString output , DollarAtString isVarargsArray ,
61
61
DollarAtString alreadyAiModeled , DollarAtString extensibleType
62
62
where
63
63
not exists ( CharacteristicsImpl:: UninterestingToModelCharacteristic u |
64
64
u .appliesToEndpoint ( endpoint )
65
65
) and
66
+ CharacteristicsImpl:: isSinkCandidate ( endpoint , _) and
66
67
endpoint =
67
68
getSampleForSignature ( 9 , package , type , subtypes , name , signature , input , output ,
68
69
isVarargsArray , extensibleType ) and
78
79
CharacteristicsImpl:: isModeled ( endpoint , _, _, alreadyAiModeled )
79
80
) and
80
81
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 )
91
83
select endpoint .asNode ( ) ,
92
- message + "\nrelated locations: $@, $@, $@." +
93
- "\nmetadata: $@, $@, $@, $@, $@, $@, $@, $@, $@, $@." , //
84
+ "related locations: $@, $@, $@." + "\nmetadata: $@, $@, $@, $@, $@, $@, $@, $@, $@, $@." , //
94
85
CharacteristicsImpl:: getRelatedLocationOrCandidate ( endpoint , CallContext ( ) ) , "CallContext" , //
95
86
CharacteristicsImpl:: getRelatedLocationOrCandidate ( endpoint , MethodDoc ( ) ) , "MethodDoc" , //
96
87
CharacteristicsImpl:: getRelatedLocationOrCandidate ( endpoint , ClassDoc ( ) ) , "ClassDoc" , //
0 commit comments