private void WarnAboutConstantExpression(Expression node) { Warnings.Add(CompilerWarningFactory.ConstantExpression(node)); }
private BoolLiteralExpression GetFoldedValueTypeTest(Expression node, IType leftType, IType rightType) { Context.Warnings.Add(CompilerWarningFactory.ConstantExpression(node)); return(CodeBuilder.CreateBoolLiteral(rightType.IsAssignableFrom(leftType))); }