MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / getContextBefore

Method getContextBefore

context/DocumentContextReader.cpp:69–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69QString DocumentContextReader::getContextBefore(
70 int lineNumber, int cursorPosition, int linesCount) const
71{
72 int startLine = lineNumber - linesCount + 1;
73 if (m_copyrightInfo.found) {
74 startLine = qMax(m_copyrightInfo.endLine + 1, startLine);
75 }
76
77 return getContextBetween(startLine, -1, lineNumber, cursorPosition);
78}
79
80QString DocumentContextReader::getContextAfter(
81 int lineNumber, int cursorPosition, int linesCount) const

Callers 2

prepareContextMethod · 0.80
TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by 1

TEST_FFunction · 0.64