function mergeStatics(tree = {}) {
  let statics = {};

  Object.values(tree.modules).forEach(mod => {
    const localStatics = mod.ast.meta.AST_METADATA.statics;
    Object.assign(statics, localStatics);
  });

  return statics;
}
Walt build tools

here be dragons

@author Arthur Buldauskas arthurbuldauskas@gmail.com