EdgeAIG/opencode / .opencode /node_modules /yaml /dist /compose /util-flow-indent-check.js
EdgeAIG's picture
download
raw
547 Bytes
'use strict';
var utilContainsNewline = require('./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 === '}') &&
utilContainsNewline.containsNewline(fc)) {
const msg = 'Flow end indicator should be more indented than parent';
onError(end, 'BAD_INDENT', msg, true);
}
}
}
exports.flowIndentCheck = flowIndentCheck;

Xet Storage Details

Size:
547 Bytes
·
Xet hash:
486a9576b2e082ffab86e6fc9080afa2d3ceda04692a8f496aaa751afc7d64ec

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