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?
_______________________________________________
swift-dev mailing list
swift-dev@swift.org
https://lists.swift.org/mailman/listinfo/swift-dev

Reply via email to