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