private DocumentHandle ReadDocumentHandle() { int rowId = _reader.ReadCompressedInteger(); if (rowId == 0 || !TokenTypeIds.IsValidRowId(rowId)) { Throw.InvalidHandle(); } return DocumentHandle.FromRowId(rowId); }
// When reference has at most 24 bits. internal int PeekReference(int offset, bool smallRefSize) { if (smallRefSize) { return(PeekUInt16(offset)); } uint value = PeekUInt32(offset); if (!TokenTypeIds.IsValidRowId(value)) { Throw.ReferenceOverflow(); } return((int)value); }
private MethodDebugInformationHandle(int rowId) { Debug.Assert(TokenTypeIds.IsValidRowId(rowId)); _rowId = rowId; }
private DocumentHandle(int rowId) { Debug.Assert(TokenTypeIds.IsValidRowId(rowId)); _rowId = rowId; }
private ImportScopeHandle(int rowId) { Debug.Assert(TokenTypeIds.IsValidRowId(rowId)); _rowId = rowId; }
private LocalConstantHandle(int rowId) { Debug.Assert(TokenTypeIds.IsValidRowId(rowId)); _rowId = rowId; }
private LocalVariableHandle(int rowId) { Debug.Assert(TokenTypeIds.IsValidRowId(rowId)); _rowId = rowId; }