mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +01:00
fix param names of instance methods. idx==0 is the this parameter.
This commit is contained in:
parent
b4ae2757c7
commit
2ebc771c55
@ -580,6 +580,7 @@ public class ModuleGenerator {
|
|||||||
if( !isStatic ) {
|
if( !isStatic ) {
|
||||||
StructType instanceType = types.valueOf( name.className );
|
StructType instanceType = types.valueOf( name.className );
|
||||||
writer.writeMethodParam( "param", instanceType, "this" );
|
writer.writeMethodParam( "param", instanceType, "this" );
|
||||||
|
paramCount++;
|
||||||
}
|
}
|
||||||
Iterator<AnyType> parser = name.getSignature( types );
|
Iterator<AnyType> parser = name.getSignature( types );
|
||||||
AnyType type;
|
AnyType type;
|
||||||
@ -598,9 +599,6 @@ public class ModuleGenerator {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if( codeBuilder != null ) {
|
if( codeBuilder != null ) {
|
||||||
if( !isStatic ) {
|
|
||||||
paramCount++;
|
|
||||||
}
|
|
||||||
List<AnyType> localTypes = codeBuilder.getLocalTypes( paramCount );
|
List<AnyType> localTypes = codeBuilder.getLocalTypes( paramCount );
|
||||||
for( int i = 0; i < localTypes.size(); i++ ) {
|
for( int i = 0; i < localTypes.size(); i++ ) {
|
||||||
type = localTypes.get( i );
|
type = localTypes.get( i );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user