Daily update on 20250303-043627 by Nitload Youmu. Additional Message : remove node dependency to context, node instance ctor switched to factory mode,
Signed-off-by: Nitload <YoumuLiu_NSI@whv0t.onmicrosoft.com>
This commit is contained in:
@@ -37,7 +37,7 @@ using System.Text;
|
||||
|
||||
namespace StgSharp.Script.Express
|
||||
{
|
||||
public abstract class ExpCollectionBase : ExpInstantiableElementBase, IEnumerable<ExpElementInstanceBase>
|
||||
public abstract class ExpCollectionBase : ExpInstantiableElement, IEnumerable<ExpElementInstanceBase>
|
||||
{
|
||||
|
||||
protected internal string _accurateType;
|
||||
@@ -69,7 +69,7 @@ namespace StgSharp.Script.Express
|
||||
public abstract IEnumerator<ExpElementInstanceBase> GetEnumerator();
|
||||
|
||||
public override sealed bool IsConvertable(
|
||||
ExpInstantiableElementBase targetType )
|
||||
ExpInstantiableElement targetType )
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -105,7 +105,7 @@ namespace StgSharp.Script.Express
|
||||
|
||||
public override string Name => ExpCompile.PoolString( "ARRAY" );
|
||||
|
||||
public override ExpBaseNode CreateInstanceNode()
|
||||
public override ExpNode CreateInstanceNode()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
@@ -130,7 +130,7 @@ namespace StgSharp.Script.Express
|
||||
|
||||
public override string Name => ExpCompile.PoolString( "BAG" );
|
||||
|
||||
public override ExpBaseNode CreateInstanceNode()
|
||||
public override ExpNode CreateInstanceNode()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
@@ -154,7 +154,7 @@ namespace StgSharp.Script.Express
|
||||
|
||||
public override string Name => ExpCompile.PoolString( "LIST" );
|
||||
|
||||
public override ExpBaseNode CreateInstanceNode()
|
||||
public override ExpNode CreateInstanceNode()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
@@ -186,7 +186,7 @@ namespace StgSharp.Script.Express
|
||||
_collection.Add( token );
|
||||
}
|
||||
|
||||
public override ExpBaseNode CreateInstanceNode()
|
||||
public override ExpNode CreateInstanceNode()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
@@ -34,18 +34,14 @@ using System.Text;
|
||||
|
||||
namespace StgSharp.Script.Express
|
||||
{
|
||||
public abstract class ExpCollectionInstanceBase : ExpBaseNode
|
||||
public abstract class ExpCollectionInstanceBase : ExpNode
|
||||
{
|
||||
|
||||
protected internal (int min, int max) _range;
|
||||
protected internal ExpElementType _memberType;
|
||||
|
||||
protected ExpCollectionInstanceBase( string name, ExpSchema context )
|
||||
: base( name, context ) { }
|
||||
|
||||
public override ExpBaseNode Left => null!;
|
||||
|
||||
public override ExpBaseNode Right => null!;
|
||||
: base( name ) { }
|
||||
|
||||
public abstract ExpCollectionBase CollectionValue
|
||||
{
|
||||
@@ -57,6 +53,10 @@ namespace StgSharp.Script.Express
|
||||
get => _memberType;
|
||||
}
|
||||
|
||||
public override ExpNode Left => null!;
|
||||
|
||||
public override ExpNode Right => null!;
|
||||
|
||||
public int MinCapacity => _range.min;
|
||||
|
||||
public int MaxCapacity => _range.max;
|
||||
@@ -69,14 +69,14 @@ namespace StgSharp.Script.Express
|
||||
private ExpSet _collection;
|
||||
|
||||
public ExpSetInstance( string name, ExpSet set, ExpSchema context )
|
||||
: base( name, context )
|
||||
: base( name )
|
||||
{
|
||||
_collection = set;
|
||||
}
|
||||
|
||||
public override ExpCollectionBase CollectionValue => _collection;
|
||||
|
||||
public override ExpInstantiableElementBase EqualityTypeConvert => throw new NotImplementedException(
|
||||
public override ExpInstantiableElement EqualityTypeConvert => throw new NotImplementedException(
|
||||
);
|
||||
|
||||
}
|
||||
@@ -87,14 +87,14 @@ namespace StgSharp.Script.Express
|
||||
private ExpBag _collection;
|
||||
|
||||
public ExpBagInstance( string name, ExpBag bag, ExpSchema context )
|
||||
: base( name, context )
|
||||
: base( name )
|
||||
{
|
||||
_collection = bag;
|
||||
}
|
||||
|
||||
public override ExpCollectionBase CollectionValue => _collection;
|
||||
|
||||
public override ExpInstantiableElementBase EqualityTypeConvert => throw new NotImplementedException(
|
||||
public override ExpInstantiableElement EqualityTypeConvert => throw new NotImplementedException(
|
||||
);
|
||||
|
||||
}
|
||||
@@ -105,14 +105,14 @@ namespace StgSharp.Script.Express
|
||||
private ExpList _collection;
|
||||
|
||||
public ExpListInstance( string name, ExpList list, ExpSchema context )
|
||||
: base( name, context )
|
||||
: base( name )
|
||||
{
|
||||
_collection = list;
|
||||
}
|
||||
|
||||
public override ExpCollectionBase CollectionValue => _collection;
|
||||
|
||||
public override ExpInstantiableElementBase EqualityTypeConvert => throw new NotImplementedException(
|
||||
public override ExpInstantiableElement EqualityTypeConvert => throw new NotImplementedException(
|
||||
);
|
||||
|
||||
}
|
||||
@@ -126,14 +126,14 @@ namespace StgSharp.Script.Express
|
||||
string name,
|
||||
ExpArray array,
|
||||
ExpSchema context )
|
||||
: base( name, context )
|
||||
: base( name )
|
||||
{
|
||||
_collection = array;
|
||||
}
|
||||
|
||||
public override ExpCollectionBase CollectionValue => _collection;
|
||||
|
||||
public override ExpInstantiableElementBase EqualityTypeConvert => _collection;
|
||||
public override ExpInstantiableElement EqualityTypeConvert => _collection;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user