codespan icon indicating copy to clipboard operation
codespan copied to clipboard

Default fileid

Open Johann150 opened this issue 4 years ago • 0 comments

Resolves #229.

  • add with_file methods to Label and Diagnostic as suggested in the original comment in the issue
  • add new constructors to Label: new_anon, primary_anon and secondary_anon These work like their similarly named cousins, but without requiring a file id.

There is probably a better name for the new Label constructors, I could only come up with adding _anon to the end of the existing ones, although these longer names don't quite fit the theme of making things easier IMHO. Maybe @aweary has a better idea?

Johann150 avatar Mar 01 '21 20:03 Johann150