public virtual object TrackedVisitXmlContentExpression(XmlContentExpression xmlContentExpression, object data)
 {
     return base.VisitXmlContentExpression(xmlContentExpression, data);
 }
 public override sealed object VisitXmlContentExpression(XmlContentExpression xmlContentExpression, object data)
 {
     this.BeginVisit(xmlContentExpression);
     object result = this.TrackedVisitXmlContentExpression(xmlContentExpression, data);
     this.EndVisit(xmlContentExpression);
     return result;
 }
Пример #3
0
 public virtual object VisitXmlContentExpression(XmlContentExpression xmlContentExpression, object data)
 {
     Debug.Assert((xmlContentExpression != null));
     return null;
 }
 public virtual object VisitXmlContentExpression(XmlContentExpression xmlContentExpression, object data)
 {
     throw new global::System.NotImplementedException("XmlContentExpression");
 }
Пример #5
0
 void XmlNestedContent(out XmlExpression expr)
 {
     XmlExpression tmpExpr = null; Location start = la.Location;
     switch (la.kind) {
     case 16: {
     Get();
     tmpExpr = new XmlContentExpression(t.val, XmlContentType.Text);
     break;
     }
     case 18: {
     Get();
     tmpExpr = new XmlContentExpression(t.val, XmlContentType.CData);
     break;
     }
     case 17: {
     Get();
     tmpExpr = new XmlContentExpression(t.val, XmlContentType.Comment);
     break;
     }
     case 19: {
     Get();
     tmpExpr = new XmlContentExpression(t.val, XmlContentType.ProcessingInstruction);
     break;
     }
     case 12: {
     Get();
     Expression innerExpression;
     Expr(out innerExpression);
     Expect(13);
     tmpExpr = new XmlEmbeddedExpression() { InlineVBExpression = innerExpression };
     break;
     }
     case 10: {
     XmlElement(out tmpExpr);
     break;
     }
     default: SynErr(289); break;
     }
     if (tmpExpr.StartLocation.IsEmpty)
         tmpExpr.StartLocation = start;
     if (tmpExpr.EndLocation.IsEmpty)
         tmpExpr.EndLocation = t.EndLocation;
     expr = tmpExpr;
 }
Пример #6
0
 void XmlContentExpression(List<XmlExpression> exprs)
 {
     XmlContentExpression expr = null;
     if (la.kind == 16) {
     Get();
     expr = new XmlContentExpression(t.val, XmlContentType.Text);
     } else if (la.kind == 18) {
     Get();
     expr = new XmlContentExpression(t.val, XmlContentType.CData);
     } else if (la.kind == 17) {
     Get();
     expr = new XmlContentExpression(t.val, XmlContentType.Comment);
     } else if (la.kind == 19) {
     Get();
     expr = new XmlContentExpression(t.val, XmlContentType.ProcessingInstruction);
     } else SynErr(286);
     expr.StartLocation = t.Location;
     expr.EndLocation = t.EndLocation;
     exprs.Add(expr);
 }