offset property

  1. @override
int offset
inherited

The offset from the beginning of the file to the first character in the token.

Implementation

@override
int get offset => (_typeAndOffset >> 8) - 1;
  1. @override
void offset=(int value)
inherited

Set the offset from the beginning of the file to the first character in the token to the given offset.

Implementation

@override
void set offset(int value) {
  assert(_tokenTypesByIndex.length < 256);
  // See https://github.com/dart-lang/sdk/issues/50048 for details.
  assert(value >= -1);
  _typeAndOffset = ((value + 1) << 8) | (_typeAndOffset & 0xff);
}