Commit 8db070e
[messages] Make some internal classes abstract.
Makes the classes `DiagnosticCodeImpl` and `LintCodeWithExpectedTypes`
abstract. These classes are never concretely instantiated (only
derived classes are), and they are private to the analyzer and linter
so they should not be concretely instantiated by clients either.
Making these classes abstract makes the class hierarchy for
diagnostics easier to reason about.
Change-Id: I6a6a696489d5a33dabcba48988a8473f0e819a85
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/460860
Commit-Queue: Paul Berry <paulberry@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>1 parent 1aba73d commit 8db070e
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
| 320 | + | |
321 | 321 | | |
322 | 322 | | |
323 | 323 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
0 commit comments