MCPcopy
hub / github.com/RaspberryPiFoundation/blockly / getCommentText

Method getCommentText

packages/blockly/core/block.ts:2335–2338  ·  view source on GitHub ↗

* Returns the comment on this block (or null if there is no comment). * * @returns Block's comment.

()

Source from the content-addressed store, hash-verified

2333 * @returns Block's comment.
2334 */
2335 getCommentText(): string | null {
2336 const comment = this.getIcon(IconType.COMMENT);
2337 return comment?.getText() ?? null;
2338 }
2339
2340 /**
2341 * Set this block's comment text.

Callers 12

allNestedCommentsMethod · 0.80
blockToDomFunction · 0.80
getCommentTextFunction · 0.80
block_test.jsFile · 0.80
comment_test.jsFile · 0.80
xml_test.jsFile · 0.80
scrub_Method · 0.80
scrub_Method · 0.80
scrub_Method · 0.80
scrub_Method · 0.80
scrub_Method · 0.80

Calls 2

getIconMethod · 0.95
getTextMethod · 0.65

Tested by

no test coverage detected