Skip to content

[Feature Request]: AST Explorer needs to reach inside nested scopes #596

Description

@a2937

Describe the feature request

Right now I don't see a way of accessing camper code inside of if statements and for/while loops. Since the explorer could only find things in scope, it won't actually find anything.

To Reproduce

Use the following code.

function myCoolFunction()
{
 for(int x = 0;x < 10;x++)
{
  var myNestedVariable = "Hello"; 
}
 return; 
}

Right now the explorer does not have seem to have any way of retrieving myNestedVariable.

Expected behavior

I should be able to go inside a while loop. Maybe getting a loop statement or if statement and then proceeding to get the body.

Screenshots

No response

Desktop OS

No response

Desktop Browser

No response

Desktop Browser Version

No response

Mobile Device

No response

Mobile OS

No response

Mobile Browser

No response

Mobile Browser Version

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions