From 79d47157992cb8eb10f8956339cce9b82d9a3367 Mon Sep 17 00:00:00 2001 From: venko Date: Sun, 23 May 2021 17:04:50 -0700 Subject: [PATCH] Moves generic type identifiers to be the first children of a function in the id-tree --- src/identcheck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/identcheck.c b/src/identcheck.c index 2d040d0..d2bd6c6 100644 --- a/src/identcheck.c +++ b/src/identcheck.c @@ -150,9 +150,9 @@ IdNode *MakeIdTree(Node *astNode, IdNode *parent) mainNode = MakeIdNode(Function, funcName, parent); mainNode->typeTag = MakeTypeTag(astNode); idNode->typeTag = mainNode->typeTag; + MakeIdTree(sigNode->functionSignature.genericArguments, mainNode); MakeIdTree(sigNode->functionSignature.arguments, mainNode); MakeIdTree(astNode->functionDeclaration.functionBody, mainNode); - MakeIdTree(sigNode->functionSignature.genericArguments, mainNode); break; }