}
void initializeDefaultProperty(MXMLTreeBuilder builder, IVariableDefinition defaultPropertyDefinition,
List<IMXMLUnitData> contentUnits)
{
FlexProject project = builder.getProject();
assert (contentUnits.isEmpty()) ||
(!builder.getFileScope().isScriptTag(contentUnits.get(0))) : "Script tags should not start a default property!";
assert (contentUnits.isEmpty()) ||
(!builder.getFileScope().isScriptTag(contentUnits.get(contentUnits.size() - 1))) : "Trailing script tags should be removed from default property content units!";
// Set the location of the default property node
// to span the tags that specify the default property value.
setLocation(builder, contentUnits);
String propertyTypeName = getPropertyTypeName(builder);
// If the property is of type IDeferredInstance or ITransientDeferredInstance,
// create an implicit MXMLDeferredInstanceNode.
if (propertyTypeName.equals(project.getDeferredInstanceInterface()) ||
propertyTypeName.equals(project.getTransientDeferredInstanceInterface()))
{
instanceNode = new MXMLDeferredInstanceNode(this);
((MXMLDeferredInstanceNode)instanceNode).initializeDefaultProperty(
builder, defaultPropertyDefinition, contentUnits);
}