EdgeAIG/opencode / .opencode /node_modules /yaml /browser /dist /compose /util-flow-indent-check.js
EdgeAIG's picture
download
raw
494 Bytes
import { containsNewline } from './util-contains-newline.js';
function flowIndentCheck(indent, fc, onError) {
if (fc?.type === 'flow-collection') {
const end = fc.end[0];
if (end.indent === indent &&
(end.source === ']' || end.source === '}') &&
containsNewline(fc)) {
const msg = 'Flow end indicator should be more indented than parent';
onError(end, 'BAD_INDENT', msg, true);
}
}
}
export { flowIndentCheck };

Xet Storage Details

Size:
494 Bytes
·
Xet hash:
e35b056d0d43762c5d76dbed891378a00898ac20897c4e7aef7aebe8800a376e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.