override public void OnAstLiteralExpression(AstLiteralExpression node) { Type type = node.Node.GetType(); CastExpression ce = new CastExpression(CodeBuilder.CreateTypeReference(type), CreateFromXmlInvocation(node.Node.LexicalInfo, type, AstUtil.ToXml(node.Node))); ce.LexicalInfo = node.LexicalInfo; ReplaceCurrentNode(ce); }
override public void OnAstLiteralExpression(AstLiteralExpression e) { WriteIndented(); WriteKeyword("ast"); if (e.Node is Expression) { Write(" { "); Visit(e.Node); Write(" }"); } else { WriteLine(":"); BeginBlock(); Visit(e.Node); EndBlock(); } }