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>)
| 967 | /// declaration's own type parameters, and its own name, which in a |
| 968 | /// recursive type is the declaration itself. |
| 969 | fn declared_names(&self, decl: Node<'t>) -> HashSet<&'t str> { |
| 970 | let mut names = self.type_parameter_names(decl); |
| 971 | if let Some(name) = decl.child_by_field_name("name") { |
| 972 | names.insert(self.text(name)); |
| 973 | } |
| 974 | names |
| 975 | } |
| 976 | |
| 977 | /// goTypeParameterNames (languages/go.ts): the type parameters a type |
| 978 | /// declaration declares. |
no test coverage detected