Bug 399178 - [bug] Outline is not working for otypes
Summary: [bug] Outline is not working for otypes
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: VJET (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Justin Early CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-26 14:32 EST by Justin Early CLA
Modified: 2017-04-11 15:12 EDT (History)
1 user (show)

See Also:


Attachments
outline view not syncing (56.90 KB, image/png)
2013-01-26 14:35 EST, Justin Early CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Early CLA 2013-01-26 14:32:39 EST
Given an otype the defs are not linked when you click on the outline

ie given this otype

vjo.otype('bugs.FlightOptions') //< public
.defs({
	firstClass: null, //< public boolean?
	bonusMiles: null, //< public Number?
	captain:    null //< public String
})
.endType();


open the outline view / already in the default vjet perspective.

select firstClass in outline and nothing is selected in editor. 

Expected that firstClass is high lighted
Comment 1 Justin Early CLA 2013-01-26 14:35:04 EST
This looks like a problem with Jst Node JstProperty has a null jstsource member
Comment 2 Justin Early CLA 2013-01-26 14:35:53 EST
Created attachment 226164 [details]
outline view not syncing
Comment 3 Justin Early CLA 2013-02-21 12:26:46 EST
Here is example otype...

vjo.otype('aaa.Foo') //< public

.defs({
	myobj:{firstClass: null, //< public boolean?
	bonusMiles: null, //< public Number?
	captain: null //< public String
	}
})
.endType();



Structure should be

JstType
	JstType
		JstProperty:firstClass[52,67]
			JstName <---- no jst source offsets here as expected
			SimpleLiteral[64,67]
			JstTypeReference
		JstProperty:bonusMiles[92,107]
			JstName
			SimpleLiteral[104,107]
			JstTypeReference
		JstProperty:captain[131,143]
			JstName
			SimpleLiteral[140,143]
			JstTypeReference
		JstConstructor:constructs
			JstName
			JstArg
			JstArg
			JstArg
	JstProperty:myobj
		JstName
		JstTypeReference
	JstBlock