Method TryClaim
TryClaim(IReadOnlyCollection<KeyValuePair<SymbolStringPoolEntry, SymbolFlags>>)
Attempt to Claim responsibility for new symbols
public ErrorInfo TryClaim(IReadOnlyCollection<KeyValuePair<SymbolStringPoolEntry, SymbolFlags>> symbols)
Parameters
symbols
IReadOnlyCollection<KeyValuePair<SymbolStringPoolEntry, SymbolFlags>>Symbols to claim responsibility for
Returns
- ErrorInfo
Error information for the attempt
Remarks
This method can be used to claim responsibility for symbols that are added to a materialization unit during the compilation process (e.g. literal pool symbols). Symbol linkage rules are the same as for symbols that are defined up front: duplicate strong definitions will result in errors. Duplicate weak definitions will be discarded (in which case they will not be added to this responsibility instance).
This method can be used by materialization units that want to add additional symbols at materialization time (e.g. stubs, compile callbacks, metadata).