An entryPoint parser instruction must be after the attributes of the function to be marked as entryPoint and before the function definition.
entryPoint
Adjust the position of the parser instruction.