SpacemanDMM
SpacemanDMM copied to clipboard
Add diagnostics for mismatched argument type and count
I don't know what I'm doiiiing!
A hacky first attempt at adding two diagnostics:
-
override_changed_type
: Raised for procs whose non-keyword arguments don't match (subtype/supertype) the argument with the same index on the parent. -
override_fewer_arguments
: Raised for procs which have fewer non-keyword arguments than their parent. This is mainly useful for ensuring the langserver passes the arguments to later types, but can sometimes reveal issues linked with parent calls that manually specify arguments. (If I could have it report those, that'd be a dream.)
Also, it has a hacky override to get around #334.