Skip to content

Conversation

@macadelic80
Copy link
Contributor

@macadelic80 macadelic80 commented Apr 13, 2025

PR Info

Bug Fixes

Before this commit, using --*-extra-attributes with an attribute containing a comma (several arguments) did not work (example --model-extra-attributes=“graphql(complex, name=”users“)

Changes

  • Add support of multi-argument attributes by ensuring proper parsing of comma-separated values in the TokenStream

@Huliiiiii Huliiiiii requested a review from tyt2y3 October 12, 2025 21:18
@tyt2y3 tyt2y3 merged commit 24335ad into SeaQL:master Jan 15, 2026
38 checks passed
Huliiiiii added a commit that referenced this pull request Jan 16, 2026
@Huliiiiii
Copy link
Member

I have to revert this because the test input is incorrect. The test input should be split by ,.

Example:

[
    r#"serde(rename_all = "camelCase""#,
    r#" rename = "test")"#,
    r#"ts(export"#,
    r#" export_to = "path")"#
]

And in this case syn will panic because it can’t parse it into a valid TokenStream.

Huliiiiii added a commit that referenced this pull request Jan 16, 2026
Reverts #2560

I have to revert this because the test input is incorrect. The test input should be split by `,`.

Example:
```
[
    r#"serde(rename_all = "camelCase""#,
    r#" rename = "test")"#,
    r#"ts(export"#,
    r#" export_to = "path")"#
]
```

And in this case syn will panic because it can’t parse it into a valid TokenStream.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants