p5.js-web-editor/client/modules/IDE/actions/editorAccessibility.js

24 lines
421 B
JavaScript
Raw Normal View History

import * as ActionTypes from '../../../constants';
2016-08-11 19:24:02 +02:00
export function updateLintMessage(severity, line, message) {
return {
2016-08-11 20:09:59 +02:00
type: ActionTypes.UPDATE_LINT_MESSAGE,
2016-08-11 19:24:02 +02:00
severity,
line,
message
};
}
export function clearLintMessage() {
return {
2016-08-11 20:09:59 +02:00
type: ActionTypes.CLEAR_LINT_MESSAGE
2016-08-11 19:24:02 +02:00
};
}
export function updateLineNumber(lineNo) {
return {
type: ActionTypes.UPDATE_LINENUMBER,
lineNo
};
}