public static void ParseXMLProperties(ASTNode node, XElement xml, XMLProperties prop)
 {
     if (prop.parseLineContext)
         xml.Add(node.Context.ToXML());
     if (prop.parseScope)
         xml.Add(node.Scope.ToXML());
 }
 private void Check(string str, ASTNode ast, bool parseLineContext, bool parseLineScope)
 {
     Assert.AreEqual(str.Replace(" ", ""), ast.ToXML(new XMLParser.XMLProperties(parseLineContext, parseLineScope)).ToString().Replace(" ", ""));
 }