Home / Function/ input_implicit_role() — svelte Function Reference

input_implicit_role() — svelte Function Reference

Architecture documentation for the input_implicit_role() function in index.js from the svelte codebase.

Function javascript Compiler Transformer calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  694b1faf_06cb_f202_7b04_fac7e68c1871["input_implicit_role()"]
  b389a21f_6de7_2a41_34f3_8efbf9045c9c["index.js"]
  694b1faf_06cb_f202_7b04_fac7e68c1871 -->|defined in| b389a21f_6de7_2a41_34f3_8efbf9045c9c
  b866a2ba_c410_436d_e129_97df6aa52e45["get_implicit_role()"]
  b866a2ba_c410_436d_e129_97df6aa52e45 -->|calls| 694b1faf_06cb_f202_7b04_fac7e68c1871
  82c454e1_d40e_f288_e9f9_3476ef8e8419["get()"]
  694b1faf_06cb_f202_7b04_fac7e68c1871 -->|calls| 82c454e1_d40e_f288_e9f9_3476ef8e8419
  09250a77_9dca_fc69_beb4_75e85845d9e8["get_static_text_value()"]
  694b1faf_06cb_f202_7b04_fac7e68c1871 -->|calls| 09250a77_9dca_fc69_beb4_75e85845d9e8
  style 694b1faf_06cb_f202_7b04_fac7e68c1871 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y/index.js lines 740–750

function input_implicit_role(attribute_map) {
	const type_attribute = attribute_map.get('type');
	if (!type_attribute) return;
	const type = get_static_text_value(type_attribute);
	if (!type) return;
	const list_attribute_exists = attribute_map.has('list');
	if (list_attribute_exists && combobox_if_list.includes(type)) {
		return 'combobox';
	}
	return input_type_to_implicit_role.get(type);
}

Domain

Subdomains

Frequently Asked Questions

What does input_implicit_role() do?
input_implicit_role() is a function in the svelte codebase, defined in packages/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y/index.js.
Where is input_implicit_role() defined?
input_implicit_role() is defined in packages/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y/index.js at line 740.
What does input_implicit_role() call?
input_implicit_role() calls 2 function(s): get, get_static_text_value.
What calls input_implicit_role()?
input_implicit_role() is called by 1 function(s): get_implicit_role.

Analyze Your Own Codebase

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

Try Supermodel Free