Skip to content

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

@Enliven26

Description

@Enliven26
            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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions