MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / pop

Method pop

packages/pi-tui/src/undo-stack.ts:16–18  ·  view source on GitHub ↗

Pop and return the most recent snapshot, or undefined if empty.

()

Source from the content-addressed store, hash-verified

14
15 /** Pop and return the most recent snapshot, or undefined if empty. */
16 pop(): S | undefined {
17 return this.stack.pop();
18 }
19
20 /** Remove all snapshots. */
21 clear(): void {

Callers 15

hideOverlayMethod · 0.80
pushMethod · 0.80
rotateMethod · 0.80
findWordBackwardFunction · 0.80
undoMethod · 0.80
trimPartialClosingFencesFunction · 0.80
renderTokenMethod · 0.80
addToHistoryMethod · 0.80
undoMethod · 0.80
generateHistoryFunction · 0.80
splitRgLinesFunction · 0.80

Calls

no outgoing calls

Tested by 1

generateHistoryFunction · 0.64