public static SyntaxTree Parse(ITextSource textSource, string fileName = "", CompilerSettings settings = null, CancellationToken cancellationToken = default(CancellationToken)) { cancellationToken.ThrowIfCancellationRequested(); var parser = new AlParser(settings); return(parser.Parse(textSource, fileName)); }
public AlProjectContent() { this.unresolvedFiles = new Dictionary <string, IUnresolvedFile>(Platform.FileNameComparer); this.assemblyReferences = new List <IAssemblyReference>(); this.compilerSettings = new CompilerSettings(); compilerSettings.Freeze(); }
protected AlProjectContent(AlProjectContent pc) { this.assemblyName = pc.assemblyName; this.fullAssemblyName = pc.fullAssemblyName; this.projectFileName = pc.projectFileName; this.location = pc.location; this.unresolvedFiles = new Dictionary <string, IUnresolvedFile>(pc.unresolvedFiles, Platform.FileNameComparer); this.assemblyReferences = new List <IAssemblyReference>(pc.assemblyReferences); this.compilerSettings = pc.compilerSettings; }