read_until() — svelte Function Reference
Architecture documentation for the read_until() function in index.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD a21e34c1_babd_5944_d71e_54c4483ed94a["read_until()"] 042e583c_5e12_9bde_ddd8_8091d5ea0f7d["Parser"] a21e34c1_babd_5944_d71e_54c4483ed94a -->|defined in| 042e583c_5e12_9bde_ddd8_8091d5ea0f7d feea79ed_c6f7_4068_9c81_9734e5dcbfb7["unexpected_eof()"] a21e34c1_babd_5944_d71e_54c4483ed94a -->|calls| feea79ed_c6f7_4068_9c81_9734e5dcbfb7 style a21e34c1_babd_5944_d71e_54c4483ed94a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/1-parse/index.js lines 266–282
read_until(pattern) {
if (this.index >= this.template.length) {
if (this.loose) return '';
e.unexpected_eof(this.template.length);
}
const start = this.index;
const match = pattern.exec(this.template.slice(start));
if (match) {
this.index = start + match.index;
return this.template.slice(start, this.index);
}
this.index = this.template.length;
return this.template.slice(start);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does read_until() do?
read_until() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/1-parse/index.js.
Where is read_until() defined?
read_until() is defined in packages/svelte/src/compiler/phases/1-parse/index.js at line 266.
What does read_until() call?
read_until() calls 1 function(s): unexpected_eof.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free