void ReadConstants(SymbolScopeImpl scope, uint constantList, uint constantListEnd) { if (constantList == 0) { return; } Debug.Assert(constantList <= constantListEnd); if (constantList >= constantListEnd) { return; } var table = pdbMetadata.TablesStream.LocalConstantTable; Debug.Assert(table.IsValidRID(constantListEnd - 1)); if (!table.IsValidRID(constantListEnd - 1)) { return; } Debug.Assert(table.IsValidRID(constantList)); if (!table.IsValidRID(constantList)) { return; } scope.SetConstants(pdbMetadata, constantList, constantListEnd); }
void ReadConstants(SymbolScopeImpl scope, RidList rids) { if (rids.Count == 0) { return; } scope.SetConstants(pdbMetadata, rids); }