"body", new ParseTreeNodeContainer(b.children()));
handlers.add(new EventHandler(attr.env, handler));
handlerCache.put(value, handlerFnName);
}
FunctionConstructor eventAdapter
= (FunctionConstructor) QuasiBuilder.substV(
""
+ "(/*@synthetic*/ function (event) {"
+ " return /*@synthetic*/ (___.plugin_dispatchEvent___("
+ " /*@synthetic*/this, event, "
+ " ___./*@synthetic*/getId(IMPORTS___), @tail));"
+ "})",
"tail", new Reference(SyntheticNodes.s(
new Identifier(pos, handlerFnName))));
eventAdapter.setFilePosition(pos);
eventAdapter.getAttributes().set(HANDLER_NAME, handlerFnName);
dynamicValue = eventAdapter;
break;
case STYLE:
CssTree.DeclarationGroup decls = styleFromAttrib(attr);
if (decls == null || decls.children().isEmpty()) {