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

Function skipLineComment

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

Source from the content-addressed store, hash-verified

1106}
1107
1108function skipLineComment(source, start) {
1109 const next = source.indexOf("\n", start + 2);
1110 return next < 0 ? source.length - 1 : next;
1111}
1112
1113function skipBlockComment(source, start) {
1114 const next = source.indexOf("*/", start + 2);

Callers 1

readBalancedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected