Reduce indentation in ProjectXMLParser.
Whitespace changes interfere with merges, so this change must be applied manually first.
This commit is contained in:
@@ -990,9 +990,8 @@ class ProjectXMLParser extends HXProject
|
||||
{
|
||||
for (element in xml.elements)
|
||||
{
|
||||
var isValid = isValidElement(element, section);
|
||||
if (isValid)
|
||||
{
|
||||
if (!isValidElement(element, section)) continue;
|
||||
|
||||
switch (element.name)
|
||||
{
|
||||
case "set":
|
||||
@@ -1452,13 +1451,10 @@ class ProjectXMLParser extends HXProject
|
||||
|
||||
for (childElement in element.elements)
|
||||
{
|
||||
var isValid = isValidElement(childElement, "");
|
||||
if (!isValidElement(childElement, "")) continue;
|
||||
|
||||
if (isValid)
|
||||
if (childElement.name == "imageset")
|
||||
{
|
||||
switch (childElement.name)
|
||||
{
|
||||
case "imageset":
|
||||
var name = substitute(childElement.att.name);
|
||||
var imageset = new LaunchStoryboard.ImageSet(name);
|
||||
|
||||
@@ -1490,7 +1486,6 @@ class ProjectXMLParser extends HXProject
|
||||
launchStoryboard.assets.push(imageset);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
case "icon":
|
||||
var path = "";
|
||||
@@ -1925,8 +1920,8 @@ class ProjectXMLParser extends HXProject
|
||||
case "ios":
|
||||
// deprecated
|
||||
|
||||
if (target == Platform.IOS)
|
||||
{
|
||||
if (target != Platform.IOS) continue;
|
||||
|
||||
if (element.has.deployment)
|
||||
{
|
||||
var deployment = Std.parseFloat(substitute(element.att.deployment));
|
||||
@@ -1974,13 +1969,12 @@ class ProjectXMLParser extends HXProject
|
||||
{
|
||||
config.push("ios.linker-flags", substitute(element.att.resolve("linker-flags")));
|
||||
}
|
||||
}
|
||||
|
||||
case "tvos":
|
||||
// deprecated
|
||||
|
||||
if (target == Platform.TVOS)
|
||||
{
|
||||
if (target != Platform.TVOS) continue;
|
||||
|
||||
if (element.has.deployment)
|
||||
{
|
||||
var deployment = Std.parseFloat(substitute(element.att.deployment));
|
||||
@@ -2019,7 +2013,6 @@ class ProjectXMLParser extends HXProject
|
||||
{
|
||||
config.push("tvos.linker-flags", substitute(element.att.resolve("linker-flags")));
|
||||
}
|
||||
}
|
||||
|
||||
case "config":
|
||||
config.parse(element, substitute);
|
||||
@@ -2038,7 +2031,6 @@ class ProjectXMLParser extends HXProject
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private function parseWindowElement(element:Access):Void
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user