Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve column when translating typespecs #13101

Merged
merged 3 commits into from
Nov 14, 2023

Conversation

wojtekmach
Copy link
Member

No description provided.

Copy link

@sabiwara sabiwara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 💜

@wojtekmach wojtekmach changed the title Code.Typespec: preserve column Preserve column when translating typespecs Nov 14, 2023
assert args == [
{:type, {13, 19}, :product, [{:user_type, {13, 16}, :t, []}]},
{:type, {13, 22}, :boolean, []}
]

assert [{:type, 23, :fun, args}] = get_callbacks(@with_any_binary, :ok, 1)
Copy link
Member Author

@wojtekmach wojtekmach Nov 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at the moment the auto-generated @type t for protocols does not get the column so this test remains as is.

@josevalim josevalim merged commit 8b7ce38 into elixir-lang:main Nov 14, 2023
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

@wojtekmach wojtekmach deleted the wm-typespec-column branch November 21, 2023 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants