(errors, fileContent)
| 6 | |
| 7 | |
| 8 | def slUserCallbackPerFile (errors, fileContent): |
| 9 | root = SLgetRootNode (fileContent) |
| 10 | print (SLgetFile (fileContent, root)) |
| 11 | #print (SLgetName (fileContent, root)) |
| 12 | print (SLgetLine (fileContent, root)) |
| 13 | print (SLgetChild (fileContent, root)) |
| 14 | type = SLgetType (fileContent, root) |
| 15 | print ("Type:", type) |
| 16 | print (type == slSource_text) |
| 17 | print (type == slModule_declaration) |
| 18 | set = SLcollectAll(fileContent, root, slModule_item, False) |
| 19 | SLaddError(errors, "[WARN :PY0100]", SLgetFileName(fileContent), SLgetLine(fileContent, root), 0, SLgetName(fileContent, root)) |
| 20 | |
| 21 |
nothing calls this directly
no test coverage detected