quick-lint-js
quick-lint-js copied to clipboard
12$: Improve reporting of wrongly ordered or duplicated class member modifiers
class C {
async static f() {} // error
static public g() {} // no error, but should
async async async async h() {} // no error, but should
readonly static x; // (TypeScript) error
}
parse_and_visit_class_or_interface_member
now has bump_vector<modifier, ...>
which we can easily analyze to detect misordered and duplicate modifiers. Our current analysis is incomplete.
abstract
is a modifier we don't have any ordering diagnostic for.