p5.js-web-editor/client/modules/IDE/actions/editorAccessibility.js
2016-08-11 14:09:59 -04:00

23 lines
421 B
JavaScript

import * as ActionTypes from '../../../constants';
export function updateLintMessage(severity, line, message) {
return {
type: ActionTypes.UPDATE_LINT_MESSAGE,
severity,
line,
message
};
}
export function clearLintMessage() {
return {
type: ActionTypes.CLEAR_LINT_MESSAGE
};
}
export function updateLineNumber(lineNo) {
return {
type: ActionTypes.UPDATE_LINENUMBER,
lineNo
};
}