private ConditionExpressionNode BuildConditionExpressionNode(SyntaxNodeOrToken node) { var exp = new ConditionExpressionNode(); exp.AddNode(node); return(exp); }
private ConditionExpressionNode BuildConditionExpressionNode(SyntaxNodeOrToken left, LexSpan op, SyntaxNodeOrToken right) { var exp = new ConditionExpressionNode(); exp.AddNode(left); if (op.token == (int)Tokens.bsAnd) { exp.AddNode(new AndToken(op)); } else if (op.token == (int)Tokens.bsOr) { exp.AddNode(new OrToken(op)); } else { throw new NotImplementedException(); } exp.AddNode(right); return(exp); }