Skip to content

Fix parent of class declaration. #7

@MikuAuahDark

Description

@MikuAuahDark

For anyone who uses this script for latest love-api, the class declaration may have no parent.

if type.parenttype then
code = code .. ' : ' .. type.parenttype

Changing that line to this

if type.supertypes and type.supertypes[1] then
    code = code .. ' : ' .. type.supertypes[1]

fixes the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions