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>)
| 983 | /// declaration's own type parameters, and its own name, which in a |
| 984 | /// recursive type is the declaration itself. |
| 985 | fn declared_names(&self, decl: Node<'t>) -> HashSet<&'t str> { |
| 986 | let mut names = self.type_parameter_names(decl); |
| 987 | if let Some(name) = decl.child_by_field_name("name") { |
| 988 | names.insert(self.text(name)); |
| 989 | } |
| 990 | names |
| 991 | } |
| 992 | |
| 993 | /// goTypeParameterNames (languages/go.ts): the type parameters a type |
| 994 | /// declaration declares. |
no test coverage detected