Skip to content

add createProgram docs #15697

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

Merged
merged 3 commits into from
May 23, 2017
Merged

Conversation

donaldpipowitch
Copy link
Contributor

Refers to a little bit to #15693. I try to learn the compiler API and have a "hard" time to find good documentation and resources. I noticed I can't use code completion to see the documentation for certain APIs and I thought it would be a good idea to add them.

I took documentation from https://github.com/Microsoft/TypeScript/wiki/Architectural-Overview, https://github.com/Microsoft/TypeScript/wiki/Using-the-Language-Service-API and https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API to write this comment.

Are you interested in pull requests like that?

@msftclas
Copy link

msftclas commented May 9, 2017

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. We will now review your pull request.
Thanks,
Microsoft Pull Request Bot

@@ -290,6 +290,15 @@ namespace ts {
return resolutions;
}

/**
* Parses a set of root files in order, walks their dependency declaration (both imports and triple-slash references)
Copy link
Contributor

Choose a reason for hiding this comment

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

how about?

Create a new 'Program' instance. A Program is an immutable collection of 'SourceFiles' and a compilation options that represent a compilation unit. 

Creating a program proceeds from a set of rootFiles, expanding the set of inputs by following imports and triple-slash reference directives transitively.  `@types` and triple-slash-reference-types are also pulled in.

@donaldpipowitch
Copy link
Contributor Author

Updated :)

@mhegazy mhegazy merged commit e4d6752 into microsoft:master May 23, 2017
@mhegazy
Copy link
Contributor

mhegazy commented May 23, 2017

thanks @donaldpipowitch!

@donaldpipowitch
Copy link
Contributor Author

Thank you :)

@microsoft microsoft locked and limited conversation to collaborators Jun 14, 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.

3 participants