Create Structs based on offset, if necessary

implement offset parameter in Ref.toStruct
This commit is contained in:
Kevin Jahns
2019-04-05 12:38:02 +02:00
parent e56899a02c
commit 8a7416ad50
15 changed files with 234 additions and 74 deletions

View File

@@ -1,6 +1,6 @@
import {
Y, ID, Transaction // eslint-disable-line
ID, Transaction // eslint-disable-line
} from '../internals.js'
import * as encoding from 'lib0/encoding.js' // eslint-disable-line
@@ -77,9 +77,10 @@ export class AbstractRef {
}
/**
* @param {Transaction} transaction
* @param {number} offset
* @return {AbstractStruct}
*/
toStruct (transaction) {
toStruct (transaction, offset) {
throw error.methodUnimplemented()
}
/**