MCPcopy Create free account
hub / github.com/IChooseYou/Reclass / arrayHeaderTypeSpan

Function arrayHeaderTypeSpan

src/editor.cpp:969–975  ·  view source on GitHub ↗

Type span for array headers: "int32_t[10]" in "int32_t[10] positions {"

Source from the content-addressed store, hash-verified

967
968// Type span for array headers: "int32_t[10]" in "int32_t[10] positions {"
969static ColumnSpan arrayHeaderTypeSpan(const LineMeta& lm, const QString& lineText) {
970 if (lm.lineKind != LineKind::Header || !lm.isArrayHeader) return {};
971 int ind = kFoldCol + lm.depth * 3;
972 int typeEnd = lineText.indexOf(' ', ind);
973 if (typeEnd <= ind) return {};
974 return {ind, typeEnd, true};
975}
976
977RcxEditor::NormalizedSpan RcxEditor::normalizeSpan(
978 const ColumnSpan& raw, const QString& lineText,

Callers 2

resolvedSpanForMethod · 0.85
hitTestTargetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected