MCPcopy
hub / github.com/microsoft/pyright / getItemAt

Method getItemAt

server/src/common/textRangeCollection.ts:43–48  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

41 }
42
43 getItemAt(index: number): T {
44 if (index < 0 || index >= this.items.length) {
45 throw new Error('index is out of range');
46 }
47 return this.items[index];
48 }
49
50 getItemAtPosition(position: number): number {
51 if (this.count === 0) {

Callers 5

_getNextTokenMethod · 0.80
_peekTokenMethod · 0.80
tokenizer.test.tsFile · 0.80
convertOffsetToPositionFunction · 0.80
convertPositionToOffsetFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected