allow_comment_or_whitespace() — svelte Function Reference
Architecture documentation for the allow_comment_or_whitespace() function in style.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD ae0c2614_bb2e_88b4_b84e_1fd1d9fd582b["allow_comment_or_whitespace()"] 251e2338_f8b8_69b4_b2e5_29ee7decbfa6["style.js"] ae0c2614_bb2e_88b4_b84e_1fd1d9fd582b -->|defined in| 251e2338_f8b8_69b4_b2e5_29ee7decbfa6 94e530df_408d_ac7a_c243_1709ce77053c["read_body()"] 94e530df_408d_ac7a_c243_1709ce77053c -->|calls| ae0c2614_bb2e_88b4_b84e_1fd1d9fd582b a2faeba8_5477_23ae_005c_e02d8e7f69c1["read_selector_list()"] a2faeba8_5477_23ae_005c_e02d8e7f69c1 -->|calls| ae0c2614_bb2e_88b4_b84e_1fd1d9fd582b fcabd261_14f2_2647_3794_39b7100eda95["read_selector()"] fcabd261_14f2_2647_3794_39b7100eda95 -->|calls| ae0c2614_bb2e_88b4_b84e_1fd1d9fd582b 880a32a4_ea32_dd22_0d38_a206a327356e["read_block()"] 880a32a4_ea32_dd22_0d38_a206a327356e -->|calls| ae0c2614_bb2e_88b4_b84e_1fd1d9fd582b style ae0c2614_bb2e_88b4_b84e_1fd1d9fd582b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/compiler/phases/1-parse/read/style.js lines 613–628
function allow_comment_or_whitespace(parser) {
parser.allow_whitespace();
while (parser.match('/*') || parser.match('<!--')) {
if (parser.eat('/*')) {
parser.read_until(REGEX_COMMENT_CLOSE);
parser.eat('*/', true);
}
if (parser.eat('<!--')) {
parser.read_until(REGEX_HTML_COMMENT_CLOSE);
parser.eat('-->', true);
}
parser.allow_whitespace();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does allow_comment_or_whitespace() do?
allow_comment_or_whitespace() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/1-parse/read/style.js.
Where is allow_comment_or_whitespace() defined?
allow_comment_or_whitespace() is defined in packages/svelte/src/compiler/phases/1-parse/read/style.js at line 613.
What calls allow_comment_or_whitespace()?
allow_comment_or_whitespace() is called by 4 function(s): read_block, read_body, read_selector, read_selector_list.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free