MCPcopy Create free account
hub / github.com/IENT/YUView / FunctionCall

Class FunctionCall

tools/standardTextToCode/parseTables.py:144–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142 return f"{s}//{self.text}"
143
144class FunctionCall(ParsingItem):
145 def __init__(self, parent):
146 super().__init__(parent)
147 self.functionName = None
148 self.arguments = None
149 def fromText(self, name : str):
150 self.functionName = name.split("(")[0]
151 self.arguments = []
152 for argument in (name.split("(")[1].split(")")[0].split(",")):
153 c = cleanArgument(argument)
154 if (len(c) > 0):
155 self.arguments.append(cleanArgument(argument))
156 debugStop = 234
157 def __str__(self):
158 spaces = ""
159 for _ in range(self.parent.depth):
160 spaces += " "
161 return f"{spaces}{self.functionName}({self.arguments})"
162
163class Container(ParsingItem):
164 def __init__(self, parent):

Callers 1

parseChildrenMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected