Skip to content

Preserve more information for CONST values #98

@dumconstantin

Description

@dumconstantin

The AST for operations includes only the reference for a certain value:

{
  "name": {
      "type": "UPDATE",
      "path": [{ type: "CONST", value: foo}, { type: "CONST", value: "bar"]
   }
}

When using variables the name is not preserved and cannot be used later when in debug mode for example:
Update<[foo].bar>

as such the ast should change:

type: "CONST", value: { type: "VARIABLE", name: "foo", ref: foo }
type: "CONST", value: { type: "STRING", value: "foo" }

Metadata

Metadata

Assignees

No one assigned

    Labels

    devtoolsany tool that helps during developmentenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions