Class TypeScriptProject
- Namespace
- Alternet.Common.TypeScript
- Assembly
- Alternet.Common.TypeScript.v9.dll
Represents an object used to manipulate TypeScript project content.
public class TypeScriptProject : ITypeScriptProject, ITypeDefinitionsLocator, IDisposable
- Inheritance
-
TypeScriptProject
- Implements
Constructors
- TypeScriptProject()
Initializes a new instance of the
TypeScriptProject
class with default settings.
Properties
- AutoGenerateTypeDefinitions
Gets or sets whether project should automatically generate type definitions if possible.
- AutoGeneratedTypeDefinitionsPath
Gets or sets directory where auto-generated files are cached.
- DefaultProject
Gets a default
TypeScriptProject
object.
- EmbeddedTypeDefitionsLocations
Gets or sets a collection of EmbeddedTypeDefitionsLocation that belong to the project.
- HostItemsConfiguration
Gets or sets TypeScript project host items configuration.
- LoadUserTypeDefinitions
Gets or sets whether user's type definitions should be loaded.
- Parser
Gets a V8Parser used to perform syntax analysis of TypeScript code.
- ProjectDirectory
Gets or sets root project directory.
- TypeDefinitionsSearchPaths
Gets or sets a list of search directories to look for type definitions.
Methods
- Dispose()
Disposes resources allocated by the
TypeScriptProject
class.
- ~TypeScriptProject()
Destroys the instance of the
TypeScriptProject
class.
- RegisterCodeFiles(string[])
Makes types declared in given source files accessible for parsing.
- RegisterDefaultAssemblies(TechnologyEnvironment)
Adds default system assemblies to be used for Code completion.
- ReplaceCodeFile(string, string)
Updates document stored in the project with the changed content of the source file.
- Reset()
Resets content of TypeScript project to its default value.
- UnregisterCodeFiles(string[])
Removes types declared in given source files from being accessible for parsing.