rename AbstractRef to AbstractStructRef

This commit is contained in:
Kevin Jahns
2019-04-11 00:26:21 +02:00
parent 2ef11a5344
commit 9c29d820c8
5 changed files with 16 additions and 17 deletions

View File

@@ -1,8 +1,7 @@
// todo rename AbstractRef to abstractStructRef
import {
GC,
Transaction, AbstractRef, ID, ItemType, AbstractItem, AbstractStruct // eslint-disable-line
Transaction, AbstractStructRef, ID, ItemType, AbstractItem, AbstractStruct // eslint-disable-line
} from '../internals.js'
import * as math from 'lib0/math.js'
@@ -22,13 +21,13 @@ export class StructStore {
* We could shift the array of refs instead, but shift is incredible
* slow in Chrome for arrays with more than 100k elements
* @see tryResumePendingStructRefs
* @type {Map<number,{i:number,refs:Array<AbstractRef>}>}
* @type {Map<number,{i:number,refs:Array<AbstractStructRef>}>}
*/
this.pendingClientsStructRefs = new Map()
/**
* Stack of pending structs waiting for struct dependencies
* Maximum length of stack is structReaders.size
* @type {Array<AbstractRef>}
* @type {Array<AbstractStructRef>}
*/
this.pendingStack = []
/**