MCPcopy
hub / github.com/callstack/agent-device / updateDeclarationQuote

Function updateDeclarationQuote

src/utils/xml.ts:292–302  ·  view source on GitHub ↗
(state: DeclarationScanState, char: string)

Source from the content-addressed store, hash-verified

290}
291
292function updateDeclarationQuote(state: DeclarationScanState, char: string): boolean {
293 if (state.quote) {
294 if (char === state.quote) state.quote = null;
295 return true;
296 }
297 if (char === '"' || char === "'") {
298 state.quote = char;
299 return true;
300 }
301 return false;
302}
303
304function updateDeclarationBracketDepth(state: DeclarationScanState, char: string): void {
305 if (char === '[') {

Callers 1

updateDeclarationScanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected