// Add an expression dependency on the event type.
// It doesn't need to be a signature dependency
// because autogenerated event handlers are inaccessible;
// they're either in a special private MXML namespace
// or they're public but have an 'illegal' name.
typeRef.resolve(builder.getProject(), scope, DependencyType.EXPRESSION, true);
// Make the statements inside the event handler the children of this node.
for (ScopedBlockNode script : scripts)
{
int n = script.getChildCount();