goDeclaredNames (languages/go.ts): what a type name written bare inside a type declaration can mean without naming another type — the declaration's own type parameters, and its own name, which in a recursive type is the declaration itself.
(&self, decl: Node<'t>)
| 995 | /// declaration's own type parameters, and its own name, which in a |
| 996 | /// recursive type is the declaration itself. |
| 997 | fn declared_names(&self, decl: Node<'t>) -> HashSet<&'t str> { |
| 998 | let mut names = self.type_parameter_names(decl); |
| 999 | if let Some(name) = decl.child_by_field_name("name") { |
| 1000 | names.insert(self.text(name)); |
| 1001 | } |
| 1002 | names |
| 1003 | } |
| 1004 | |
| 1005 | /// goTypeParameterNames (languages/go.ts): the type parameters a type |
| 1006 | /// declaration declares. |
no test coverage detected