tsoptions

package
v0.0.0-...-94ae2f2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 4, 2025 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Libs        = slices.Collect(LibMap.Keys())
	LibFilesSet = collections.NewSetFromItems(core.Map(slices.Collect(LibMap.Values()), func(s any) string { return s.(string) })...)
)
View Source
var (
	CompilerNameMap = GetNameMapFromList(OptionsDeclarations)
	BuildNameMap    = GetNameMapFromList(BuildOpts)
	WatchNameMap    = GetNameMapFromList(optionsForWatch)
)
View Source
var BuildOpts = slices.Concat(commonOptionsWithBuild, optionsForBuild)
View Source
var CompilerOptionsDidYouMeanDiagnostics = getParseCommandLineWorkerDiagnostics(OptionsDeclarations)
View Source
var InverseJsxOptionMap = collections.NewOrderedMapFromList(func() []collections.MapEntry[core.JsxEmit, string] {
	entries := make([]collections.MapEntry[core.JsxEmit, string], 0, jsxOptionMap.Size())
	for key, value := range jsxOptionMap.Entries() {
		entries = append(entries, collections.MapEntry[core.JsxEmit, string]{
			Key:   value.(core.JsxEmit),
			Value: key,
		})
	}
	return entries
}())
View Source
var LibMap = collections.NewOrderedMapFromList([]collections.MapEntry[string, any]{

	{Key: "es5", Value: "lib.es5.d.ts"},
	{Key: "es6", Value: "lib.es2015.d.ts"},
	{Key: "es2015", Value: "lib.es2015.d.ts"},
	{Key: "es7", Value: "lib.es2016.d.ts"},
	{Key: "es2016", Value: "lib.es2016.d.ts"},
	{Key: "es2017", Value: "lib.es2017.d.ts"},
	{Key: "es2018", Value: "lib.es2018.d.ts"},
	{Key: "es2019", Value: "lib.es2019.d.ts"},
	{Key: "es2020", Value: "lib.es2020.d.ts"},
	{Key: "es2021", Value: "lib.es2021.d.ts"},
	{Key: "es2022", Value: "lib.es2022.d.ts"},
	{Key: "es2023", Value: "lib.es2023.d.ts"},
	{Key: "es2024", Value: "lib.es2024.d.ts"},
	{Key: "esnext", Value: "lib.esnext.d.ts"},

	{Key: "dom", Value: "lib.dom.d.ts"},
	{Key: "dom.iterable", Value: "lib.dom.iterable.d.ts"},
	{Key: "dom.asynciterable", Value: "lib.dom.asynciterable.d.ts"},
	{Key: "webworker", Value: "lib.webworker.d.ts"},
	{Key: "webworker.importscripts", Value: "lib.webworker.importscripts.d.ts"},
	{Key: "webworker.iterable", Value: "lib.webworker.iterable.d.ts"},
	{Key: "webworker.asynciterable", Value: "lib.webworker.asynciterable.d.ts"},
	{Key: "scripthost", Value: "lib.scripthost.d.ts"},

	{Key: "es2015.core", Value: "lib.es2015.core.d.ts"},
	{Key: "es2015.collection", Value: "lib.es2015.collection.d.ts"},
	{Key: "es2015.generator", Value: "lib.es2015.generator.d.ts"},
	{Key: "es2015.iterable", Value: "lib.es2015.iterable.d.ts"},
	{Key: "es2015.promise", Value: "lib.es2015.promise.d.ts"},
	{Key: "es2015.proxy", Value: "lib.es2015.proxy.d.ts"},
	{Key: "es2015.reflect", Value: "lib.es2015.reflect.d.ts"},
	{Key: "es2015.symbol", Value: "lib.es2015.symbol.d.ts"},
	{Key: "es2015.symbol.wellknown", Value: "lib.es2015.symbol.wellknown.d.ts"},
	{Key: "es2016.array.include", Value: "lib.es2016.array.include.d.ts"},
	{Key: "es2016.intl", Value: "lib.es2016.intl.d.ts"},
	{Key: "es2017.arraybuffer", Value: "lib.es2017.arraybuffer.d.ts"},
	{Key: "es2017.date", Value: "lib.es2017.date.d.ts"},
	{Key: "es2017.object", Value: "lib.es2017.object.d.ts"},
	{Key: "es2017.sharedmemory", Value: "lib.es2017.sharedmemory.d.ts"},
	{Key: "es2017.string", Value: "lib.es2017.string.d.ts"},
	{Key: "es2017.intl", Value: "lib.es2017.intl.d.ts"},
	{Key: "es2017.typedarrays", Value: "lib.es2017.typedarrays.d.ts"},
	{Key: "es2018.asyncgenerator", Value: "lib.es2018.asyncgenerator.d.ts"},
	{Key: "es2018.asynciterable", Value: "lib.es2018.asynciterable.d.ts"},
	{Key: "es2018.intl", Value: "lib.es2018.intl.d.ts"},
	{Key: "es2018.promise", Value: "lib.es2018.promise.d.ts"},
	{Key: "es2018.regexp", Value: "lib.es2018.regexp.d.ts"},
	{Key: "es2019.array", Value: "lib.es2019.array.d.ts"},
	{Key: "es2019.object", Value: "lib.es2019.object.d.ts"},
	{Key: "es2019.string", Value: "lib.es2019.string.d.ts"},
	{Key: "es2019.symbol", Value: "lib.es2019.symbol.d.ts"},
	{Key: "es2019.intl", Value: "lib.es2019.intl.d.ts"},
	{Key: "es2020.bigint", Value: "lib.es2020.bigint.d.ts"},
	{Key: "es2020.date", Value: "lib.es2020.date.d.ts"},
	{Key: "es2020.promise", Value: "lib.es2020.promise.d.ts"},
	{Key: "es2020.sharedmemory", Value: "lib.es2020.sharedmemory.d.ts"},
	{Key: "es2020.string", Value: "lib.es2020.string.d.ts"},
	{Key: "es2020.symbol.wellknown", Value: "lib.es2020.symbol.wellknown.d.ts"},
	{Key: "es2020.intl", Value: "lib.es2020.intl.d.ts"},
	{Key: "es2020.number", Value: "lib.es2020.number.d.ts"},
	{Key: "es2021.promise", Value: "lib.es2021.promise.d.ts"},
	{Key: "es2021.string", Value: "lib.es2021.string.d.ts"},
	{Key: "es2021.weakref", Value: "lib.es2021.weakref.d.ts"},
	{Key: "es2021.intl", Value: "lib.es2021.intl.d.ts"},
	{Key: "es2022.array", Value: "lib.es2022.array.d.ts"},
	{Key: "es2022.error", Value: "lib.es2022.error.d.ts"},
	{Key: "es2022.intl", Value: "lib.es2022.intl.d.ts"},
	{Key: "es2022.object", Value: "lib.es2022.object.d.ts"},
	{Key: "es2022.string", Value: "lib.es2022.string.d.ts"},
	{Key: "es2022.regexp", Value: "lib.es2022.regexp.d.ts"},
	{Key: "es2023.array", Value: "lib.es2023.array.d.ts"},
	{Key: "es2023.collection", Value: "lib.es2023.collection.d.ts"},
	{Key: "es2023.intl", Value: "lib.es2023.intl.d.ts"},
	{Key: "es2024.arraybuffer", Value: "lib.es2024.arraybuffer.d.ts"},
	{Key: "es2024.collection", Value: "lib.es2024.collection.d.ts"},
	{Key: "es2024.object", Value: "lib.es2024.object.d.ts"},
	{Key: "es2024.promise", Value: "lib.es2024.promise.d.ts"},
	{Key: "es2024.regexp", Value: "lib.es2024.regexp.d.ts"},
	{Key: "es2024.sharedmemory", Value: "lib.es2024.sharedmemory.d.ts"},
	{Key: "es2024.string", Value: "lib.es2024.string.d.ts"},
	{Key: "esnext.array", Value: "lib.es2023.array.d.ts"},
	{Key: "esnext.collection", Value: "lib.esnext.collection.d.ts"},
	{Key: "esnext.symbol", Value: "lib.es2019.symbol.d.ts"},
	{Key: "esnext.asynciterable", Value: "lib.es2018.asynciterable.d.ts"},
	{Key: "esnext.intl", Value: "lib.esnext.intl.d.ts"},
	{Key: "esnext.disposable", Value: "lib.esnext.disposable.d.ts"},
	{Key: "esnext.bigint", Value: "lib.es2020.bigint.d.ts"},
	{Key: "esnext.string", Value: "lib.es2022.string.d.ts"},
	{Key: "esnext.promise", Value: "lib.es2024.promise.d.ts"},
	{Key: "esnext.weakref", Value: "lib.es2021.weakref.d.ts"},
	{Key: "esnext.decorators", Value: "lib.esnext.decorators.d.ts"},
	{Key: "esnext.object", Value: "lib.es2024.object.d.ts"},
	{Key: "esnext.array", Value: "lib.esnext.array.d.ts"},
	{Key: "esnext.regexp", Value: "lib.es2024.regexp.d.ts"},
	{Key: "esnext.string", Value: "lib.es2024.string.d.ts"},
	{Key: "esnext.iterator", Value: "lib.esnext.iterator.d.ts"},
	{Key: "esnext.promise", Value: "lib.esnext.promise.d.ts"},
	{Key: "esnext.float16", Value: "lib.esnext.float16.d.ts"},
	{Key: "esnext.error", Value: "lib.esnext.error.d.ts"},
	{Key: "esnext.sharedmemory", Value: "lib.esnext.sharedmemory.d.ts"},
	{Key: "decorators", Value: "lib.decorators.d.ts"},
	{Key: "decorators.legacy", Value: "lib.decorators.legacy.d.ts"},
})
View Source
var OptionsDeclarations = slices.Concat(commonOptionsWithBuild, optionsForCompiler)
View Source
var TscBuildOption = CommandLineOption{
	Name:                     "build",
	Kind:                     "boolean",
	ShortName:                "b",
	ShowInSimplifiedHelpView: true,
	Category:                 diagnostics.Command_line_Options,
	Description:              diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,
	DefaultValueDescription:  false,
}

Functions

func CompilerOptionsAffectDeclarationPath

func CompilerOptionsAffectDeclarationPath(
	oldOptions *core.CompilerOptions,
	newOptions *core.CompilerOptions,
) bool

func CompilerOptionsAffectEmit

func CompilerOptionsAffectEmit(oldOptions *core.CompilerOptions, newOptions *core.CompilerOptions) bool

func CompilerOptionsAffectSemanticDiagnostics

func CompilerOptionsAffectSemanticDiagnostics(
	oldOptions *core.CompilerOptions,
	newOptions *core.CompilerOptions,
) bool

func ConvertOptionToAbsolutePath

func ConvertOptionToAbsolutePath(o string, v any, optionMap CommandLineOptionNameMap, cwd string) (any, bool)

func CreateDiagnosticAtReferenceSyntax

func CreateDiagnosticAtReferenceSyntax(config *ParsedCommandLine, index int, message *diagnostics.Message, args ...any) *ast.Diagnostic

func CreateDiagnosticForNodeInSourceFile

func CreateDiagnosticForNodeInSourceFile(sourceFile *ast.SourceFile, node *ast.Node, message *diagnostics.Message, args ...any) *ast.Diagnostic

func CreateDiagnosticForNodeInSourceFileOrCompilerDiagnostic

func CreateDiagnosticForNodeInSourceFileOrCompilerDiagnostic(sourceFile *ast.SourceFile, node *ast.Node, message *diagnostics.Message, args ...any) *ast.Diagnostic

func ForEachCompilerOptionValue

func ForEachCompilerOptionValue(options *core.CompilerOptions, declFilter func(*CommandLineOption) bool, fn func(option *CommandLineOption, value reflect.Value, i int) bool) bool

func ForEachPropertyAssignment

func ForEachPropertyAssignment[T any](objectLiteral *ast.ObjectLiteralExpression, key string, callback func(property *ast.PropertyAssignment) *T, key2 ...string) *T

func ForEachTsConfigPropArray

func ForEachTsConfigPropArray[T any](tsConfigSourceFile *ast.SourceFile, propKey string, callback func(property *ast.PropertyAssignment) *T) *T

func GetCallbackForFindingPropertyAssignmentByValue

func GetCallbackForFindingPropertyAssignmentByValue(value string) func(property *ast.PropertyAssignment) *ast.Node

func GetDefaultLibFileName

func GetDefaultLibFileName(options *core.CompilerOptions) string

func GetLibFileName

func GetLibFileName(libName string) (string, bool)

func GetOptionsSyntaxByArrayElementValue

func GetOptionsSyntaxByArrayElementValue(objectLiteral *ast.ObjectLiteralExpression, propKey string, elementValue string) *ast.Node

func GetSupportedExtensions

func GetSupportedExtensions(compilerOptions *core.CompilerOptions, extraFileExtensions []FileExtensionInfo) [][]string

func GetSupportedExtensionsWithJsonIfResolveJsonModule

func GetSupportedExtensionsWithJsonIfResolveJsonModule(compilerOptions *core.CompilerOptions, supportedExtensions [][]string) [][]string

func GetTsConfigPropArrayElementValue

func GetTsConfigPropArrayElementValue(tsConfigSourceFile *ast.SourceFile, propKey string, elementValue string) *ast.StringLiteral

func ParseBuildOptions

func ParseBuildOptions(key string, value any, allOptions *core.BuildOptions) []*ast.Diagnostic

func ParseCompilerOptions

func ParseCompilerOptions(key string, value any, allOptions *core.CompilerOptions) []*ast.Diagnostic

func ParseConfigFileTextToJson

func ParseConfigFileTextToJson(fileName string, path tspath.Path, jsonText string) (any, []*ast.Diagnostic)

ParseConfigFileTextToJson parses the text of the tsconfig.json file fileName is the path to the config file jsonText is the text of the config file

func ParseListTypeOption

func ParseListTypeOption(opt *CommandLineOption, value string) ([]any, []*ast.Diagnostic)

func ParseTypeAcquisition

func ParseTypeAcquisition(key string, value any, allOptions *core.TypeAcquisition) []*ast.Diagnostic

func ParseWatchOptions

func ParseWatchOptions(key string, value any, allOptions *core.WatchOptions) []*ast.Diagnostic

func TargetToLibMap

func TargetToLibMap() map[core.ScriptTarget]string

Types

type AlternateModeDiagnostics

type AlternateModeDiagnostics struct {
	// contains filtered or unexported fields
}

type CommandLineOption

type CommandLineOption struct {
	Name, ShortName string
	Kind            CommandLineOptionKind

	// used in parsing
	IsFilePath        bool
	IsTSConfigOnly    bool
	IsCommandLineOnly bool

	// used in output
	Description              *diagnostics.Message
	DefaultValueDescription  any
	ShowInSimplifiedHelpView bool

	// used in output in serializing and generate tsconfig
	Category *diagnostics.Message

	// used for filter in compilerrunner
	AffectsDeclarationPath     bool
	AffectsProgramStructure    bool
	AffectsSemanticDiagnostics bool
	AffectsBuildInfo           bool
	AffectsBindDiagnostics     bool
	AffectsSourceFile          bool
	AffectsModuleResolution    bool
	AffectsEmit                bool

	// used for compilerOptionsDeclaration
	ElementOptions CommandLineOptionNameMap
	// contains filtered or unexported fields
}

func (*CommandLineOption) DeprecatedKeys

func (o *CommandLineOption) DeprecatedKeys() *collections.Set[string]

func (*CommandLineOption) DisallowNullOrUndefined

func (o *CommandLineOption) DisallowNullOrUndefined() bool

func (*CommandLineOption) Elements

func (o *CommandLineOption) Elements() *CommandLineOption

func (*CommandLineOption) EnumMap

type CommandLineOptionKind

type CommandLineOptionKind string
const (
	CommandLineOptionTypeString        CommandLineOptionKind = "string"
	CommandLineOptionTypeNumber        CommandLineOptionKind = "number"
	CommandLineOptionTypeBoolean       CommandLineOptionKind = "boolean"
	CommandLineOptionTypeObject        CommandLineOptionKind = "object"
	CommandLineOptionTypeList          CommandLineOptionKind = "list"
	CommandLineOptionTypeListOrElement CommandLineOptionKind = "listOrElement"
	CommandLineOptionTypeEnum          CommandLineOptionKind = "enum" // map
)

type CommandLineOptionNameMap

type CommandLineOptionNameMap map[string]*CommandLineOption
var CommandLineCompilerOptionsMap CommandLineOptionNameMap = commandLineOptionsToMap(OptionsDeclarations)

func (CommandLineOptionNameMap) Get

type CompilerOptionsValue

type CompilerOptionsValue any

todo: revisit to see if this can be improved

type DidYouMeanOptionsDiagnostics

type DidYouMeanOptionsDiagnostics struct {
	OptionDeclarations          []*CommandLineOption
	UnknownOptionDiagnostic     *diagnostics.Message
	UnknownDidYouMeanDiagnostic *diagnostics.Message
	// contains filtered or unexported fields
}

type ExtendedConfigCache

type ExtendedConfigCache interface {
	GetExtendedConfig(fileName string, path tspath.Path, parse func() *ExtendedConfigCacheEntry) *ExtendedConfigCacheEntry
}

type ExtendedConfigCacheEntry

type ExtendedConfigCacheEntry struct {
	// contains filtered or unexported fields
}

type FileExtensionInfo

type FileExtensionInfo struct {
	Extension      string
	IsMixedContent bool
	ScriptKind     core.ScriptKind
}

type NameMap

type NameMap struct {
	// contains filtered or unexported fields
}

func GetNameMapFromList

func GetNameMapFromList(optDecls []*CommandLineOption) *NameMap

func (*NameMap) Get

func (nm *NameMap) Get(name string) *CommandLineOption

func (*NameMap) GetFromShort

func (nm *NameMap) GetFromShort(shortName string) *CommandLineOption

func (*NameMap) GetOptionDeclarationFromName

func (nm *NameMap) GetOptionDeclarationFromName(optionName string, allowShort bool) *CommandLineOption

type ParseCommandLineWorkerDiagnostics

type ParseCommandLineWorkerDiagnostics struct {
	OptionTypeMismatchDiagnostic *diagnostics.Message
	// contains filtered or unexported fields
}

type ParseConfigHost

type ParseConfigHost interface {
	FS() vfs.FS
	GetCurrentDirectory() string
}

type ParsedBuildCommandLine

type ParsedBuildCommandLine struct {
	BuildOptions    *core.BuildOptions    `json:"buildOptions"`
	CompilerOptions *core.CompilerOptions `json:"compilerOptions"`
	WatchOptions    *core.WatchOptions    `json:"watchOptions"`
	Projects        []string              `json:"projects"`
	Errors          []*ast.Diagnostic     `json:"errors"`
	// contains filtered or unexported fields
}

func ParseBuildCommandLine

func ParseBuildCommandLine(
	commandLine []string,
	host ParseConfigHost,
) *ParsedBuildCommandLine

func (*ParsedBuildCommandLine) ResolvedProjectPaths

func (p *ParsedBuildCommandLine) ResolvedProjectPaths() []string

type ParsedCommandLine

type ParsedCommandLine struct {
	ParsedConfig *core.ParsedOptions `json:"parsedConfig"`

	ConfigFile    *TsConfigSourceFile `json:"configFile"` // TsConfigSourceFile, used in Program and ExecuteCommandLine
	Errors        []*ast.Diagnostic   `json:"errors"`
	Raw           any                 `json:"raw"`
	CompileOnSave *bool               `json:"compileOnSave"`
	// contains filtered or unexported fields
}

func GetParsedCommandLineOfConfigFile

func GetParsedCommandLineOfConfigFile(
	configFileName string,
	options *core.CompilerOptions,
	sys ParseConfigHost,
	extendedConfigCache ExtendedConfigCache,
) (*ParsedCommandLine, []*ast.Diagnostic)

Reads the config file and reports errors.

func GetParsedCommandLineOfConfigFilePath

func GetParsedCommandLineOfConfigFilePath(
	configFileName string,
	path tspath.Path,
	options *core.CompilerOptions,
	sys ParseConfigHost,
	extendedConfigCache ExtendedConfigCache,
) (*ParsedCommandLine, []*ast.Diagnostic)

func NewParsedCommandLine

func NewParsedCommandLine(
	compilerOptions *core.CompilerOptions,
	rootFileNames []string,
	comparePathsOptions tspath.ComparePathsOptions,
) *ParsedCommandLine

func ParseCommandLine

func ParseCommandLine(
	commandLine []string,
	host ParseConfigHost,
) *ParsedCommandLine

func ParseJsonConfigFileContent

func ParseJsonConfigFileContent(json any, host ParseConfigHost, basePath string, existingOptions *core.CompilerOptions, configFileName string, resolutionStack []tspath.Path, extraFileExtensions []FileExtensionInfo, extendedConfigCache ExtendedConfigCache) *ParsedCommandLine

ParseJsonConfigFileContent parses the contents of a config file (tsconfig.json). jsonNode: The contents of the config file to parse host: Instance of ParseConfigHost used to enumerate files in folder. basePath: A root directory to resolve relative path entries in the config file to. e.g. outDir

func ParseJsonSourceFileConfigFileContent

func ParseJsonSourceFileConfigFileContent(
	sourceFile *TsConfigSourceFile,
	host ParseConfigHost,
	basePath string,
	existingOptions *core.CompilerOptions,
	configFileName string,
	resolutionStack []tspath.Path,
	extraFileExtensions []FileExtensionInfo,
	extendedConfigCache ExtendedConfigCache,
) *ParsedCommandLine

func (*ParsedCommandLine) CommonSourceDirectory

func (p *ParsedCommandLine) CommonSourceDirectory() string

func (*ParsedCommandLine) CompilerOptions

func (p *ParsedCommandLine) CompilerOptions() *core.CompilerOptions

func (*ParsedCommandLine) ConfigName

func (p *ParsedCommandLine) ConfigName() string

func (*ParsedCommandLine) ExtendedSourceFiles

func (p *ParsedCommandLine) ExtendedSourceFiles() []string

func (*ParsedCommandLine) FileNames

func (p *ParsedCommandLine) FileNames() []string

All file names matched by files, include, and exclude patterns

func (*ParsedCommandLine) FileNamesByPath

func (p *ParsedCommandLine) FileNamesByPath() map[tspath.Path]string

func (*ParsedCommandLine) GetBuildInfoFileName

func (p *ParsedCommandLine) GetBuildInfoFileName() string

func (*ParsedCommandLine) GetConfigFileParsingDiagnostics

func (p *ParsedCommandLine) GetConfigFileParsingDiagnostics() []*ast.Diagnostic

func (*ParsedCommandLine) GetCurrentDirectory

func (p *ParsedCommandLine) GetCurrentDirectory() string

func (*ParsedCommandLine) GetMatchedFileSpec

func (p *ParsedCommandLine) GetMatchedFileSpec(fileName string) string

func (*ParsedCommandLine) GetMatchedIncludeSpec

func (p *ParsedCommandLine) GetMatchedIncludeSpec(fileName string) (string, bool)

func (*ParsedCommandLine) GetOutputDeclarationAndSourceFileNames

func (p *ParsedCommandLine) GetOutputDeclarationAndSourceFileNames() iter.Seq2[string, string]

func (*ParsedCommandLine) GetOutputFileNames

func (p *ParsedCommandLine) GetOutputFileNames() iter.Seq[string]

func (*ParsedCommandLine) LiteralFileNames

func (p *ParsedCommandLine) LiteralFileNames() []string

Normalized file names explicitly specified in `files`

func (*ParsedCommandLine) MatchesFileName

func (p *ParsedCommandLine) MatchesFileName(fileName string) bool

Porting reference: ProjectService.isMatchedByConfig

func (*ParsedCommandLine) OutputDtsToProjectReference

func (p *ParsedCommandLine) OutputDtsToProjectReference() map[tspath.Path]*SourceOutputAndProjectReference

func (*ParsedCommandLine) ParseInputOutputNames

func (p *ParsedCommandLine) ParseInputOutputNames()

func (*ParsedCommandLine) ProjectReferences

func (p *ParsedCommandLine) ProjectReferences() []*core.ProjectReference

func (*ParsedCommandLine) ReloadFileNamesOfParsedCommandLine

func (p *ParsedCommandLine) ReloadFileNamesOfParsedCommandLine(fs vfs.FS) *ParsedCommandLine

func (*ParsedCommandLine) ResolvedProjectReferencePaths

func (p *ParsedCommandLine) ResolvedProjectReferencePaths() []string

func (*ParsedCommandLine) SetCompilerOptions

func (p *ParsedCommandLine) SetCompilerOptions(o *core.CompilerOptions)

func (*ParsedCommandLine) SetParsedOptions

func (p *ParsedCommandLine) SetParsedOptions(o *core.ParsedOptions)

func (*ParsedCommandLine) SetTypeAcquisition

func (p *ParsedCommandLine) SetTypeAcquisition(o *core.TypeAcquisition)

func (*ParsedCommandLine) SourceToProjectReference

func (p *ParsedCommandLine) SourceToProjectReference() map[tspath.Path]*SourceOutputAndProjectReference

func (*ParsedCommandLine) TypeAcquisition

func (p *ParsedCommandLine) TypeAcquisition() *core.TypeAcquisition

func (*ParsedCommandLine) UseCaseSensitiveFileNames

func (p *ParsedCommandLine) UseCaseSensitiveFileNames() bool

func (*ParsedCommandLine) WildcardDirectories

func (p *ParsedCommandLine) WildcardDirectories() map[string]bool

WildcardDirectories returns the cached wildcard directories, initializing them if needed

type SourceOutputAndProjectReference

type SourceOutputAndProjectReference struct {
	Source    string
	OutputDts string
	Resolved  *ParsedCommandLine
}

type TsConfigSourceFile

type TsConfigSourceFile struct {
	ExtendedSourceFiles []string

	SourceFile *ast.SourceFile
	// contains filtered or unexported fields
}

func NewTsconfigSourceFileFromFilePath

func NewTsconfigSourceFileFromFilePath(configFileName string, configPath tspath.Path, configSourceText string) *TsConfigSourceFile

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL