This commit is contained in:
nub31
2025-05-26 20:16:23 +02:00
parent f63cee1011
commit 1105661603
6 changed files with 51 additions and 101 deletions

View File

@@ -363,12 +363,7 @@ public class Generator
private string GenerateFuncCall(FuncCall funcCall)
{
var parameterDefinitions = _definitions
.OfType<LocalFuncDefinitionNode>()
.FirstOrDefault(d => d.Name == funcCall.Name)
?.Parameters;
parameterDefinitions ??= _definitions
.OfType<ExternFuncDefinitionNode>()
.OfType<IFuncSignature>()
.FirstOrDefault(d => d.Name == funcCall.Name)
?.Parameters;