MCPcopy Create free account
hub / github.com/ChinaSiro/claude-code-sourcemap / flushText

Function flushText

restored-src/src/ink/termio/tokenize.ts:117–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115 let seqStart = 0
116
117 const flushText = (): void => {
118 if (i > textStart) {
119 const text = data.slice(textStart, i)
120 if (text) {
121 tokens.push({ type: 'text', value: text })
122 }
123 }
124 textStart = i
125 }
126
127 const emitSequence = (seq: string): void => {
128 if (seq) {

Callers 1

tokenizeFunction · 0.85

Calls 2

sliceMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected