compiler/AST/foralls.cpp
//
// parser support
// These functions report a user error for an unexpected intent.
//
parser support
These functions report a user error for an unexpected intent.
parser support These functions report a user error for an unexpected intent .
static ForallIntentTag argIntentToForallIntent(Expr* ref, IntentTag intent) {
  switch (intent) {
    case INTENT_IN:        return TFI_IN;
    case INTENT_CONST:     return TFI_CONST;
    case INTENT_CONST_IN:  return TFI_CONST_IN;
    case INTENT_REF:       return TFI_REF;
    case INTENT_CONST_REF: return TFI_CONST_REF;
    case INTENT_BLANK:     return TFI_DEFAULT;
    case INTENT_OUT:
    case INTENT_INOUT:
    case INTENT_PARAM:
    case INTENT_TYPE:
    case INTENT_REF_MAYBE_CONST:
      USR_FATAL_CONT(ref, "%s is not supported in a 'with' clause",
                          intentDescrString(intent));
      return TFI_DEFAULT;
  }
  INT_ASSERT(false); 
  return TFI_DEFAULT; 
}
static ForallIntentTag argIntentToForallIntent ( Expr * ref , IntentTag intent ) { switch ( intent ) { case INTENT_IN : return TFI_IN ; case INTENT_CONST : return TFI_CONST ; case INTENT_CONST_IN : return TFI_CONST_IN ; case INTENT_REF : return TFI_REF ; case INTENT_CONST_REF : return TFI_CONST_REF ; case INTENT_BLANK : return TFI_DEFAULT ; case INTENT_OUT : case INTENT_INOUT : case INTENT_PARAM : case INTENT_TYPE : case INTENT_REF_MAYBE_CONST : USR_FATAL_CONT ( ref , " " , intentDescrString ( intent ) ) ; return TFI_DEFAULT ; } INT_ASSERT ( false ) ; return TFI_DEFAULT ; }
parser support
These functions report a user error for an unexpected intent.
parser support These functions report a user error for an unexpected intent .
// unexpected IntentTag; 'intent' contains garbage? // dummy