Beispiel #1
0
 object IXshdVisitor.VisitImport(XshdImport import)
 {
     _writer.WriteStartElement("Import", Namespace);
     WriteRuleSetReference(import.RuleSetReference);
     _writer.WriteEndElement();
     return(null);
 }
Beispiel #2
0
        private static XshdImport ParseImport(XmlReader reader)
        {
            var import = new XshdImport();

            SetPosition(import, reader);
            import.RuleSetReference = ParseRuleSetReference(reader);
            if (!reader.IsEmptyElement)
            {
                reader.Skip();
            }
            return(import);
        }
Beispiel #3
0
            public object VisitImport(XshdImport import)
            {
                var hrs = GetRuleSet(import, import.RuleSetReference);

                if (_reverseRuleSetDict.TryGetValue(hrs, out var inputRuleSet))
                {
                    // ensure the ruleset is processed before importing its members
                    if (VisitRuleSet(inputRuleSet) != hrs)
                    {
                        Debug.Assert(false, "this shouldn't happen");
                    }
                }
                return(hrs);
            }
Beispiel #4
0
 public object VisitImport(XshdImport import)
 {
     return(import.RuleSetReference.AcceptVisitor(this));
 }