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": case "param":
functionType.params.add( valueType ); functionType.params.add( valueType );
return; return;
case "return": case "result":
functionType.result = valueType; functionType.result = valueType;
return; return;
} }

View File

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