CodegenException("Default value $node for member shape ${member.id} is unsupported or cannot exist; please file a bug report under https://github.com/smithy-lang/smithy-rs/issues")
when(valtarget=model.expectShape(member.target)){
isEnumShape,isIntEnumShape->{
valvalue=
when(target){
isIntEnumShape->node.expectNumberNode().value
isEnumShape->node.expectStringNode().value
else->throwCodegenException("Default value for shape ${target.id} must be of EnumShape or IntEnumShape")
}
valenumValues=
when(target){
isIntEnumShape->target.enumValues
isEnumShape->target.enumValues
else->
UNREACHABLE(
"Target shape ${target.id} must be an `EnumShape` or an `IntEnumShape` at this point, otherwise it would have failed above",