private StatementType Analyze(TextConcatinationNode node) { StatementType left = AnalyseExpression(node.Left); StatementType right = AnalyseExpression(node.Right); return(left == right && left == StatementType.Text ? StatementType.Text : StatementType.Unknown); }
private ExpressionValue ParseTextConcatinationNode(TextConcatinationNode textConcatinationNode) { ExpressionValue leftExpressionValue = ParseExpressionNode(textConcatinationNode.Left); ExpressionValue rightExpressionValue = ParseExpressionNode(textConcatinationNode.Right); return(leftExpressionValue.Combine(rightExpressionValue, ExpressionOperator.Plus)); }