mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 23:47:51 +01:00
Add package path to Java source files
This commit is contained in:
parent
cba37f1cef
commit
76435a76b9
@ -400,7 +400,10 @@ public class BinaryModuleWriter extends ModuleWriter implements InstructionOpcod
|
|||||||
@Override
|
@Override
|
||||||
protected void writeMethodStart( FunctionName name, String sourceFile ) throws IOException {
|
protected void writeMethodStart( FunctionName name, String sourceFile ) throws IOException {
|
||||||
function = getFunction( name );
|
function = getFunction( name );
|
||||||
this.javaSourceFile = sourceFile;
|
if( createSourceMap ) {
|
||||||
|
int idx = name.className.lastIndexOf( '/' );
|
||||||
|
this.javaSourceFile = name.className.substring( 0, idx + 1 ) + sourceFile;
|
||||||
|
}
|
||||||
functionType = new FunctionTypeEntry();
|
functionType = new FunctionTypeEntry();
|
||||||
codeStream.reset();
|
codeStream.reset();
|
||||||
locals.clear();
|
locals.clear();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user