@ -27,20 +27,20 @@ func (e diagnosticCausedByUnknown) DiagnosticCausedByUnknown() bool {
return bool ( e )
}
// d iagnosticCausedByEphemeral is an implementation of
// D iagnosticCausedByEphemeral is an implementation of
// tfdiags.DiagnosticExtraBecauseEphemeral which we can use in the "Extra" field
// of a diagnostic to indicate that the problem was caused by ephemeral values
// being involved in an expression evaluation.
//
// When using this, set the Extra to d iagnosticCausedByEphemeral(true) and also
// When using this, set the Extra to D iagnosticCausedByEphemeral(true) and also
// populate the EvalContext and Expression fields of the diagnostic so that
// the diagnostic renderer can use all of that information together to assist
// the user in understanding what was ephemeral.
type d iagnosticCausedByEphemeral bool
type D iagnosticCausedByEphemeral bool
var _ tfdiags . DiagnosticExtraBecauseEphemeral = d iagnosticCausedByEphemeral( true )
var _ tfdiags . DiagnosticExtraBecauseEphemeral = D iagnosticCausedByEphemeral( true )
func ( e d iagnosticCausedByEphemeral) DiagnosticCausedByEphemeral ( ) bool {
func ( e D iagnosticCausedByEphemeral) DiagnosticCausedByEphemeral ( ) bool {
return bool ( e )
}