MCPcopy Create free account
hub / github.com/chipsalliance/Surelog / slUserCallbackPerFile

Function slUserCallbackPerFile

tests/SimpleClass1/myscriptPerFile.py:8–19  ·  view source on GitHub ↗
(errors, fileContent)

Source from the content-addressed store, hash-verified

6
7
8def 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

Callers

nothing calls this directly

Calls 8

SLgetRootNodeFunction · 0.85
SLgetFileFunction · 0.85
SLgetLineFunction · 0.85
SLgetChildFunction · 0.85
SLgetTypeFunction · 0.85
SLcollectAllFunction · 0.85
SLaddErrorFunction · 0.85
SLgetNameFunction · 0.85

Tested by

no test coverage detected