identifier method
Writes an identifier, escaping it if necessary.
Implementation
void identifier(String identifier,
{bool spaceBefore = true, bool spaceAfter = true}) {
if (isKeyword(identifier) || _notAKeywordRegex.hasMatch(identifier)) {
identifier = escapeIdentifier(identifier);
}
symbol(identifier, spaceBefore: spaceBefore, spaceAfter: spaceAfter);
}