Exemple #1
0
        internal void ResolveNamespaceUsings(Converter <string, IIdentifierInfo> resolver)
        {
            var c = m_namespaceUsings.Count;

            for (int i = 0; i < c; i++)
            {
                if (m_namespaceUsings[i].Identifier.Type == IdentifierType.UnresolvedType)
                {
                    var resolved = resolver(m_namespaceUsings[i].Identifier.Name);
                    if (resolved != null)
                    {
                        m_namespaceUsings[i] = new UsingData(m_namespaceUsings[i].Line, resolved);
                    }
                    else
                    {
                        m_errors.UnresolvedUsing(m_fileUsings[i].Line, -1, m_fileUsings[i].Identifier.Name);
                    }
                }
            }
        }