File tree Expand file tree Collapse file tree 1 file changed +1
-21
lines changed
Sources/SwiftOperatorPrecedence Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -42,28 +42,8 @@ extension OperatorPrecedenceError : DiagnosticMessage {
42
42
}
43
43
}
44
44
45
- /// A string representation of each case.
46
- private var diagnosticCaseID : String {
47
- switch self {
48
- case . incomparableOperators:
49
- return " incomparable_operators "
50
-
51
- case . operatorAlreadyExists:
52
- return " operator_already_exists "
53
-
54
- case . missingOperator:
55
- return " missing_operator "
56
-
57
- case . missingGroup:
58
- return " missing_group "
59
-
60
- case . groupAlreadyExists:
61
- return " group_already_exists "
62
- }
63
- }
64
-
65
45
public var diagnosticID : MessageID {
66
- MessageID ( domain: " SwiftOperatorPrecedence " , id: diagnosticCaseID )
46
+ MessageID ( domain: " SwiftOperatorPrecedence " , id: " \( self ) " )
67
47
}
68
48
}
69
49
You can’t perform that action at this time.
0 commit comments