Stay organized with collections Save and categorize content based on your preferences.

blockly > Generator > scrubNakedValue

Generator.scrubNakedValue() method

Naked values are top-level blocks with outputs that aren't plugged into anything. Subclasses may override this, e.g. if their language does not allow naked values.

Signature:

scrubNakedValue(line: string): string;

Parameters

Parameter Type Description
line string Line of generated code.

Returns:

string

Legal line of code.