MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / skipQuoted

Function skipQuoted

scripts/experimental/swiftui-preview.mjs:1094–1106  ·  view source on GitHub ↗
(source, start)

Source from the content-addressed store, hash-verified

1092}
1093
1094function skipQuoted(source, start) {
1095 const quote = source[start];
1096 for (let index = start + 1; index < source.length; index += 1) {
1097 if (source[index] === "\\") {
1098 index += 1;
1099 continue;
1100 }
1101 if (source[index] === quote) {
1102 return index;
1103 }
1104 }
1105 return source.length - 1;
1106}
1107
1108function skipLineComment(source, start) {
1109 const next = source.indexOf("\n", start + 2);

Callers 1

readBalancedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected