hylo icon indicating copy to clipboard operation
hylo copied to clipboard

Uniformize the creation of function references

Open kyouko-taiga opened this issue 1 year ago • 0 comments

Declaration references to functions are typically turned into function references during IR generation. For example:

https://github.com/hylo-lang/hylo/blob/f73cfecf8024f6a58f37ccb759d6f22743663221/Sources/IR/Emitter.swift#L1267-L1268

Similar code is repeated in several places and should be refactored into a dedicated function.

kyouko-taiga avatar Sep 07 '23 14:09 kyouko-taiga