private static DiagnosticSeverity MapDiagnosticSeverity(ScriptFileMarkerLevel markerLevel) { return(markerLevel switch { ScriptFileMarkerLevel.Error => DiagnosticSeverity.Error, ScriptFileMarkerLevel.Warning => DiagnosticSeverity.Warning, ScriptFileMarkerLevel.Information => DiagnosticSeverity.Information, _ => DiagnosticSeverity.Error, });
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); } ; }
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; } }