[Webkit-unassigned] [Bug 237581] New: prepare-ChangeLog does not include Swift functions which contain local vars

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 7 21:29:08 PST 2022


https://bugs.webkit.org/show_bug.cgi?id=237581

            Bug ID: 237581
           Summary: prepare-ChangeLog does not include Swift functions
                    which contain local vars
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mmokary at apple.com

prepare-ChangeLog does not include Swift functions which contain local vars

Once the parser matches a variable or function it loses reference to any current function it was tracking. So when a function defines a local var, the var is matched and the containing function is lost.

For example:

1 class SomeClass {
2     func aClassMethod() {
3         var local: Local
4     }
5 }

Changes to aClassMethod will never cause (SomeClass.aClassMethod) in the ChangeLog because the range of [3, 3, local] is recorded instead.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220308/bccefeac/attachment.htm>


More information about the webkit-unassigned mailing list