yanagiba / swift-ast

A Swift AST parser and visitor that is written in Swift.
Apache License 2.0
355 stars 40 forks source link

protocol method names are parsed same as protocolname #96

Open inforeqd512 opened 5 years ago

inforeqd512 commented 5 years ago

🚨New Issue Checklist🚨

Issue Summary

the ast output of a protocol method name comes out as same as protocol name

Environment

Reproduction Steps

Sample code ``` protocol TableUpdatable { func reloadTable() func errorLoadingData() } ``` Command to run `swift-ast` with the code above: `swift-ast sample.swift`

Expected Result

proto_decl name: TableUpdatable 0: kind: method name: reloadTable 1: kind: method name: errorLoadingData

Actual Behavior

proto_decl name: TableUpdatable 0: kind: method name: TableUpdatable 1: kind: method name: TableUpdatable

ryuichi-assistant commented 2 years ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.

Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment.