(func: Func)
| 1211 | } |
| 1212 | |
| 1213 | function extractEqualityField(func: Func): ComparisonField | null { |
| 1214 | if (func.name === `eq`) { |
| 1215 | const firstArg = func.args[0] |
| 1216 | const secondArg = func.args[1] |
| 1217 | |
| 1218 | if (firstArg?.type === `ref` && secondArg?.type === `val`) { |
| 1219 | return { |
| 1220 | ref: firstArg, |
| 1221 | value: secondArg.value, |
| 1222 | } |
| 1223 | } |
| 1224 | } |
| 1225 | return null |
| 1226 | } |
| 1227 | |
| 1228 | interface InField { |
| 1229 | ref: PropRef |
no outgoing calls
no test coverage detected