( parseCommandLineWithDiagnostics *ParseCommandLineWorkerDiagnostics, commandLine []string, fs vfs.FS, currentDirectory string, )
| 112 | } |
| 113 | |
| 114 | func 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 | |
| 133 | func (p *commandLineParser) parseStrings(args []string) { |
| 134 | i := 0 |
no test coverage detected