@wpkernel/wp-json-ast v0.12.6-beta.3
@wpkernel/wp-json-ast / buildDocCommentAttributes
Function: buildDocCommentAttributes()
ts
function buildDocCommentAttributes(lines): Readonly<Record<string, unknown>> | undefined;Builds doc comment attributes from a list of lines.
Parameters
lines
readonly (string | undefined)[]
The lines to add to the doc comment.
Returns
Readonly<Record<string, unknown>> | undefined
PHP attributes, or undefined if there are no lines.
