object IXshdVisitor.VisitImport(XshdImport import) { writer.WriteStartElement("Import", Namespace); WriteRuleSetReference(import.RuleSetReference); writer.WriteEndElement(); return(null); }
static XshdImport ParseImport(XmlReader reader) { XshdImport import = new XshdImport(); SetPosition(import, reader); import.RuleSetReference = ParseRuleSetReference(reader); if (!reader.IsEmptyElement) { reader.Skip(); } return(import); }
public object VisitImport(XshdImport import) { HighlightingRuleSet hrs = GetRuleSet(import, import.RuleSetReference); XshdRuleSet inputRuleSet; if (reverseRuleSetDict.TryGetValue(hrs, out inputRuleSet)) { // ensure the ruleset is processed before importing its members if (VisitRuleSet(inputRuleSet) != hrs) { Debug.Fail("this shouldn't happen"); } } return(hrs); }
public object VisitImport(XshdImport import) { return(import.RuleSetReference.AcceptVisitor(this)); }