firely-cql-sdk icon indicating copy to clipboard operation
firely-cql-sdk copied to clipboard

Fix up FunctionRefs that do not have a signature

Open ewoutkramer opened this issue 5 months ago • 0 comments

We are becoming more dependent on the signature being provided in the ELM, however in current ELM out there, the signature is not always there.

We will need to add new logic to our ELM pre-processing step to catch the functionrefs where no signature is provided and invoke the logic in our cql2elm compiler to resolve that functionref and add a signature in retrospect.

To make this repeatable, we will need to identify the resolution logic in the compiler, and create a function like

FunctionDef? ResolveOverload(FunctionRef missingSignature, FunctionDef[] allOverloads)

Then, the preprocessor can invoke this logic.

ewoutkramer avatar Aug 29 '24 14:08 ewoutkramer