MCPcopy
hub / github.com/go-yaml/yaml / yaml_parser_fetch_flow_entry

Function yaml_parser_fetch_flow_entry

scannerc.go:1264–1286  ·  scannerc.go::yaml_parser_fetch_flow_entry

Produce the FLOW-ENTRY token.

(parser *yaml_parser_t)

Source from the content-addressed store, hash-verified

1262
1263// Produce the FLOW-ENTRY token.
1264func yaml_parser_fetch_flow_entry(parser *yaml_parser_t) bool {
1265 // Reset any potential simple keys on the current flow level.
1266 if !yaml_parser_remove_simple_key(parser) {
1267 return false
1268 }
1269
1270 // Simple keys are allowed after ','.
1271 parser.simple_key_allowed = true
1272
1273 // Consume the token.
1274 start_mark := parser.mark
1275 skip(parser)
1276 end_mark := parser.mark
1277
1278 // Create the FLOW-ENTRY token and append it to the queue.
1279 token := yaml_token_t{
1280 typ: yaml_FLOW_ENTRY_TOKEN,
1281 start_mark: start_mark,
1282 end_mark: end_mark,
1283 }
1284 yaml_insert_token(parser, -1, &token)
1285 return true
1286}
1287
1288// Produce the BLOCK-ENTRY token.
1289func yaml_parser_fetch_block_entry(parser *yaml_parser_t) bool {

Callers 1

Calls 3

skipFunction · 0.85
yaml_insert_tokenFunction · 0.85

Tested by

no test coverage detected