Bug 465645 - [ALF] Syntax tree issue when doing this.listclassmember.add
Summary: [ALF] Syntax tree issue when doing this.listclassmember.add
Status: UNCONFIRMED
Alias: None
Product: Papyrus
Classification: Modeling
Component: Core (show other bugs)
Version: 1.1.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-28 03:29 EDT by Thomas Åkerlund CLA
Modified: 2015-04-28 03:29 EDT (History)
0 users

See Also:


Attachments
Image displaying the issue. (144.10 KB, image/png)
2015-04-28 03:29 EDT, Thomas Åkerlund CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Åkerlund CLA 2015-04-28 03:29:16 EDT
Created attachment 252825 [details]
Image displaying the issue.

The issue is seen as an empty line in the syntax tree when the described conditions are met.

The issue occurs on any position in the syntax tree where:
1. The add method of a List is invoked.
2. The list is defined as a class member.
3. The List object is accessed using the this operator.

See the attached screenshot as an example.

Code example:
public class OrderManager {
	private orders: List<Order>;
		
	@Create public OrderManager() {
		orders = new List<Order>();
	}
		
	public addOrder(in order: Order) {
		// This is where the issue is shown in the syntax tree.
		this.orders.add(order); 
	}
}