예제 #1
0
        public Type get(string name)
        {
            if (name == null)
            {
                return(m_nullType);
            }
            if (m_types.ContainsKey(name))
            {
                return(m_types[name]);
            }
            if (m_dtypes.ContainsKey(name))
            {
                return(m_dtypes[name]);
            }

            foreach (AutoCompleteData ac in Requires)
            {
                var rst = ac.Types.get(name);
                if (rst != null && rst != m_nullType && !rst.isPrivate())
                {
                    return(rst);
                }
            }

            if (m_parent != null)
            {
                return(m_parent.get(name));
            }
            return(m_nullType);
        }