Commit Graph

3 Commits

Author SHA1 Message Date
Kyle Dixler 1507872dbb
Move simplifyTypeName to DisplayName() method on token.Type
simplifyTypeName now type.DisplayName() is being used in many areas. It
is a pure function, and has a single argument token.Type. This change
improves its discoverability as it needs to be made visible between the
backend and display modules.
2023-04-13 14:44:07 -07:00
Fraser Waters ccd00c3731
Make PackageName just a QName ()
* Make PackageName just a QName

Since https://github.com/pulumi/pulumi/pull/8695 Name and thus QName has
allowed hyphens, making PackageName just the same as a QName now.

* Fix TestIntoQName
2022-01-21 19:23:14 +00:00
evanboyle 70f386a967 move pkg/tokens -> sdk/go/common/tokens 2020-03-18 14:49:56 -07:00