private Node TransformDefaultXmlNamepace(UnaryExpression node) { decompiler.AddToken(Token.DEFAULT); decompiler.AddName(" xml"); decompiler.AddName(" namespace"); decompiler.AddToken(Token.ASSIGN); Node child = Transform(node.GetOperand()); return CreateUnary(Token.DEFAULTNAMESPACE, child); }
private Node TransformUnary(UnaryExpression node) { int type = node.GetType(); if (type == Token.DEFAULTNAMESPACE) { return TransformDefaultXmlNamepace(node); } if (node.IsPrefix()) { decompiler.AddToken(type); } Node child = Transform(node.GetOperand()); if (node.IsPostfix()) { decompiler.AddToken(type); } if (type == Token.INC || type == Token.DEC) { return CreateIncDec(type, node.IsPostfix(), child); } return CreateUnary(type, child); }