MCPcopy Create free account
hub / github.com/microsoft/typescript-go / parseCommandLineWorker

Function parseCommandLineWorker

internal/tsoptions/commandlineparser.go:114–131  ·  view source on GitHub ↗
(
	parseCommandLineWithDiagnostics *ParseCommandLineWorkerDiagnostics,
	commandLine []string,
	fs vfs.FS,
	currentDirectory string,
)

Source from the content-addressed store, hash-verified

112}
113
114func parseCommandLineWorker(
115 parseCommandLineWithDiagnostics *ParseCommandLineWorkerDiagnostics,
116 commandLine []string,
117 fs vfs.FS,
118 currentDirectory string,
119) *commandLineParser {
120 parser := &commandLineParser{
121 fs: fs,
122 currentDirectory: currentDirectory,
123 workerDiagnostics: parseCommandLineWithDiagnostics,
124 fileNames: []string{},
125 options: &collections.OrderedMap[string, any]{},
126 errors: []*ast.Diagnostic{},
127 }
128 parser.optionsMap = GetNameMapFromList(parser.OptionsDeclarations())
129 parser.parseStrings(commandLine)
130 return parser
131}
132
133func (p *commandLineParser) parseStrings(args []string) {
134 i := 0

Callers 2

ParseCommandLineFunction · 0.85
ParseBuildCommandLineFunction · 0.85

Calls 3

OptionsDeclarationsMethod · 0.95
parseStringsMethod · 0.95
GetNameMapFromListFunction · 0.85

Tested by

no test coverage detected