Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose setParentNodes on createCompilerHost #2414

Merged
merged 1 commit into from
Mar 18, 2015
Merged

Conversation

mhegazy
Copy link
Contributor

@mhegazy mhegazy commented Mar 18, 2015

If you are using createCompilerHost to create a program, there is no way to set the parent nodes. expose the value on the host creation function.

@vladima
Copy link
Contributor

vladima commented Mar 18, 2015

👍

mhegazy added a commit that referenced this pull request Mar 18, 2015
Expose setParentNodes on createCompilerHost
@mhegazy mhegazy merged commit f96e52c into master Mar 18, 2015
@mhegazy mhegazy deleted the createSourceFile branch March 18, 2015 21:35
@@ -10,7 +10,7 @@ module ts {
/** The version of the TypeScript compiler release */
export let version = "1.5.0.0";

export function createCompilerHost(options: CompilerOptions): CompilerHost {
export function createCompilerHost(options: CompilerOptions, setParentNodes?: boolean): CompilerHost {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this just be a compiler option then?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought about that, but did not feel right, createSourceFile does not know about options. so it will be added, and only honored by the default cmd line host, which is a bit misleading.

@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants