tokenId method
Given a Token, construct a lua identifier stub.
If prefix is non null, then the stub will have that prefix.
Implementation
String tokenId(Token token, {String? prefix}) {
final id = 'id${lineTag(token)}';
if (prefix == null) {
return id;
}
return '${prefix}_$id';
}