progress
This commit is contained in:
parent
16e76d6b31
commit
484dbfc9d9
529 changed files with 113694 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue