MCPcopy Create free account
hub / github.com/solidjs/solid-start / isDirectiveValid

Function isDirectiveValid

packages/start/src/directives/plugin.ts:35–42  ·  view source on GitHub ↗
(ctx: StateContext, directives: t.Directive[])

Source from the content-addressed store, hash-verified

33}
34
35function isDirectiveValid(ctx: StateContext, directives: t.Directive[]) {
36 for (let i = 0, len = directives.length; i < len; i++) {
37 if (directives[i]!.value.value === ctx.directive) {
38 return true;
39 }
40 }
41 return false;
42}
43
44function cleanDirectives(path: babel.NodePath<t.BlockStatement | t.Program>, target: string): void {
45 const newDirectives: t.Directive[] = [];

Callers 2

isFunctionDirectiveValidFunction · 0.85
ProgramFunction · 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…