Veil.Parser.SyntaxTree.WriteExpression C# (CSharp) Method

WriteExpression() public static method

Evaluate an expression and write the value to the TextWriter
public static WriteExpression ( ExpressionNode expression, SourceLocation location, bool htmlEncode = false ) : WriteExpressionNode
expression ExpressionNode The expression to be written
location SourceLocation
htmlEncode bool Indicates whether the content should be html encoded before being written
return WriteExpressionNode
        public static WriteExpressionNode WriteExpression(ExpressionNode expression, SourceLocation location, bool htmlEncode = false)
        {
            return new WriteExpressionNode
            {
				Location = location,
                Expression = expression,
                HtmlEncode = htmlEncode
            };
        }