A C# constructor node (instance, static or primary). A constructor carries its type's name but is reached only through `new` or a `: base(...)` / `: this(...)` initializer, never by that name, so the name-keyed call indexes leave it out.
(node: dict)
| 19 | |
| 20 | |
| 21 | def is_csharp_constructor_node(node: dict) -> bool: |
| 22 | """A C# constructor node (instance, static or primary). |
| 23 | |
| 24 | A constructor carries its type's name but is reached only through `new` |
| 25 | or a `: base(...)` / `: this(...)` initializer, never by that name, so the |
| 26 | name-keyed call indexes leave it out. |
| 27 | """ |
| 28 | metadata = node.get("metadata") or {} |
| 29 | return ( |
| 30 | isinstance(metadata, dict) |
| 31 | and metadata.get("kind") == "constructor" |
| 32 | and effective_suffix(str(node.get("source_file") or "")) == ".cs" |
| 33 | ) |
| 34 | |
| 35 | |
| 36 | def is_csharp_explicit_interface_node(node: dict) -> bool: |
no test coverage detected