Function named "Source" seems to cause issues which are not communicated in a clear way.
Steps to reproduce:
- Create InterfaceView with an SDL function called Source.
- Try to edit the function.
What happens:
- The following error message is presented to the user.
InterfaceView.aadl:8:23: parsing Package_Name, list is empty
InterfaceView.aadl:8:31: parsing Import_Declaration, unexpected token ';'
InterfaceView.aadl:8:31: parsing Name_Visibility_Declaration, unexpected token ';'
InterfaceView.aadl:12:39: parsing Parameter, token ';' is expected, found token '-'
InterfaceView.aadl:11:01: parsing Features, list is empty
InterfaceView.aadl:26:37: parsing Parameter, token ';' is expected, found token '-'
InterfaceView.aadl:25:01: parsing Features, list is empty
InterfaceView.aadl:50:65: parsing Subcomponent_Access_Classifier, an identifier is expected, found keyword 'source'
What is expected:
Clear and visible communication in the IDE that the "Source" is a reserved keyword. If possible, an average TASTE user should not be concerned with the pecularities of AADL, as it is hidden behind the scenes. Also, some keywords seem like good names, at least for demonstration/educational purposes.
This may also affect other keywords.