public override void visit(Generated.Dictionary obj, bool visitSubNodes) { Dictionary dictionary = (Dictionary)obj; if (dictionary.allNameSpaceRefs() != null) { foreach (NameSpaceRef nameSpaceRef in dictionary.allNameSpaceRefs()) { Types.NameSpace nameSpace = nameSpaceRef.LoadNameSpace(LockFiles, AllowErrorsDuringLoad); if (nameSpace != null) { dictionary.appendNameSpaces(nameSpace); nameSpace.NameSpaceRef = nameSpaceRef; } else { ErrorsDuringLoad.Add(new ElementLog(ElementLog.LevelEnum.Error, "Cannot load file " + nameSpaceRef.FileName)); } } dictionary.allNameSpaceRefs().Clear(); } if (dictionary.allTestRefs() != null) { foreach (FrameRef testRef in dictionary.allTestRefs()) { Frame frame = testRef.LoadFrame(LockFiles, AllowErrorsDuringLoad); if (frame != null) { dictionary.appendTests(frame); frame.FrameRef = testRef; } else { ErrorsDuringLoad.Add(new ElementLog(ElementLog.LevelEnum.Error, "Cannot load file " + testRef.FileName)); } } dictionary.allTestRefs().Clear(); } base.visit(obj, visitSubNodes); }
public override void visit(Generated.Dictionary obj, bool visitSubNodes) { Dictionary dictionary = (Dictionary)obj; if (dictionary.allNameSpaceRefs() != null) { foreach (NameSpaceRef nameSpaceRef in dictionary.allNameSpaceRefs()) { dictionary.appendNameSpaces(nameSpaceRef.LoadNameSpace()); } dictionary.allNameSpaceRefs().Clear(); } if (dictionary.allTestRefs() != null) { foreach (FrameRef testRef in dictionary.allTestRefs()) { dictionary.appendTests(testRef.LoadFrame()); } dictionary.allTestRefs().Clear(); } base.visit(obj, visitSubNodes); }