SpacemanDMM icon indicating copy to clipboard operation
SpacemanDMM copied to clipboard

Add diagnostics for mismatched argument type and count

Open out-of-phaze opened this issue 1 year ago • 0 comments

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.

out-of-phaze avatar Aug 23 '22 21:08 out-of-phaze