Method: pylint.pyreverse.vcg_printer.VCGPrinter.emit_node
Calls: 24, Exceptions: 0, Paths: 1Back
Path 1: 24 calls (1.0)
'data' (2) 'data.clientmodule_test' (2) 'data.property_pattern' (2) 'data.suppliermodule_test' (2) 'data.clientmodule_test.Ancestor' (2) 'data.supplie...
NodeType (24)
NodeProperties (24)
1def emit_node(
2 self,
3 name: str,
4 type_: NodeType,
5 properties: NodeProperties | None = None,
6 ) -> None:
7 """Create a new node.
8
9 Nodes can be classes, packages, participants etc.
10 """
11 if properties is None:
12 properties = NodeProperties(label=name)
13 elif properties.label is None:
14 properties.label = name
15 self.emit(f'node: {{title:"{name}"', force_newline=False)
16 self._write_attributes(
17 NODE_ATTRS,
18 label=self._build_label_for_node(properties),
19 shape=SHAPES[type_],
20 )
21 self.emit("}")