import * as core from '@actions/core';
export class GitHubAnnotationCapability {
    emit(op) {
        const properties = {};
        if (op.location) {
            properties.file = op.location.file;
            if (op.location.line) {
                properties.startLine = op.location.line;
                properties.endLine = op.location.line;
            }
            if (op.location.col) {
                properties.startColumn = op.location.col;
            }
        }
        switch (op.level) {
            case 'error':
                core.error(op.message, properties);
                break;
            case 'warning':
                core.warning(op.message, properties);
                break;
            case 'info':
                core.notice(op.message, properties);
                break;
        }
    }
}
//# sourceMappingURL=annotations.js.map