docTree.Load (defTree);
}
+
sourceFiles = sourceFiles ?? new string [0];
//
//
// Load the sources
//
- foreach (var sourceFile in sourceFiles)
+ foreach (var sourceFile in sourceFiles){
root.AddSourceFile (sourceFile);
+ }
foreach (string path in UncompiledHelpSources) {
EcmaUncompiledHelpSource hs = new EcmaUncompiledHelpSource(path);
}
}
+ Dictionary<string,string> loadedSourceFiles = new Dictionary<string,string> ();
+
public void AddSourceFile (string sourceFile)
{
+ if (loadedSourceFiles.ContainsKey (sourceFile))
+ return;
+
Node third_party = LookupEntryPoint ("various") ?? this;
XmlDocument doc = new XmlDocument ();
Console.Error.WriteLine ("Error: No <source> section found in the {0} file", sourceFile);
return;
}
+ loadedSourceFiles [sourceFile] = sourceFile;
foreach (XmlNode source in sources){
XmlAttribute a = source.Attributes ["provider"];
if (a == null){