Skip to content

mapNormalizedAstInfo Does Not Map Info Objects Of Separately Attached ASTs #1693

Open
@loki259

Description

@loki259

What happened?

The AST for code like eval(parse(text="1 + 2")) parses 1 + 2 as a separate AST in order to attach it to the eval call in the dataflow graph. As the current implementation of mapNormalizedAstInfo (from decorate.ts) only folds over the primary AST, the info objects from secondary ASTs are not properly mapped, which could lead to hard-to-track-down bugs.

What version of R do you have installed?

No response

What version of flowR did you use?

v2.2.12 (Mar 17, 2025)

Related input code

Relevant log output

Meta Information

  • The Issue is Urgent
  • I Used the Dockerized Version of flowr

Metadata

Metadata

Assignees

No one assigned

    Labels

    normalizeRelated to R-AST extraction and normalizationtypingDeals with the (to-be-created) typing system in flowR

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions