blockly > CodeGenerator > addReservedWords

CodeGenerator.addReservedWords() method

Add one or more words to the list of reserved words for this language.

Signature:

addReservedWords(words: string): void;

Parameters

Parameter Type Description
words string Comma-separated list of words to add to the list. No spaces. Duplicates are ok.

Returns:

void