MCPcopy Index your code
hub / github.com/feiyu563/PrometheusAlert / dedent

Function dedent

static/plugins/codemirror/mode/python/python.js:291–298  ·  view source on GitHub ↗
(stream, state)

Source from the content-addressed store, hash-verified

289 }
290
291 function dedent(stream, state) {
292 var indented = stream.indentation();
293 while (state.scopes.length > 1 && top(state).offset > indented) {
294 if (top(state).type != "py") return true;
295 state.scopes.pop();
296 }
297 return top(state).offset != indented;
298 }
299
300 function tokenLexer(stream, state) {
301 if (stream.sol()) {

Callers 1

tokenBaseFunction · 0.70

Calls 1

topFunction · 0.85

Tested by

no test coverage detected