Skip to content

Refactor the StructConstructor #2777

Closed

Description

@tanay-man

Currently :

p1 : Class = Class(1,2)
#transformed into in the ASR
p1: Class = Class()
p1___init__(p1, 1, 2)

Instead in the ASR it should be kept as :

p1 : Class = Class(1, 2) #Structconstructor

and in the ASR-> ASR pass ClassConstructor replace as

p1: Class
p1___init__(p1, 1, 2)

Also add the parameters original_name and dt(p1 here) to the subroutine that is being called.

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