MCPcopy Create free account
hub / github.com/compiler-explorer/compiler-explorer / getKeysStartingWith

Method getKeysStartingWith

lib/properties.ts:209–220  ·  view source on GitHub ↗
(langId: string, prefix: string)

Source from the content-addressed store, hash-verified

207 }
208
209 getKeysStartingWith(langId: string, prefix: string): string[] {
210 const keys = new Set<string>(getKeysStartingWith(langId, prefix));
211 const sourceData = (this.ceProps as PropFunc)._sourceData;
212 if (sourceData) {
213 for (const key of Object.keys(sourceData)) {
214 if (key.startsWith(prefix)) {
215 keys.add(key);
216 }
217 }
218 }
219 return [...keys];
220 }
221
222 $getInternal(base: string, property: string, defaultValue: undefined): PropertyValue;
223 $getInternal<T extends PropertyValue>(base: string, property: string, defaultValue: Widen<T>): typeof defaultValue;

Callers 1

Calls 2

getKeysStartingWithFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected