Skip to content

The parsed identifier is incomplete due to updateSourceFile.Β #60773

@YZJcode

Description

@YZJcode

πŸ”Ž Search Terms

updateSourceFile

πŸ•— Version & Regression Information

5.6.0

⏯ Playground Link

No response

πŸ’» Code

// Your code here

πŸ™ Actual behavior

class Test { testMethod() { let newLocal = "kk" let a = 123 let b = 12 } }
After the value of variable b is changed, the identifiers set of sourceFile parsed by the updateSourceFile method contains only Test, testMethod, and b. Variables a and newLocal are lost.

πŸ™‚ Expected behavior

the identifiers set of sourceFile contains Test, testMethod, b, a and newLocal.

Additional information about the issue

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: ParserThe parser didn't handle the syntax correctlyHelp WantedYou can do this

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions