/// <summary> /// Constructor /// </summary> /// <param name="info">ImportInfo object containing the information how the script file should be parsed.</param> public ScriptInfo(CSharpParser.ImportInfo info) { this.fileName = info.file; parseParams.importingErrorMessage = "Cannot import \"" + info.rawStatement + "\" from the \"" + info.parentScript + "\" script."; parseParams.AddRenameNamespaceMap(info.renaming); parseParams.preserveMain = info.preserveMain; }
/// <summary> /// Constructor /// </summary> /// <param name="info">ImportInfo object containing the information how the script file should be parsed.</param> public ScriptInfo(CSharpParser.ImportInfo info) { this.fileName = info.file; parseParams.rawStatement = info.rawStatement; parseParams.AddRenameNamespaceMap(info.renaming); parseParams.preserveMain = info.preserveMain; }