MCPcopy Index your code
hub / github.com/nodejs/node / isAllowedOptionForOutput

Function isAllowedOptionForOutput

test/fixtures/snapshot/typescript.js:41318–41323  ·  view source on GitHub ↗
(_a)

Source from the content-addressed store, hash-verified

41316 return Array(paddingLength + 1).join(" ");
41317 }
41318 function isAllowedOptionForOutput(_a) {
41319 var category = _a.category, name = _a.name, isCommandLineOnly = _a.isCommandLineOnly;
41320 // Skip options which do not have a category or have categories which are more niche
41321 var categoriesToSkip = [ts.Diagnostics.Command_line_Options, ts.Diagnostics.Editor_Support, ts.Diagnostics.Compiler_Diagnostics, ts.Diagnostics.Backwards_Compatibility, ts.Diagnostics.Watch_and_Build_Modes, ts.Diagnostics.Output_Formatting];
41322 return !isCommandLineOnly && category !== undefined && (!categoriesToSkip.includes(category) || compilerOptionsMap.has(name));
41323 }
41324 function writeConfigurations() {
41325 // Filter applicable options to place in the file
41326 var categorizedOptions = ts.createMultiMap();

Callers 1

writeConfigurationsFunction · 0.85

Calls 2

includesMethod · 0.80
hasMethod · 0.65

Tested by

no test coverage detected