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

Function addCommonWords

lib/internal/repl/completion.js:146–156  ·  view source on GitHub ↗
(completionGroups)

Source from the content-addressed store, hash-verified

144}
145
146function addCommonWords(completionGroups) {
147 // Only words which do not yet exist as global property should be added to
148 // this list.
149 ArrayPrototypePush(completionGroups, [
150 'async', 'await', 'break', 'case', 'catch', 'const', 'continue',
151 'debugger', 'default', 'delete', 'do', 'else', 'export', 'false',
152 'finally', 'for', 'function', 'if', 'import', 'in', 'instanceof', 'let',
153 'new', 'null', 'return', 'switch', 'this', 'throw', 'true', 'try',
154 'typeof', 'var', 'void', 'while', 'with', 'yield',
155 ]);
156}
157
158function gracefulReaddir(...args) {
159 try {

Callers 1

completeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…