Moves generic type identifiers to be the first children of a function in the id-tree
parent
d48995716e
commit
79d4715799
|
@ -150,9 +150,9 @@ IdNode *MakeIdTree(Node *astNode, IdNode *parent)
|
||||||
mainNode = MakeIdNode(Function, funcName, parent);
|
mainNode = MakeIdNode(Function, funcName, parent);
|
||||||
mainNode->typeTag = MakeTypeTag(astNode);
|
mainNode->typeTag = MakeTypeTag(astNode);
|
||||||
idNode->typeTag = mainNode->typeTag;
|
idNode->typeTag = mainNode->typeTag;
|
||||||
|
MakeIdTree(sigNode->functionSignature.genericArguments, mainNode);
|
||||||
MakeIdTree(sigNode->functionSignature.arguments, mainNode);
|
MakeIdTree(sigNode->functionSignature.arguments, mainNode);
|
||||||
MakeIdTree(astNode->functionDeclaration.functionBody, mainNode);
|
MakeIdTree(astNode->functionDeclaration.functionBody, mainNode);
|
||||||
MakeIdTree(sigNode->functionSignature.genericArguments, mainNode);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue