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

Bug 366742

Summary: Add ObjectExpression support in core and mof model
Product: z_Archived Reporter: Paul Harmon <pharmon>
Component: EDTAssignee: Project Inbox <edt.mofmodel-inbox>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Paul Harmon CLA 2011-12-14 13:59:39 EST
A new expression named ObjectExpression needs to be added to EDT. The syntax for this is:

ObjectExpression = { ObjectExpressionEntry* }
ObjectExpressionEntry =  ID : expression  | STRING: expression

For example:

myObject = {key1 : 123, "this is the second key" : "def"};


The type of this expression will be ANY.
Comment 1 Paul Harmon CLA 2011-12-14 14:12:02 EST
I have changed the following projects/files:



org.eclipse.edt.compiler
	AbstractASTExpressionVisitor
	AbstractASTNodeVisitor
	AbstractASTVisitor
	IASTVisitor
	NodeTypes
	ObjectExpression
	ObjectExpressionEntry
	Parser
	egl.cup
	DefaultBinder
	EGL2MofExpression

org.eclipse.edt.ide.core
	ErrorBaseParser
	ErrorNodeTypes
	error.cup

org.eclipse.edt.mof.egl
	expressions.egl
	IrFactoryBase (org.eclipse.edt.mof.egl)
	ObjectExpression
	ObjectExpressionEntry
	IRFactoryBase (org.eclipse.edt.mof.egl.impl)
	ObjectExpressionEntryImpl
	ObjectExpressionImpl
	egl.mofar
Comment 2 Lisa Lasher CLA 2012-03-30 18:34:51 EDT
close