コード例 #1
0
 private static DiagnosticSeverity MapDiagnosticSeverity(ScriptFileMarkerLevel markerLevel)
 {
     return(markerLevel switch
     {
         ScriptFileMarkerLevel.Error => DiagnosticSeverity.Error,
         ScriptFileMarkerLevel.Warning => DiagnosticSeverity.Warning,
         ScriptFileMarkerLevel.Information => DiagnosticSeverity.Information,
         _ => DiagnosticSeverity.Error,
     });
コード例 #2
0
        private static DiagnosticSeverity MapDiagnosticSeverity(ScriptFileMarkerLevel markerLevel)
        {
            switch (markerLevel)
            {
            case ScriptFileMarkerLevel.Error:       return(DiagnosticSeverity.Error);

            case ScriptFileMarkerLevel.Warning:     return(DiagnosticSeverity.Warning);

            case ScriptFileMarkerLevel.Information: return(DiagnosticSeverity.Information);

            default:                                return(DiagnosticSeverity.Error);
            }
            ;
        }
コード例 #3
0
        private static DiagnosticSeverity MapDiagnosticSeverity(ScriptFileMarkerLevel markerLevel)
        {
            switch (markerLevel)
            {
                case ScriptFileMarkerLevel.Error:
                    return DiagnosticSeverity.Error;

                case ScriptFileMarkerLevel.Warning:
                    return DiagnosticSeverity.Warning;

                case ScriptFileMarkerLevel.Information:
                    return DiagnosticSeverity.Information;

                default:
                    return DiagnosticSeverity.Error;
            }
        }