MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / addCategories

Function addCategories

packages/core/trace/index.ts:94–99  ·  view source on GitHub ↗
(categories: string)

Source from the content-addressed store, hash-verified

92 * @param categories The comma-separated list of categories. If not specified all messages from all categories will be traced.
93 */
94 export function addCategories(categories: string) {
95 const split = categories.split(',');
96 for (let i = 0; i < split.length; i++) {
97 _categories[split[i].trim()] = true;
98 }
99 }
100
101 /**
102 * Check if category is already set in trace module.

Callers 1

setCategoriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected