Listener variable declarations
Listener variable values are references to listeners and cannot be initialized in the way other variables can. Instead, you must use the on statement or from statement to assign a value to a listener variable.
ListenerDeclaration
Rule component
The Identifier becomes the listener variable’s name.
Example
listener l;