module analysis::typepal::FailMessage
rascal-0.40.16
typepal-0.14.8
Usage
import analysis::typepal::FailMessage;
Source code
http://github.com/usethesource/typepal/src/analysis/typepal/FailMessage.rsc
Dependencies
import Message;
import String;
import util::IDEServices;
data FailMessage
data FailMessage (list[CodeAction] fixes = [])
= fm_error(value src, str msg, list[value] args)
| fm_warning(value src, str msg, list[value] args)
| fm_info(value src, str msg, list[value] args)
;
function error
FailMessage error(value src, str msg, value args..., list[CodeAction] fixes=[])
function warning
FailMessage warning(value src, str msg, value args..., list[CodeAction] fixes=[])
function info
FailMessage info(value src, str msg, value args..., list[CodeAction] fixes=[])
function escapePercent
str escapePercent(str s)
function convert
FailMessage convert(m: error(str msg, loc at))
FailMessage convert(m: warning(str msg, loc at))
FailMessage convert(m:info(str msg, loc at))