[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/js/dist/ -> block-serialization-default-parser.js (summary)

Matches block comment delimiters

File Size: 407 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 9 functions

  Block()
  Freeform()
  Frame()
  proceed()
  parseJSON()
  nextToken()
  addFreeform()
  addInnerBlock()
  addBlockFromStack()

Functions
Functions that are not part of a class:

Block(blockName, attrs, innerBlocks, innerHTML, innerContent)   X-Ref
No description

Freeform(innerHTML)   X-Ref
No description

Frame(block, tokenStart, tokenLength, prevOffset, leadingHtmlStart)   X-Ref
No description

proceed()   X-Ref
No description

parseJSON(input)   X-Ref
Parse JSON if valid, otherwise return null

Note that JSON coming from the block comment
delimiters is constrained to be an object
and cannot be things like `true` or `null`

return: {Object|null} parsed JSON if valid
param: {string} input JSON input string to parse

nextToken()   X-Ref
No description

addFreeform(rawLength)   X-Ref
No description

addInnerBlock(block, tokenStart, tokenLength, lastOffset)   X-Ref
No description

addBlockFromStack(endOffset)   X-Ref
No description



Generated: Thu Mar 28 01:00:02 2024 Cross-referenced by PHPXref 0.7.1