Daily update on 20250313-044921 by Nitload Youmu. Additional Message : Parser to TokenFlag.Member, improvement of exiting StgSharp platform

Signed-off-by: Nitload <YoumuLiu_NSI@whv0t.onmicrosoft.com>
This commit is contained in:
Nitload
2025-03-13 04:49:21 +08:00
parent 9647c2c68a
commit 6222f8c8be
49 changed files with 1509 additions and 288 deletions
@@ -33,6 +33,7 @@ using System.Collections;
using System.Collections.Frozen;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq.Expressions;
using System.Runtime.CompilerServices;
using System.Text;
@@ -88,6 +89,17 @@ namespace StgSharp.Script.Express
return _constants.TryGetValue( name, out instance );
}
public override bool TryGetMember( string name, out ExpNode memberNode )
{
if( _constants.TryGetValue( name,
out ExpElementInstanceBase? node ) ) {
memberNode = node;
return true;
}
memberNode = ExpNode.Empty;
return false;
}
internal void AddConstant( string name, ExpElementInstanceBase value )
{
_constants.Add( name, value );