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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user