object IXshdVisitor.VisitImport(XshdImport import)
 {
     writer.WriteStartElement("Import", Namespace);
     WriteRuleSetReference(import.RuleSetReference);
     writer.WriteEndElement();
     return(null);
 }
Esempio n. 2
0
        static XshdImport ParseImport(XmlReader reader)
        {
            XshdImport import = new XshdImport();

            SetPosition(import, reader);
            import.RuleSetReference = ParseRuleSetReference(reader);
            if (!reader.IsEmptyElement)
            {
                reader.Skip();
            }
            return(import);
        }
Esempio n. 3
0
            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);
            }
Esempio n. 4
0
 public object VisitImport(XshdImport import)
 {
     return(import.RuleSetReference.AcceptVisitor(this));
 }