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

Function text_isEmpty

packages/blockly/generators/dart/text.ts:70–78  ·  view source on GitHub ↗
(
  block: Block,
  generator: DartGenerator,
)

Source from the content-addressed store, hash-verified

68}
69
70export function text_isEmpty(
71 block: Block,
72 generator: DartGenerator,
73): [string, Order] {
74 // Is the string null or array empty?
75 const text =
76 generator.valueToCode(block, 'VALUE', Order.UNARY_POSTFIX) || "''";
77 return [text + '.isEmpty', Order.UNARY_POSTFIX];
78}
79
80export function text_indexOf(
81 block: Block,

Callers

nothing calls this directly

Calls 1

valueToCodeMethod · 0.80

Tested by

no test coverage detected