public ASType getType() {
   ASPackage pkg = getPackage();
   if (pkg == null) {
     return null;
   }
   return pkg.getType();
 }
 public ASMethod getGlobalFunction() {
   ASPackage pkg = getPackage();
   if (pkg == null) {
     return null;
   }
   return pkg.getGlobalFunction();
 }
 public ASField getGlobalField() {
   ASPackage pkg = getPackage();
   if (pkg == null) {
     return null;
   }
   return pkg.getGlobalField();
 }
 public List<ScriptElement> getAllMembers() {
   ASPackage pkg = getPackage();
   if (pkg == null) {
     return null;
   }
   return pkg.getAllMembers();
 }