~technomancy/fennel#225: 
Expose warnings to compiler API

I want be able to report warning diagnostics in fennel-ls. Right now fennel doesn't have a lot of warnings, but it would be good to get a warning hook in place.

Specifically I'm interested in receiving hooks tor #194 as that's probably going to end up being a warning, not an error.

Status
RESOLVED IMPLEMENTED
Submitter
~xerool
Assigned to
No-one
Submitted
11 months ago
Updated
8 months ago
Labels
enhancement

~technomancy 9 months ago

One potential solution is to accept a warn function in the compiler opts table and use that in place of utlis.warn if present.

~technomancy REPORTED IMPLEMENTED 8 months ago

I've pushed an implementation of this in cdb222c.

Register here or Log in to comment, or comment via email.