Daily update on 20250323-151439 by Nitload Youmu. Additional Message : none

Signed-off-by: Nitload <YoumuLiu_NSI@whv0t.onmicrosoft.com>
This commit is contained in:
Nitload
2025-03-23 15:14:39 +08:00
parent 528d0c5462
commit 148b0fed4a
29 changed files with 313 additions and 178 deletions
+14 -2
View File
@@ -40,7 +40,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ExpKeyword = StgSharp.Script.Express.ExpCompile.KeyWord;
using ExpKeyword = StgSharp.Script.Express.ExpressCompile.KeyWord;
namespace StgSharp.Script.Express
{
@@ -55,7 +55,7 @@ namespace StgSharp.Script.Express
private ExpNode _lastStatement;
private GeneratedExpSchema _context;
private ExpSchema _context;
private IExpElementSource _local;
public ExpNodeGenerator()
@@ -63,6 +63,18 @@ namespace StgSharp.Script.Express
_cache = new CompileStack<ExpNode, IExpElementSource>();
}
public ExpNodeGenerator( ExpSchema context, IExpElementSource local )
{
_cache = new CompileStack<ExpNode, IExpElementSource>();
ArgumentNullException.ThrowIfNull( context );
if( context is not ExpSchema_Builtin ) {
_context = context;
} else {
throw new InvalidCastException( "Not a valid Schema type" );
}
_local = local;
}
/**/
/// <summary>