We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我通过ASMCodeGenerator类的visitLineNumber方法添加了visitMethodInsn来获取当前运行脚本所在行号,但发现了一个问题,在执行while循环的过程中,执行完循环体后,会访问循环体外的下一行2次,然后再回到循环中。虽然不会执行循环体的下一行,但会访问该行,导致获取行号的过程中出现业务上的bug。 例如: 1 while true{ 2 print("loop"); 3 } 4 print("===") 行号获取顺序:2,4,4,3,2,4,4,3,2,4,4,3
The text was updated successfully, but these errors were encountered:
No branches or pull requests
我通过ASMCodeGenerator类的visitLineNumber方法添加了visitMethodInsn来获取当前运行脚本所在行号,但发现了一个问题,在执行while循环的过程中,执行完循环体后,会访问循环体外的下一行2次,然后再回到循环中。虽然不会执行循环体的下一行,但会访问该行,导致获取行号的过程中出现业务上的bug。
例如:
1 while true{
2 print("loop");
3 }
4 print("===")
行号获取顺序:2,4,4,3,2,4,4,3,2,4,4,3
The text was updated successfully, but these errors were encountered: