Skip to content

Editor: Autocomplete does not add parent's extender functions for child structs depending on order of declaration #2639

Open
@ivan-mogilko

Description

Problem

Autocomplete does not display extender function of a parent struct for an instance of a child struct, if that extender function is declared after child struct was declared.

Example:

struct Parent
{
    int a;
};

import void FunctionEx1(this Parent);

struct Child extends Parent
{
};

import void FunctionEx2(this Parent);

In this case, AutoComplete will display FunctionEx1 as a member of Child, but not FunctionEx2.
The reason is that in AutoComplete code it only adds parent's members to Child structs when the Child struct is parsed, but not if any extenders are found later.

Expected

Autocomplete should show all Child members inherited from Parent, regardless of the order of declaration.

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

    context: ui/uxtype: bugunexpected/erroneous behavior in the existing functionalitywhat: editorrelated to the game editor

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions