C#/Java/Go: Neutrals are split into seperate classes.

This commit is contained in:
Michael Nebel
2024-07-17 15:58:17 +02:00
parent c9832df3c0
commit ca4bd0c606
11 changed files with 147 additions and 149 deletions

View File

@@ -934,21 +934,3 @@ private class SummarizedCallableAdapter extends SummarizedCallable {
interpretSummary(this, _, _, _, provenance)
}
}
// adapter class for converting Mad neutrals to `NeutralCallable`s
private class NeutralCallableAdapter extends NeutralCallable {
string kind;
string provenance_;
NeutralCallableAdapter() {
// Neutral models have not been implemented for CPP.
none() and
exists(this) and
exists(kind) and
exists(provenance_)
}
override string getKind() { result = kind }
override predicate hasProvenance(Provenance provenance) { provenance = provenance_ }
}