Skip to content

Remove wasReferenced from SourceFile and place it on Program instead #7843

Description

SourceFile object can be shared between multiple Program instances. wasReferenced is dependent on how the other SourceFile objects in the context. the result is a sourceFile object shared between two Program instances, say in the language service, would not be treated correctly.

We should add the list of "referenced" source files to the program, and have Program.isSourceFileReferenced(sourceFile) as a function instead of a property.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions