Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317823 - AST: ASTCaseConstructNode structure
Summary: AST: ASTCaseConstructNode structure
Status: ASSIGNED
Alias: None
Product: PTP
Classification: Tools
Component: Photran.For Internal Use (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P4 normal (vote)
Target Milestone: ---   Edit
Assignee: Photran Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-24 10:08 EDT by Matthew Fotzler CLA
Modified: 2012-03-14 16:19 EDT (History)
1 user (show)

See Also:


Attachments
proposed patch (6.64 KB, patch)
2010-10-15 15:50 EDT, Matthew Fotzler CLA
com-eclipse-dot-org: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Fotzler CLA 2010-06-24 10:08:29 EDT
Build Identifier: 

The case statement is not structured recursively.  It would be nice for the code inside of the case statement to be stored in the ASTCaseStmtNode, accessible by getBody() or something.

Reproducible: Always
Comment 1 Matthew Fotzler CLA 2010-06-24 10:14:08 EDT
Also, we will need to change the Control Flow Graph code once this is fixed.
Comment 2 Matthew Fotzler CLA 2010-10-15 15:50:48 EDT
Created attachment 181011 [details]
proposed patch

This patch alters the ASTCaseStmtNode to add a body that contains the program statements inside the case statement.  The SelectCaseRestructurer visits all case statements and modifies them to use this added body.
Comment 3 Jeffrey Overbey CLA 2010-10-15 16:14:21 EDT
Thanks.  Can you please confirm that

1. you wrote 100% of the code without incorporating content from elsewhere or relying on the intellectual property of others,

2. you have the right to contribute the code to Eclipse, and

3. you have included the EPL license header in all source files?
Comment 4 Matthew Fotzler CLA 2010-10-15 16:21:45 EDT
Yes, I wrote 100% of the code without incorporating content from elsewhere or relying on the intellectual property of others, I have the right to contribute the code to Eclipse, and I have included the EPL license header in all source files.