This commit is contained in:
Jelle Luteijn 2022-05-15 11:19:49 +02:00
parent 16e76d6b31
commit 484dbfc9d9
529 changed files with 113694 additions and 0 deletions

View file

@ -0,0 +1,27 @@
using System;
using System.IO;
using System.Dynamic;
using System.Collections.Generic;
using System.Text;
using AspClassic.Scripting;
using AspClassic.Scripting.Utils;
namespace Dlrsoft.VBScript.Compiler
{
public class VBScriptStringContentProvider : TextContentProvider {
private readonly string _code;
private ISourceMapper _mapper;
public VBScriptStringContentProvider(string code, ISourceMapper mapper)
{
ContractUtils.RequiresNotNull(code, "code");
_code = code;
_mapper = mapper;
}
public override SourceCodeReader GetReader() {
return new VBScriptSourceCodeReader(new StringReader(_code), null, _mapper);
}
}
}