| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -921,9 +921,12 @@ class SignatureType extends @signaturetype, CompositeType { | |||
| 921 | 921 | ||
| 922 | 922 | language[monotonicAggregates] | |
| 923 | 923 | override string pp() { | |
| 924 | - result = | ||
| 925 | - "func(" + concat(int i, Type tp | tp = this.getParameterType(i) | tp.pp(), ", " order by i) + | ||
| 926 | - ") " + concat(int i, Type tp | tp = this.getResultType(i) | tp.pp(), ", " order by i) | ||
| 924 | + exists(string suffix | (if this.isVariadic() then suffix = "[variadic]" else suffix = "") | | ||
| 925 | + result = | ||
| 926 | + "func(" + concat(int i, Type tp | tp = this.getParameterType(i) | tp.pp(), ", " order by i) + | ||
| 927 | + ") " + concat(int i, Type tp | tp = this.getResultType(i) | tp.pp(), ", " order by i) + | ||
| 928 | + " " + suffix | ||
| 929 | + ) | ||
| 927 | 930 | } | |
| 928 | 931 | ||
| 929 | 932 | override string toString() { result = "signature type" } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments