blob: fb1fb5a4e6e01a7139900eeb763fbc0677d9c882 [file] [log] [blame]
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
library fasta.severity;
enum Severity {
context,
error,
errorLegacyWarning,
internalProblem,
nit,
warning,
}
const Map<String, String> severityEnumNames = const <String, String>{
'CONTEXT': 'context',
'ERROR': 'error',
'ERROR_LEGACY_WARNING': 'errorLegacyWarning',
'INTERNAL_PROBLEM': 'internalProblem',
'NIT': 'nit',
'WARNING': 'warning',
};
const Map<String, Severity> severityEnumValues = const <String, Severity>{
'CONTEXT': Severity.context,
'ERROR': Severity.error,
'ERROR_LEGACY_WARNING': Severity.errorLegacyWarning,
'INTERNAL_PROBLEM': Severity.internalProblem,
'NIT': Severity.nit,
'WARNING': Severity.warning,
};