Titanium JIRA Archive
Alloy (ALOY)

[ALOY-184] Inspect <Require> tag's elements at compile time

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusResolved
ResolutionFixed
Resolution Date2012-08-24T13:27:22.000+0000
Affected Version/s2012 Sprint 17
Fix Version/s2012 Sprint 17, Release 3.0.0
ComponentsXML
Labelsn/a
ReporterTony Lukasavage
AssigneeUnknown
Created2012-08-16T07:52:30.000+0000
Updated2018-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>

Comments

No comments

JSON Source