Home / File/ Literal.js — svelte Source File

Literal.js — svelte Source File

Architecture documentation for Literal.js, a javascript file in the svelte codebase. 3 imports, 1 dependents.

File javascript Compiler Transformer 3 imports 1 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  d812d0a1_2202_85b0_1991_a9ba140dd8b4["Literal.js"]
  56a689f9_11c0_cc76_bd60_41bb6dc96475["warnings.js"]
  d812d0a1_2202_85b0_1991_a9ba140dd8b4 --> 56a689f9_11c0_cc76_bd60_41bb6dc96475
  3246e0bc_b9fc_f638_5e35_41e8c39a2408["w"]
  d812d0a1_2202_85b0_1991_a9ba140dd8b4 --> 3246e0bc_b9fc_f638_5e35_41e8c39a2408
  ce051dbd_4cf1_f117_d66e_12cfa122de37["patterns.js"]
  d812d0a1_2202_85b0_1991_a9ba140dd8b4 --> ce051dbd_4cf1_f117_d66e_12cfa122de37
  4aa8a188_84d4_0274_ed83_cac0ab1d3572["index.js"]
  4aa8a188_84d4_0274_ed83_cac0ab1d3572 --> d812d0a1_2202_85b0_1991_a9ba140dd8b4
  style d812d0a1_2202_85b0_1991_a9ba140dd8b4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

/** @import { Literal } from 'estree' */
import * as w from '../../../warnings.js';
import { regex_bidirectional_control_characters } from '../../patterns.js';

/**
 * @param {Literal} node
 */
export function Literal(node) {
	if (typeof node.value === 'string') {
		if (regex_bidirectional_control_characters.test(node.value)) {
			w.bidirectional_control_characters(node);
		}
	}
}

Domain

Subdomains

Functions

Frequently Asked Questions

What does Literal.js do?
Literal.js is a source file in the svelte codebase, written in javascript. It belongs to the Compiler domain, Transformer subdomain.
What functions are defined in Literal.js?
Literal.js defines 1 function(s): Literal.
What does Literal.js depend on?
Literal.js imports 3 module(s): patterns.js, w, warnings.js.
What files import Literal.js?
Literal.js is imported by 1 file(s): index.js.
Where is Literal.js in the architecture?
Literal.js is located at packages/svelte/src/compiler/phases/2-analyze/visitors/Literal.js (domain: Compiler, subdomain: Transformer, directory: packages/svelte/src/compiler/phases/2-analyze/visitors).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free