return parameter type is written as "result" and not "return".

This commit is contained in:
Volker Berlin 2018-03-24 12:46:47 +01:00
parent 6a2e33ac8a
commit 5c7b7256c7
2 changed files with 3 additions and 3 deletions

View File

@ -214,7 +214,7 @@ public class BinaryModuleWriter extends ModuleWriter implements InstructionOpcod
case "param":
functionType.params.add( valueType );
return;
case "return":
case "result":
functionType.result = valueType;
return;
}

View File

@ -255,7 +255,7 @@ public abstract class ModuleWriter implements Closeable {
continue;
case ')':
this.paramCount = paramCount - 1;
kind = "return";
kind = "result";
continue;
default:
javaType = signature.substring( i, i + 1 );
@ -269,7 +269,7 @@ public abstract class ModuleWriter implements Closeable {
* Write a method parameter.
*
* @param kind
* "param", "return" or "local"
* "param", "result" or "local"
* @param valueType
* the data type of the parameter
* @throws IOException