-
Notifications
You must be signed in to change notification settings - Fork 13.2k
Open
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: ParserThe parser didn't handle the syntax correctlyThe parser didn't handle the syntax correctlyHelp WantedYou can do thisYou can do this
Milestone
Description
π 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: ParserThe parser didn't handle the syntax correctlyThe parser didn't handle the syntax correctlyHelp WantedYou can do thisYou can do this