public bool IsWarningSuppressed(int warningCode, MessageOrigin origin) { if (Suppressions == null) { return(false); } return(Suppressions.IsSuppressed(warningCode, origin, out _)); }
public bool IsWarningSuppressed(int warningCode, MessageOrigin origin) { // This warning was turned off by --nowarn. if (NoWarn.Contains(warningCode)) { return(true); } if (Suppressions == null) { return(false); } return(Suppressions.IsSuppressed(warningCode, origin, out _)); }