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

Method evaluate

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

Source from the content-addressed store, hash-verified

1137 }
1138
1139 public evaluate(context: IContext): boolean {
1140 for (let i = 0, len = this.expr.length; i < len; i++) {
1141 if (this.expr[i].evaluate(context)) {
1142 return true;
1143 }
1144 }
1145 return false;
1146 }
1147
1148 private static _normalizeArr(arr: ReadonlyArray<ContextKeyExpression | null | undefined>): ContextKeyExpression[] {
1149 let expr: ContextKeyExpression[] = [];

Callers

nothing calls this directly

Calls 1

evaluateMethod · 0.65

Tested by

no test coverage detected