修复goto跳转时缓存分支缺少设置跳转点的错误
This commit is contained in:
@@ -17,6 +17,7 @@ namespace Convention.RScript.Runner
|
|||||||
{
|
{
|
||||||
depth = jumpResult.Item1;
|
depth = jumpResult.Item1;
|
||||||
lastLayer = jumpResult.Item2;
|
lastLayer = jumpResult.Item2;
|
||||||
|
context.CurrentRuntimePointer = target;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -266,9 +266,16 @@ namespace Convention.RScript
|
|||||||
|
|
||||||
public int StepCount { get; private set; }
|
public int StepCount { get; private set; }
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
|
public List<RScriptSentence> StepStack = new();
|
||||||
|
#endif
|
||||||
|
|
||||||
internal object RunNextStep(ExpressionParser parser)
|
internal object RunNextStep(ExpressionParser parser)
|
||||||
{
|
{
|
||||||
StepCount++;
|
StepCount++;
|
||||||
|
#if DEBUG
|
||||||
|
StepStack.Add(CurrentSentence);
|
||||||
|
#endif
|
||||||
var sentence = CurrentSentence;
|
var sentence = CurrentSentence;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user