Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
protected memoryAttribute(t: Type, isNullable: boolean): MemoryAttribute {
return matchType(
t,
anyType => super.memoryAttribute(t, isNullable),
nullType => super.memoryAttribute(t, isNullable),
boolType => super.memoryAttribute(t, isNullable),
integerType => (isNullable ? 'strong' : 'copy'),
doubleType => (isNullable ? 'strong' : 'copy'),
stringType => super.memoryAttribute(t, isNullable),
arrayType => super.memoryAttribute(t, isNullable),
classType => super.memoryAttribute(t, isNullable),
mapType => super.memoryAttribute(t, isNullable),
enumType => super.memoryAttribute(t, isNullable),
unionType => super.memoryAttribute(t, isNullable)
)
}
}