Skip to content

Fix parent of class declaration. #7

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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