MCPcopy Create free account
hub / github.com/demoth/jake2 / CompleteVariable

Method CompleteVariable

qcommon/src/main/java/jake2/qcommon/exec/Cvar.java:413–423  ·  view source on GitHub ↗

Variable typing auto completition.

(String prefix)

Source from the content-addressed store, hash-verified

411 * Variable typing auto completition.
412 */
413 public List<String> CompleteVariable(String prefix) {
414
415 List<String> vars = new ArrayList<>();
416
417 for (String cvarName : cvarMap.keySet()) {
418 if (cvarName.startsWith(prefix))
419 vars.add(cvarName);
420 }
421
422 return vars;
423 }
424
425 /**
426 * Some characters are invalid for info strings.

Callers 1

CompleteCommandMethod · 0.80

Calls 1

addMethod · 0.45

Tested by

no test coverage detected