MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / pushPyScope

Function pushPyScope

lib/web/CodeMirror/mode/python/python.js:277–282  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

275 }
276
277 function pushPyScope(state) {
278 while (top(state).type != "py") state.scopes.pop()
279 state.scopes.push({offset: top(state).offset + conf.indentUnit,
280 type: "py",
281 align: null})
282 }
283
284 function pushBracketScope(stream, state, type) {
285 var align = stream.match(/^([\s\[\{\(]|#.*)*$/, false) ? null : stream.column() + 1

Callers 2

tokenBaseFunction · 0.85
tokenLexerFunction · 0.85

Calls 3

topFunction · 0.85
popMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected