69 | 69 | void serializeGenericParam(const swift::GenericTypeParamType &Param, | |
70 | 70 | llvm::json::OStream &OS) const; | |
71 | 71 | ||
72 | void serializeParameterList(const swift::ParameterList *ParamList, |
I wanted for this to be an invisible change but if I didn't declare it here I got an error
Symbol.cpp:409:14: error: out-of-line definition of 'serializeParameterList' does not match any declaration in 'swift::symbolgraphgen::Symbol'
Is there a way to hide this API?
If you don't want to add it to the class, you could write it as a static function inside the file (with extra parameters for not being a class method any more), or you could write it like a closure inside serializeFunctionSignature
:
auto serializeParameterList = [&](const swift::ParameterList *ParamList) {
// ...
}
...on the other hand, this method is already considered class-private since it was declared here, so i don't consider it a big deal to have added it to the header like this.
Thanks! That was exactly what I was looking for.
@swift-ci Please smoke test
Looks good; you can take or leave the one comment here.
@swift-ci please smoke test
Login to write a write a comment.
This makes the Swift symbol graph generator emit "functionSignature" information for initializers and subscripts, just like it does for functions.
Resolves rdar://111072228.