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

24 lines
429 B
JavaScript
Raw Normal View History

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