MCPcopy Index your code
hub / github.com/callstack/linaria / raw

Method raw

packages/postcss-linaria/src/stringify.ts:153–168  ·  view source on GitHub ↗

@inheritdoc

(
    node: AnyNode,
    own: string,
    detect: string | undefined
  )

Source from the content-addressed store, hash-verified

151
152 /** @inheritdoc */
153 public override raw(
154 node: AnyNode,
155 own: string,
156 detect: string | undefined
157 ): string {
158 if (own === 'before' && node.raws.before && node.raws.linariaBefore) {
159 return node.raws.linariaBefore;
160 }
161 if (own === 'after' && node.raws.after && node.raws.linariaAfter) {
162 return node.raws.linariaAfter;
163 }
164 if (own === 'between' && node.raws.between && node.raws.linariaBetween) {
165 return node.raws.linariaBetween;
166 }
167 return super.raw(node, own, detect);
168 }
169
170 /** @inheritdoc */
171 public override rawValue(node: AnyNode, prop: string): string {

Callers 2

declMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected