Daily update on 20250326-140335 by Nitload Youmu. Additional Message : If Branch building

Signed-off-by: Nitload <YoumuLiu_NSI@whv0t.onmicrosoft.com>
This commit is contained in:
Nitload
2025-03-26 14:03:35 +08:00
parent 469cb88472
commit 36b6ad5a52
7 changed files with 283 additions and 45 deletions
+5 -18
View File
@@ -179,6 +179,11 @@ namespace StgSharp.Script
_operatorCount++;
}
public T StateOfCurrentDepth<T>() where T: class, ICompileDepthState
{
return ( CurrentDepthMark.StateCache as T )!;
}
public bool TryPeekOperand( out bool isNode, out Token t, out TNode n )
{
if( OperandAheadOfDepth <= 0 )
@@ -250,22 +255,4 @@ namespace StgSharp.Script
}
}
public class CompileDepthMark
{
public CompileDepthMark( int operatorBegin, int operandBegin, int state )
{
OperatorBegin = operatorBegin;
OperandBegin = operandBegin;
State = state;
}
public int OperandBegin { get; internal set; }
public int OperatorBegin { get; internal set; }
public int State { get; internal set; }
}
}