(self)
| 4922 | return new |
| 4923 | |
| 4924 | def __str__(self) -> str: |
| 4925 | s = f"{node_kinds[self.kind]}/{short_type(self.node)}" |
| 4926 | if isinstance(self.node, SymbolNode): |
| 4927 | s += f" ({self.node.fullname})" |
| 4928 | # Include declared type of variables and functions. |
| 4929 | if self.type is not None: |
| 4930 | s += f" : {self.type}" |
| 4931 | if self.cross_ref: |
| 4932 | s += f" cross_ref:{self.cross_ref}" |
| 4933 | return s |
| 4934 | |
| 4935 | def serialize(self, prefix: str, name: str) -> JsonDict: |
| 4936 | """Serialize a SymbolTableNode. |
nothing calls this directly
no test coverage detected