aboutsummaryrefslogtreecommitdiff
path: root/node_modules/yaml/browser/dist/compose/resolve-block-seq.js
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-06-04 08:51:19 +0200
committerMinteck <contact@minteck.org>2022-06-04 08:51:19 +0200
commitb22f6770c8bd084d66950655203c61dd701b3d90 (patch)
tree873d7fb19584ec2709b95cc1ca05a1fc7cfd0fc4 /node_modules/yaml/browser/dist/compose/resolve-block-seq.js
parent383285ecd5292bf9a825e05904955b937de84cc9 (diff)
downloadequestriadb-b22f6770c8bd084d66950655203c61dd701b3d90.tar.gz
equestriadb-b22f6770c8bd084d66950655203c61dd701b3d90.tar.bz2
equestriadb-b22f6770c8bd084d66950655203c61dd701b3d90.zip
Remove node_modules
Diffstat (limited to 'node_modules/yaml/browser/dist/compose/resolve-block-seq.js')
-rw-r--r--node_modules/yaml/browser/dist/compose/resolve-block-seq.js45
1 files changed, 0 insertions, 45 deletions
diff --git a/node_modules/yaml/browser/dist/compose/resolve-block-seq.js b/node_modules/yaml/browser/dist/compose/resolve-block-seq.js
deleted file mode 100644
index d2c2d9e..0000000
--- a/node_modules/yaml/browser/dist/compose/resolve-block-seq.js
+++ /dev/null
@@ -1,45 +0,0 @@
-import { YAMLSeq } from '../nodes/YAMLSeq.js';
-import { resolveProps } from './resolve-props.js';
-import { flowIndentCheck } from './util-flow-indent-check.js';
-
-function resolveBlockSeq({ composeNode, composeEmptyNode }, ctx, bs, onError) {
- const seq = new YAMLSeq(ctx.schema);
- if (ctx.atRoot)
- ctx.atRoot = false;
- let offset = bs.offset;
- for (const { start, value } of bs.items) {
- const props = resolveProps(start, {
- indicator: 'seq-item-ind',
- next: value,
- offset,
- onError,
- startOnNewline: true
- });
- offset = props.end;
- if (!props.found) {
- if (props.anchor || props.tag || value) {
- if (value && value.type === 'block-seq')
- onError(offset, 'BAD_INDENT', 'All sequence items must start at the same column');
- else
- onError(offset, 'MISSING_CHAR', 'Sequence item without - indicator');
- }
- else {
- // TODO: assert being at last item?
- if (props.comment)
- seq.comment = props.comment;
- continue;
- }
- }
- const node = value
- ? composeNode(ctx, value, props, onError)
- : composeEmptyNode(ctx, offset, start, null, props, onError);
- if (ctx.schema.compat)
- flowIndentCheck(bs.indent, value, onError);
- offset = node.range[2];
- seq.items.push(node);
- }
- seq.range = [bs.offset, offset, offset];
- return seq;
-}
-
-export { resolveBlockSeq };