@bscotch/gml-parser
Version:
A parser for GML (GameMaker Language) files for programmatic manipulation and analysis of GameMaker projects.
23 lines • 722 B
JavaScript
export class Diagnostic {
message;
location;
severity;
payload;
$tag = 'diagnostic';
constructor(message, location, severity = 'warning', payload) {
this.message = message;
this.location = location;
this.severity = severity;
this.payload = payload;
}
static warn(message, location, payload) {
return new Diagnostic(message, location, 'warning', payload);
}
static error(message, location, payload) {
return new Diagnostic(message, location, 'error', payload);
}
static info(message, location, payload) {
return new Diagnostic(message, location, 'info', payload);
}
}
//# sourceMappingURL=project.diagnostics.js.map