public ConstantConditionalOperator(ConstantExpression condition, ConstantExpression trueExpr, ConstantExpression falseExpr) { if (condition == null) throw new ArgumentNullException("condition"); if (trueExpr == null) throw new ArgumentNullException("trueExpr"); if (falseExpr == null) throw new ArgumentNullException("falseExpr"); this.condition = condition; this.trueExpr = trueExpr; this.falseExpr = falseExpr; }
void ISupportsInterning.PrepareForInterning(IInterningProvider provider) { condition = provider.Intern(condition); trueExpr = provider.Intern(trueExpr); falseExpr = provider.Intern(falseExpr); }
public ConstantBinaryOperator(ConstantExpression left, BinaryOperatorType operatorType, ConstantExpression right) { if (left == null) throw new ArgumentNullException("left"); if (right == null) throw new ArgumentNullException("right"); this.left = left; this.operatorType = operatorType; this.right = right; }
void ISupportsInterning.PrepareForInterning(IInterningProvider provider) { left = provider.Intern(left); right = provider.Intern(right); }
public ConstantUnaryOperator(UnaryOperatorType operatorType, ConstantExpression expression) { if (expression == null) throw new ArgumentNullException("expression"); this.operatorType = operatorType; this.expression = expression; }
void ISupportsInterning.PrepareForInterning(IInterningProvider provider) { expression = provider.Intern(expression); }
public ConstantCheckedExpression(bool checkForOverflow, ConstantExpression expression) { if (expression == null) throw new ArgumentNullException("expression"); this.checkForOverflow = checkForOverflow; this.expression = expression; }
void ISupportsInterning.PrepareForInterning(IInterningProvider provider) { targetType = provider.Intern(targetType); targetExpression = provider.Intern(targetExpression); memberName = provider.Intern(memberName); typeArguments = provider.InternList(typeArguments); }
public ConstantMemberReference(ConstantExpression targetExpression, string memberName, IList<ITypeReference> typeArguments = null) { if (targetExpression == null) throw new ArgumentNullException("targetExpression"); if (memberName == null) throw new ArgumentNullException("memberName"); this.targetExpression = targetExpression; this.memberName = memberName; this.typeArguments = typeArguments ?? EmptyList<ITypeReference>.Instance; }
void ISupportsInterning.PrepareForInterning(IInterningProvider provider) { targetType = provider.Intern(targetType); expression = provider.Intern(expression); }
public ConstantCast(ITypeReference targetType, ConstantExpression expression) { if (targetType == null) throw new ArgumentNullException("targetType"); if (expression == null) throw new ArgumentNullException("expression"); this.targetType = targetType; this.expression = expression; }