Description
The code is not generated correctly if there are multiple events with the same hook function name.
To Reproduce
Consider two events RoleEvent.FollowerFinishedEvent and RoleEvent.FollowerHireEvent placed in the workspace.
Expected behavior
Code is generated correctly.
Actual behavior
The following code is generated, function name duplicating.
function role(event) {
}
function role(event) {
}