mirror of
https://github.com/apple/swift.git
synced 2026-10-12 14:50:47 +02:00
In the warning about having no try/throw within the body of a do..catch, replace the walk of the inactive clauses of IfConfigDecl with a syntactic check of inactive and unparsed regions to look for 'try' and 'throw' keywords. This both eliminates a dependency on IfConfigDecl and expands the usefulness of this warning suppression to unparsed code.
6.6 KiB
6.6 KiB