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

Handle include statements #19

Open
5 tasks
adamconnelly opened this issue Aug 17, 2020 · 0 comments
Open
5 tasks

Handle include statements #19

adamconnelly opened this issue Aug 17, 2020 · 0 comments

Comments

@adamconnelly
Copy link
Owner

Thrift has the ability to include and reference items from other thrift files. For example:

include "UserType.thrift"

struct User {
    1: UserType.UserType Type,
    2: Username Username
}
  • Error if the file doesn't exist.
  • Warn if the file is unused.
  • Add the file to the list of files to compile if it isn't already included based on the list of input files to the command.
  • Resolve any symbols referenced from the include.
  • Error if any references can't be found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant