else if ((type == WatcherType.STATIC_PROPERTY) || (type == WatcherType.PROPERTY))
{
writeNewline((type == WatcherType.STATIC_PROPERTY ? "1" : "2") +
ASEmitterTokens.COMMA.getToken());
PropertyWatcherInfo propertyWatcherInfo = (PropertyWatcherInfo)watcherInfoBase;
boolean makeStaticWatcher = (watcherInfoBase.getType() == WatcherType.STATIC_PROPERTY);
// round up the getter function for the watcher, or null if we don't need one
MethodInfo propertyGetterFunction = null;
if (watcherInfoBase.isRoot && !makeStaticWatcher)
{
// TODO: figure out what this looks like
// propertyGetterFunction = this.propertyGetter;
// assert propertyGetterFunction != null;
}
else if (watcherInfoBase.isRoot && makeStaticWatcher)
{
// TODO: implement getter func for static watcher.
}
writeNewline(ASEmitterTokens.DOUBLE_QUOTE.getToken() + propertyWatcherInfo.getPropertyName() +
ASEmitterTokens.DOUBLE_QUOTE.getToken() + ASEmitterTokens.COMMA.getToken());
outputEventNames(propertyWatcherInfo.getEventNames());
outputBindings(propertyWatcherInfo.getBindings());
if (propertyGetterFunction == null)
writeNewline("null" + ASEmitterTokens.COMMA.getToken()); // null is valid
if (type == WatcherType.STATIC_PROPERTY)
{
StaticPropertyWatcherInfo pwinfo = (StaticPropertyWatcherInfo)watcherInfoBase;