isAliasReference reports whether base is a bare identifier that refers to another alias key in the alias map (as opposed to a provider-scoped name or glob).
(base string, aliasMap map[string][]string)
| 319 | // isAliasReference reports whether base is a bare identifier that refers to |
| 320 | // another alias key in the alias map (as opposed to a provider-scoped name or glob). |
| 321 | func isAliasReference(base string, aliasMap map[string][]string) bool { |
| 322 | if strings.Contains(base, "/") || strings.Contains(base, "*") { |
| 323 | return false |
| 324 | } |
| 325 | _, exists := aliasMap[base] |
| 326 | return exists |
| 327 | } |
| 328 | |
| 329 | // ─── Utilities ──────────────────────────────────────────────────────────────── |
| 330 |
no outgoing calls