예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CompilationWithImportedTypes"/>
        /// </summary>
        /// <param name="compilation"><see cref="CSharpCompilation"/> to get the <see cref="INamedTypeSymbol"/>s from.</param>
        /// <exception cref="ArgumentNullException"><paramref name="compilation"/> is <see langword="null"/>.</exception>
        public CompilationWithImportedTypes(CSharpCompilation compilation) : base(compilation)
        {
            _allTypes = TypeIdentity.GetAllTypes().ToArray();
            _entries  = new(_allTypes.Length);

            Reset();
        }