blockly > CodeGenerator > scrubNakedValue
CodeGenerator.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.