@wpkernel/php-json-ast v0.12.6-beta.3
@wpkernel/php-json-ast / buildComment
Function: buildComment()
ts
function buildComment(text, location): PhpComment;Builds a generic PHP comment node.
Parameters
text
string
The text content of the comment.
location
PhpCommentLocation = {}
Optional location information for the comment.
Returns
A PhpComment node.
