Bug 9040 - DOM/AST: why is the left hand side of an assignment an expression
Summary: DOM/AST: why is the left hand side of an assignment an expression
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M3   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-04 11:34 EST by Dirk Baeumer CLA
Modified: 2002-02-11 04:52 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Baeumer CLA 2002-02-04 11:34:02 EST
Why is the left hand side of an assignment of type expression and not of type 
Name. I can't come up with a case where the left hand side can be anything else 
than an Name. This would make treating assignment easier.
Comment 1 Olivier Thomann CLA 2002-02-04 11:42:02 EST
I'll see with Jim why he chooses Expression instead of Name. Keep you inform.
Comment 2 Jim des Rivieres CLA 2002-02-04 13:30:11 EST
JLS2 15.26 - The left hand side is a name, field access, or array access.

Name cannot cover array access, although it can the other 2. That's why its 
Expression.
Comment 3 Dirk Baeumer CLA 2002-02-05 11:12:24 EST
OK for me to close
Comment 4 Olivier Thomann CLA 2002-02-05 11:24:24 EST
Close.