elastic / elasticsearch-specification

Elasticsearch full specification
Apache License 2.0
111 stars 67 forks source link

Attach generic type parameters to the declaring type #2619

Closed flobernd closed 3 weeks ago

flobernd commented 3 weeks ago

Attach generic type parameters to the declaring type instead of the parent namespace.

This more precisely reflects the actual declaration hierarchy and allows type parameters to be uniquely identified by their FQNs.

The following definition:

export class A<T> { }

caused a type parameter with the FQN some.namespace.T to get emitted.

The same type parameter is now emitted as some.namespace.A.T instead.