The trailing segment of a dotted name — what actually appears in the source.
(name: string)
| 292 | |
| 293 | /** The trailing segment of a dotted name — what actually appears in the source. */ |
| 294 | function lastSegment(name: string): string { |
| 295 | const dot = name.lastIndexOf('.'); |
| 296 | return dot < 0 ? name : name.slice(dot + 1); |
| 297 | } |