|
7 | 7 | * @id java/ml/extract-automodel-framework-positive-examples |
8 | 8 | * @tags internal extract automodel framework-mode positive examples |
9 | 9 | */ |
10 | | - |
11 | 10 | private import AutomodelFrameworkModeCharacteristics |
12 | 11 | private import AutomodelEndpointTypes |
13 | 12 | private import AutomodelJavaUtil |
14 | 13 |
|
15 | 14 | from |
16 | | - Endpoint endpoint, SinkType sinkType, FrameworkModeMetadataExtractor meta, DollarAtString package, |
| 15 | + Endpoint endpoint, EndpointType endpointType, FrameworkModeMetadataExtractor meta, DollarAtString package, |
17 | 16 | DollarAtString type, DollarAtString subtypes, DollarAtString name, DollarAtString signature, |
18 | 17 | DollarAtString input, DollarAtString output, DollarAtString parameterName, |
19 | 18 | DollarAtString extensibleType |
20 | 19 | where |
21 | 20 | endpoint.getExtensibleType() = extensibleType and |
22 | 21 | meta.hasMetadata(endpoint, package, type, subtypes, name, signature, input, output, parameterName) and |
23 | 22 | // Extract positive examples of sinks belonging to the existing ATM query configurations. |
24 | | - CharacteristicsImpl::isKnownAs(endpoint, sinkType, _) |
| 23 | + CharacteristicsImpl::isKnownAs(endpoint, endpointType, _) |
25 | 24 | select endpoint, |
26 | | - sinkType + "\nrelated locations: $@, $@." + "\nmetadata: $@, $@, $@, $@, $@, $@, $@, $@, $@.", // |
| 25 | + endpointType + "\nrelated locations: $@, $@." + "\nmetadata: $@, $@, $@, $@, $@, $@, $@, $@, $@.", // |
27 | 26 | CharacteristicsImpl::getRelatedLocationOrCandidate(endpoint, MethodDoc()), "MethodDoc", // |
28 | 27 | CharacteristicsImpl::getRelatedLocationOrCandidate(endpoint, ClassDoc()), "ClassDoc", // |
29 | 28 | package, "package", // |
|
0 commit comments