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:
Nitload
2025-06-18 05:17:14 +08:00
parent 74c01effe4
commit c624a8ca38
300 changed files with 12227 additions and 4303 deletions
+15 -16
View File
@@ -51,14 +51,13 @@ namespace StgSharp.Script.Express
public ExpFileSource( string path )
{
if ( !File.Exists( path ) ) {
if( !File.Exists( path ) ) {
throw new FileNotFoundException();
}
_expFileStream = new FileStream(
path, FileMode.Open, FileAccess.Read );
_expFileStream = new FileStream( path, FileMode.Open, FileAccess.Read );
_expMemoryMappedFile = MemoryMappedFile.CreateFromFile(
_expFileStream, null, 0, MemoryMappedFileAccess.Read,
HandleInheritability.None, true );
_expFileStream, null, 0, MemoryMappedFileAccess.Read, HandleInheritability.None,
true );
_expMemoryMappedStream = _expMemoryMappedFile.CreateViewStream(
offset: 0, size: 0, access: MemoryMappedFileAccess.Read );
_memoryReader = new StreamReader( _expMemoryMappedStream );
@@ -79,9 +78,7 @@ namespace StgSharp.Script.Express
GC.SuppressFinalize( this );
}
public void EndWriting()
{
}
public void EndWriting() { }
public string ReadLine()
{
@@ -92,7 +89,7 @@ namespace StgSharp.Script.Express
return line;
}
public string ReadLine(out int position)
public string ReadLine( out int position )
{
throw new NotImplementedException();
}
@@ -105,15 +102,12 @@ namespace StgSharp.Script.Express
readLineSemaphore.Release();
}
IScriptSourceProvider IScriptSourceProvider.Slice(int location, int count)
{
throw new NotSupportedException();
}
protected virtual void Dispose( bool disposing )
{
if( !disposedValue ) {
if( disposing ) {
if( !disposedValue )
{
if( disposing )
{
_expFileStream.Dispose();
_expMemoryMappedFile.Dispose();
_expMemoryMappedStream.Dispose();
@@ -123,5 +117,10 @@ namespace StgSharp.Script.Express
}
}
IScriptSourceProvider IScriptSourceProvider.Slice( int location, int count )
{
throw new NotSupportedException();
}
}
}