MCPcopy
hub / github.com/callstack/linaria / toString

Method toString

packages/react/src/processors/styled.ts:437–449  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

435 }
436
437 public override toString(): string {
438 const res = (arg: string) => `${this.tagSourceCode()}(${arg})\`…\``;
439
440 if (typeof this.component === 'string') {
441 if (this.component === 'FunctionalComponent') {
442 return res('() => {…}');
443 }
444
445 return res(`'${this.component}'`);
446 }
447
448 return res(this.component.source);
449 }
450
451 protected createStaticSelectorValue(
452 extendsValue: StaticStyledValue | null

Callers 9

waitForProcessFunction · 0.80
waitForProcessFunction · 0.80
collectFunction · 0.80
self-import.jsFile · 0.80
slugifyFunction · 0.80
hashPropertyFunction · 0.80
atomizeFunction · 0.80
parseFunction · 0.80
stringify.test.tsFile · 0.80

Calls

no outgoing calls

Tested by 2

waitForProcessFunction · 0.64
waitForProcessFunction · 0.64