MCPcopy Create free account
hub / github.com/Wscats/vscode-explore / evaluate

Method evaluate

contextKeyExpr/src/contextkey.ts:1009–1016  ·  view source on GitHub ↗
(context: IContext)

Source from the content-addressed store, hash-verified

1007 }
1008
1009 public evaluate(context: IContext): boolean {
1010 for (let i = 0, len = this.expr.length; i < len; i++) {
1011 if (!this.expr[i].evaluate(context)) {
1012 return false;
1013 }
1014 }
1015 return true;
1016 }
1017
1018 private static _normalizeArr(arr: ReadonlyArray<ContextKeyExpression | null | undefined>): ContextKeyExpression[] {
1019 const expr: ContextKeyExpression[] = [];

Callers

nothing calls this directly

Calls 1

evaluateMethod · 0.65

Tested by

no test coverage detected