mmh probably the error message is confusing. This function is called for every type in the expression of a static item. The contents of those types are the ones evaluated here.