MCPcopy Create free account
hub / github.com/Effect-TS/tsgo / migrationHintText

Function migrationHintText

internal/rules/outdated_api.go:152–163  ·  view source on GitHub ↗
(m Migration)

Source from the content-addressed store, hash-verified

150}
151
152func migrationHintText(m Migration) string {
153 switch m.Tag {
154 case MigrationTagRemoved:
155 return m.AlternativePattern
156 case MigrationTagRenamedSameBehaviour:
157 return fmt.Sprintf("Renamed to %s.", m.NewName)
158 case MigrationTagRenamedAndNeedsOptions:
159 return fmt.Sprintf("Renamed to %s. %s", m.NewName, m.OptionsInstructions)
160 default:
161 return ""
162 }
163}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected