Spark.Emit.HLSL.EmitContextHLSL.ActionForHLSLDiagnostic C# (CSharp) Method

ActionForHLSLDiagnostic() private method

private ActionForHLSLDiagnostic ( string errorCodeStr, string lineErrorMask ) : DiagnosticAction
errorCodeStr string
lineErrorMask string
return DiagnosticAction
        private DiagnosticAction ActionForHLSLDiagnostic(
            string errorCodeStr,
            string[] lineErrorMask)
        {
            if (lineErrorMask.Contains(errorCodeStr.Trim()))
            {
                return DiagnosticAction.Suppress;
            }

            switch (errorCodeStr)
            {
                default:
                    return DiagnosticAction.DumpAndReport;
            }
        }