Use set literal

This commit is contained in:
Owen Mansel-Chan
2020-12-03 15:55:27 +00:00
parent fe1f08fb12
commit 57ee3a8a64

View File

@@ -14,10 +14,7 @@ module EncodingJson {
/** The `Marshal` or `MarshalIndent` function in the `encoding/json` package. */
class MarshalFunction extends MarshalingFunction::Range {
MarshalFunction() {
this.hasQualifiedName("encoding/json", "Marshal") or
this.hasQualifiedName("encoding/json", "MarshalIndent")
}
MarshalFunction() { this.hasQualifiedName("encoding/json", ["Marshal", "MarshalIndent"]) }
override FunctionInput getAnInput() { result.isParameter(0) }