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