[swift-dev] Changing AccessorDecl ParameterList during semantics pass
Luke Lau
luke_lau at icloud.com
Sun Jan 14 23:58:27 CST 2018
I’m attempting SR-5982 <https://bugs.swift.org/browse/SR-5982>, and so far have been able to check for whenever oldValue is unused during the code synthesis, once the AST has been generated.
But during parsing the oldValue parameter is always added to the didSet function, and at this stage I’m not sure if it’s possible to walk or check the body for any references to the parameter.
Is it possible to modify the ParameterList of an AccessorDecl in swiftSema, specifically in CodeSynthesis.cpp, so I can call the didSet function without the oldValue parameter whenever it is not needed?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-dev/attachments/20180115/71cd656b/attachment.html>
More information about the swift-dev
mailing list