from_processed() — svelte Function Reference
Architecture documentation for the from_processed() function in mapped_code.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 0306cc9d_f615_8a46_ac65_f39600cad75c["from_processed()"] fd3be7c7_b876_965d_9025_a9b9bd4c6aaf["MappedCode"] 0306cc9d_f615_8a46_ac65_f39600cad75c -->|defined in| fd3be7c7_b876_965d_9025_a9b9bd4c6aaf 92d1dbed_c18f_e491_3361_186a20a4d91a["processed_content_to_code()"] 92d1dbed_c18f_e491_3361_186a20a4d91a -->|calls| 0306cc9d_f615_8a46_ac65_f39600cad75c 860c55db_f911_8bca_7055_338865a9f9b0["processed_tag_to_code()"] 860c55db_f911_8bca_7055_338865a9f9b0 -->|calls| 0306cc9d_f615_8a46_ac65_f39600cad75c style 0306cc9d_f615_8a46_ac65_f39600cad75c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/utils/mapped_code.js lines 192–209
static from_processed(string, map) {
const line_count = string.split('\n').length;
if (map) {
// ensure that count of source map mappings lines
// is equal to count of generated code lines
// (some tools may produce less)
const missing_lines = line_count - map.mappings.length;
for (let i = 0; i < missing_lines; i++) {
map.mappings.push([]);
}
return new MappedCode(string, map);
}
if (string == '') return new MappedCode();
map = { version: 3, names: [], sources: [], mappings: [] };
// add empty SourceMapSegment[] for every line
for (let i = 0; i < line_count; i++) map.mappings.push([]);
return new MappedCode(string, map);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does from_processed() do?
from_processed() is a function in the svelte codebase, defined in packages/svelte/src/compiler/utils/mapped_code.js.
Where is from_processed() defined?
from_processed() is defined in packages/svelte/src/compiler/utils/mapped_code.js at line 192.
What calls from_processed()?
from_processed() is called by 2 function(s): processed_content_to_code, processed_tag_to_code.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free