pinterest / thriftcheck

A linter for Thrift IDL files
Apache License 2.0
16 stars 9 forks source link

Add a 'constant.ref' check #44

Closed jparise closed 2 years ago

jparise commented 2 years ago

This check reports an error if a referenced constant or enum value cannot be found in the current, or any included, file.

To support this, I've generalized Resolve() to handle any named reference and introduced a ResolveConstant() function to resolve ast.ConstantReference values.