public ASMethod getGlobalFunction() { ASPackage pkg = getPackage(); if (pkg == null) { return null; } return pkg.getGlobalFunction(); }