Type span for array headers: "int32_t[10]" in "int32_t[10] positions {"
| 967 | |
| 968 | // Type span for array headers: "int32_t[10]" in "int32_t[10] positions {" |
| 969 | static 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 | |
| 977 | RcxEditor::NormalizedSpan RcxEditor::normalizeSpan( |
| 978 | const ColumnSpan& raw, const QString& lineText, |
no outgoing calls
no test coverage detected