compiler/resolution/wrappers.cpp
//
// Return true if 'innerFn' is an initializer called within a _new wrapper or
// a default initializer.
//
Return true if 'innerFn' is an initializer called within a _new wrapper or
a default initializer.
Return true if ' innerFn ' is an initializer called within a _new wrapper or a default initializer .
static bool isNestedNewOrDefault(FnSymbol* innerFn, CallExpr* innerCall) {
  bool ret = false;
  if (FnSymbol* parentFn = toFnSymbol(innerCall->parentSymbol)) {
    if (innerFn->isInitializer()) {
      if (parentFn->hasFlag(FLAG_NEW_WRAPPER)) {
        ret = true;
      } else if (parentFn->isDefaultInit()) {
        ret = true;
      }
    }
  }
  return ret;
}
static bool isNestedNewOrDefault ( FnSymbol * innerFn , CallExpr * innerCall ) { bool ret = false ; if ( FnSymbol * parentFn = toFnSymbol ( innerCall -> parentSymbol ) ) { if ( innerFn -> isInitializer ( ) ) { if ( parentFn -> hasFlag ( FLAG_NEW_WRAPPER ) ) { ret = true ; } else if ( parentFn -> isDefaultInit ( ) ) { ret = true ; } } } return ret ; }
Return true if 'innerFn' is an initializer called within a _new wrapper or
a default initializer.
Return true if ' innerFn ' is an initializer called within a _new wrapper or a default initializer .
// Likely a super.init()