func (s *State) checkInclude(thriftType *parser.Type) (*State, *parser.Type, *Include) {
	parts := strings.SplitN(thriftType.Name, ".", 2)
	if len(parts) < 2 {
		return nil, nil, nil
	}

	newType := *thriftType
	newType.Name = parts[1]

	include := s.includes[parts[0]]
	state := s.all[include.file]
	return state.global, &newType, include
}
func (s *State) checkInclude(thriftType *parser.Type) (*State, *parser.Type, *Include) {
	parts := strings.SplitN(thriftType.Name, ".", 2)
	if len(parts) < 2 {
		return nil, nil, nil
	}

	newType := *thriftType
	newType.Name = parts[1]

	include := s.includes[parts[0]]
	state := s.all[include.file]
	return state.global, &newType, include
}
// checkInclude will check if the type is an included type, and if so, return the
// state and type from the state for that file.