Пример #1
0
        public bool IsWarningSuppressed(int warningCode, MessageOrigin origin)
        {
            if (Suppressions == null)
            {
                return(false);
            }

            return(Suppressions.IsSuppressed(warningCode, origin, out _));
        }
Пример #2
0
        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 _));
        }