public void Locate(ExprType type) {
switch (type.Kind) {
case ExprTypeKind.STRUCT_OR_UNION:
LocateStruct((StructOrUnionType)type);
return;
default:
// Even if the expression is of array Type, treat it as a scalar (pointer).
LocateScalar();
return;
}
}