(node *Node)
| 1277 | } |
| 1278 | |
| 1279 | func IsDeclaration(node *Node) bool { |
| 1280 | if node.Kind == KindTypeParameter { |
| 1281 | return node.Parent != nil |
| 1282 | } |
| 1283 | return IsDeclarationNode(node) |
| 1284 | } |
| 1285 | |
| 1286 | // True if `name` is the name of a declaration node |
| 1287 | func IsDeclarationName(name *Node) bool { |
no test coverage detected