public override Node ExitDatetime(PerCederberg.Grammatica.Runtime.Token node) { var image = node.Image.Substring(1, node.Image.Length - 2); var element = new DateTimeLiteralElement(image, context); node.AddValue(element); return(node); }
public override Node ExitDatetime(Token node) { ExpressionContext context = (ExpressionContext)_myServices.GetService(typeof(ExpressionContext)); string image = node.Image.Substring(1, node.Image.Length - 2); DateTimeLiteralElement element = new DateTimeLiteralElement(image, context); node.AddValue(element); return(node); }