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

Add support for parameters in types #7

Merged
merged 2 commits into from
Jan 26, 2020
Merged

Conversation

Mingun
Copy link
Contributor

@Mingun Mingun commented Jan 12, 2020

Even ksv has no such feature (see kaitai-io/kaitai_struct_visualizer#33). Now you can look at parameterized types somehow:

parameters

Based on #6, so can be merged instead of #6.

@GreyCat
Copy link
Member

GreyCat commented Jan 25, 2020

Can I ask you to rebase it against latest master and we'll merge it right away?

@Mingun
Copy link
Contributor Author

Mingun commented Jan 26, 2020

Rebased and CI is also fixed

"public class (.+?) extends KaitaiStruct.*" +
"public \\1\\(KaitaiStream _io, KaitaiStruct _parent, \\1 _root(.*?)\\)",
Pattern.DOTALL
);
Copy link
Member

Choose a reason for hiding this comment

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

Actually, nowadays top class name should not be that hard to get. Probably we should expose JavaMain.compileOneInput that will clearly return compilation result as Java object, and that object contains reference to top class name.

@GreyCat GreyCat merged commit 528242a into kaitai-io:master Jan 26, 2020
@GreyCat
Copy link
Member

GreyCat commented Jan 26, 2020

Thanks for this contribution!

@Mingun Mingun deleted the params branch January 26, 2020 16:39
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.

2 participants