mvisat / kopyt

Kotlin parser in pure Python.
MIT License
10 stars 4 forks source link

Need to get last line number in addition to declaration start line number #3

Open Enliven26 opened 3 days ago

Enliven26 commented 3 days ago
            if isinstance(declaration, node.ClassDeclaration):
                parent_string = str(declaration)

Currently I'm trying to get the last line number of certain declaration. However, using above method and calculating the length of the declaration, it might give different result from the source file since it ignores comments and blank lines

Enliven26 commented 3 days ago

nvm I modified the library by myself

Enliven26 commented 3 days ago

I reopen because someone else might find the same issue