Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 321310

Summary: Variable loss with sub-scopes
Product: [Modeling] Acceleo Reporter: Laurent Goubet <laurent.goubet>
Component: CoreAssignee: Project Inbox <acceleo-inbox>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 CC: stephane.begaudeau
Version: 3.0.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Laurent Goubet CLA 2010-07-30 05:28:40 EDT
Something like this :

[template public generate(l : Library)]
  [for (l : Book | l.books)]
  [/for]
  [l.books/]
[/template]

Should compile ... yet the "[l.books/]" expression cannot compile because it "doesn't recognize the l variable".
Comment 1 Stephane Begaudeau CLA 2011-04-06 07:49:46 EDT
The Acceleo Parser will now have the same variable mechanism as the engine with a deque to handle the different variables in the different scopes during the parsing. Several unit tests have also been contributed to ensure the non regression. The fix has been contributed on HEAD and it will be available in Acceleo 3.1.0M7