[ALOY-184] Inspect <Require> tag's elements at compile time
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | High |
Status | Resolved |
Resolution | Fixed |
Resolution Date | 2012-08-24T13:27:22.000+0000 |
Affected Version/s | 2012 Sprint 17 |
Fix Version/s | 2012 Sprint 17, Release 3.0.0 |
Components | XML |
Labels | n/a |
Reporter | Tony Lukasavage |
Assignee | Unknown |
Created | 2012-08-16T07:52:30.000+0000 |
Updated | 2018-03-07T22:26:01.000+0000 |
Description
A developer originally asked if we could improve the parser to identify contained . See details here: https://github.com/appcelerator/alloy/issues/38
The bigger issue is that we need to be able to inspect _inside_ a tag to know what its top-level elements are, and if they abide by the rules of its parent. In the above example, We need to be able to inspect into the following so that we know it is actually a that belongs in the .
<Alloy>
<TabGroup>
<Require src="someTabView"/>
</TabGroup>
</Alloy>
This is only one use case. We'll need to do this to ensure that the first view in an Alloy app is a top-level view as well, since we assert that index.xml contains a Window, SplitWindow, or TabGroup.
index.xml
<Alloy>
<Require src="someWindowView"/>
</Alloy>
No comments