moveUp(false, true);
}
else if (node instanceof IMXMLStateNode)
{
IMXMLStateNode stateNode = (IMXMLStateNode)node;
String name = stateNode.getStateName();
if (name != null)
{
MXMLDescriptorSpecifier stateName = new MXMLDescriptorSpecifier();
stateName.isProperty = true;
stateName.id = id;
stateName.name = "name";
stateName.value = ASEmitterTokens.SINGLE_QUOTE.getToken() + name + ASEmitterTokens.SINGLE_QUOTE.getToken();
stateName.parent = currentInstance;
currentInstance.propertySpecifiers.add(stateName);
}
MXMLDescriptorSpecifier overrides = new MXMLDescriptorSpecifier();
overrides.isProperty = true;
overrides.hasArray = true;
overrides.id = id;
overrides.name = "overrides";
overrides.parent = currentInstance;
currentInstance.propertySpecifiers.add(overrides);
moveDown(false, null, overrides);
IMXMLClassDefinitionNode classDefinitionNode = stateNode.getClassDefinitionNode();
List<IMXMLNode> snodes = classDefinitionNode.getNodesDependentOnState(stateNode.getStateName());
if (snodes != null)
{
for (int i=snodes.size()-1; i>=0; --i)
{
IMXMLNode inode = snodes.get(i);