MCPcopy Create free account
hub / github.com/solidjs/solid-router / constructor

Method constructor

src/recognizer/index.ts:303–319  ·  view source on GitHub ↗
(
    states: State<THandler>[],
    id: number,
    char: number,
    negate: boolean,
    repeat: boolean
  )

Source from the content-addressed store, hash-verified

301 types: [number, number, number] | undefined;
302
303 constructor(
304 states: State<THandler>[],
305 id: number,
306 char: number,
307 negate: boolean,
308 repeat: boolean
309 ) {
310 this.states = states;
311 this.id = id;
312 this.char = char;
313 this.negate = negate;
314 this.nextStates = repeat ? id : null;
315 this.pattern = "";
316 this._regex = undefined;
317 this.handlers = undefined;
318 this.types = undefined;
319 }
320
321 regex(): RegExp {
322 if (!this._regex) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected