Skip to content

Method Resolution Clause will not parsed correct #195

Description

@ProHolz

If i have a type like these

type

  IInterface1 = interface
    function Init: Boolean; stdcall;
  end;

  IInterface2 = interface
    function Init: Boolean; stdcall;
  end;

  IInterface3 = interface
    function Init: Boolean; stdcall;
  end;

  TTestClass = class(TInterfacedObject, IInterface1, IInterface2, IInterface3)
  private
    function I2Init: Boolean; stdcall;
    function I3Init: Boolean; stdcall;

  public
    function Init: Boolean; stdcall; 
    function IInterface2.Init = I2Init;
    function IInterface3.Init = I3Init;
  end;

The resulting AST is

<METHOD begin_line="26" begin_col="5" end_line="27" end_col="5" name="IInterface2.Init"/>
<METHOD begin_line="27" begin_col="5" end_line="28" end_col="3" name="IInterface3.Init"/>

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions