MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / ContractedNext

Method ContractedNext

scintilla/src/ContractionState.cxx:206–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206int ContractionState::ContractedNext(int lineDocStart) const {
207 if (OneToOne()) {
208 return -1;
209 } else {
210 Check();
211 if (!expanded->ValueAt(lineDocStart)) {
212 return lineDocStart;
213 } else {
214 int lineDocNextChange = expanded->EndRun(lineDocStart);
215 if (lineDocNextChange < LinesInDoc())
216 return lineDocNextChange;
217 else
218 return -1;
219 }
220 }
221}
222
223int ContractionState::GetHeight(int lineDoc) const {
224 if (OneToOne()) {

Callers 1

ContractedFoldNextMethod · 0.80

Calls 2

EndRunMethod · 0.80
ValueAtMethod · 0.45

Tested by

no test coverage detected