Daily update on 20250618-051714 by Nitload Youmu. Additional Message : Brief support to collection operation in EXPRESS. A collection type added in core lib and compilestack.
Signed-off-by: Nitload <YoumuLiu_NSI@whv0t.onmicrosoft.com>
This commit is contained in:
@@ -30,12 +30,39 @@
|
||||
//-----------------------------------------------------------------------
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace StgSharp.Script.Express
|
||||
{
|
||||
[EditorBrowsable( EditorBrowsableState.Never )]
|
||||
public static class ExpNodeFlagHelper
|
||||
{
|
||||
|
||||
public static bool IsInFlag( this ExpNodeFlag flag, long target )
|
||||
{
|
||||
return ( ( long )flag & target ) != 0;
|
||||
}
|
||||
|
||||
public static bool IsInFlag( this ExpNodeFlag flag, ExpNodeFlag target )
|
||||
{
|
||||
return ( long )( flag & target ) != 0;
|
||||
}
|
||||
|
||||
public static bool IsNotInFlag( this ExpNodeFlag flag, long target )
|
||||
{
|
||||
return ( ( long )flag & target ) == 0;
|
||||
}
|
||||
|
||||
public static bool IsNotInFlag( this ExpNodeFlag flag, ExpNodeFlag target )
|
||||
{
|
||||
return ( long )( flag & target ) == 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[Flags]
|
||||
public enum ExpNodeFlag : long
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user