MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / CFunction

Class CFunction

Scripts/codegen/_vendored/ast_nodes.py:30–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28
29@dataclass
30class CFunction:
31 name: str
32 return_type: str
33 params: List[CFunctionParam] = field(default_factory=list)
34 doc: str = ""
35 file: str = "" # source path
36 line: int = 0
37
38 def to_dict(self) -> Dict[str, Any]:
39 return {
40 "name": self.name,
41 "return_type": self.return_type,
42 "params": [p.to_dict() for p in self.params],
43 "doc": self.doc,
44 "file": self.file,
45 "line": self.line,
46 }
47
48
49@dataclass

Callers 1

_walkFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected