提交 40638404 编写于 作者: C Cyrus Najmabadi

Simplify

上级 b2fed8fe
......@@ -10,8 +10,6 @@ public static bool IsNumericLiteral(this IOperation operation)
=> operation.Kind == OperationKind.Literal && operation.Type.IsNumericType();
public static bool IsNullLiteral(this IOperation operand)
=> operand is ILiteralOperation literal &&
literal.ConstantValue.HasValue &&
literal.ConstantValue.Value == null;
=> operand is ILiteralOperation { ConstantValue: { HasValue: true, Value: null } };
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册