Daily update on 20250305-052510 by Nitload Youmu. Additional Message : message
Signed-off-by: Nitload <YoumuLiu_NSI@whv0t.onmicrosoft.com>
This commit is contained in:
@@ -32,6 +32,7 @@ using CommunityToolkit.HighPerformance.Buffers;
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
|
||||
namespace StgSharp.Script.Express
|
||||
@@ -96,11 +97,11 @@ namespace StgSharp.Script.Express
|
||||
|
||||
public string Name => _name;
|
||||
|
||||
public virtual void AppendNode( ExpNode nextToken )
|
||||
public void AppendNode( ExpNode nextNode )
|
||||
{
|
||||
Next.Previous = nextToken;
|
||||
nextToken.Next = Next;
|
||||
Next = nextToken;
|
||||
Next.Previous = nextNode;
|
||||
nextNode.Next = Next;
|
||||
Next = nextNode;
|
||||
Next.Previous = this;
|
||||
}
|
||||
|
||||
@@ -114,6 +115,20 @@ namespace StgSharp.Script.Express
|
||||
return node == ExpEmptyNode._only || node == null;
|
||||
}
|
||||
|
||||
[MethodImpl( MethodImplOptions.AggressiveInlining )]
|
||||
public static ExpNode NonOperation( string name )
|
||||
{
|
||||
return new ExpEmptyNode( name );
|
||||
}
|
||||
|
||||
public void PrependNode( ExpNode previousNode )
|
||||
{
|
||||
Previous.Next = previousNode;
|
||||
previousNode.Previous = Previous;
|
||||
Previous = previousNode;
|
||||
previousNode.Next = this;
|
||||
}
|
||||
|
||||
public static bool VerifyTypeConvertable( ExpNode left, ExpNode right )
|
||||
{
|
||||
IExpElementSource tLeft = left.EqualityTypeConvert,
|
||||
@@ -131,6 +146,8 @@ namespace StgSharp.Script.Express
|
||||
|
||||
public ExpEmptyNode() : base( string.Empty ) { }
|
||||
|
||||
public ExpEmptyNode( string name ) : base( name ) { }
|
||||
|
||||
public override ExpInstantiableElement EqualityTypeConvert => ExpInstantiableElement.Void;
|
||||
|
||||
public override ExpNode Left => _only;
|
||||
|
||||
Reference in New Issue
Block a user