Fix correct type name access

This commit is contained in:
Marvin Kaiser
2020-01-27 16:47:16 +01:00
parent b1be18f367
commit 86468ea740

View File

@@ -38,7 +38,7 @@ public class GetFunctions extends KlangBaseVisitor<Void> {
int paramCount = ctx.params.parameter().size();
Type[] signature = new Type[paramCount];
for (int i = 0; i < paramCount; i++) {
Type paramType = Type.getByName(ctx.params.parameter(i).type_annotation().getText());
Type paramType = Type.getByName(ctx.params.parameter(i).type_annotation().type().getText());
String paramName = ctx.params.parameter(i).IDENT().getText();
parameters.put(paramName, paramType);
signature[i] = paramType;