Skip to content
← Back

src/semantic/dotnet/additional_references.ghul

1
@@IF.dotnet()
2
3
namespace Semantic.DotNet is
4
use Collections.Iterable
5
6
// Adding assemblies to a reference set a process is already holding.
7
// Lookups a compile made before the addition may have recorded as
8
// finding nothing, and a name one of the new assemblies declares
9
// would then keep finding nothing, so those records are dropped
10
// whatever else happens.
11
class ADDITIONAL_REFERENCES is
12
add(container: IoC.CONTAINER, paths: Iterable[string]) static is
13
try
14
for path in paths do
15
container.assemblies.import_additional(path)
16
od
17
finally
18
container.dotnet_symbol_table.value.forget_no_results()
19
yrt
20
si
21
si
22
si