selector-parser.ts — tailwindcss Source File
Architecture documentation for selector-parser.ts, a typescript file in the tailwindcss codebase. 0 imports, 3 dependents.
Entity Profile
Dependency Diagram
graph LR 8f1d0c03_e255_b7cc_896f_c8432ac0535a["selector-parser.ts"] 7d350d81_5de1_f9f3_5b2c_19ec8fd3c37e["canonicalize-candidates.ts"] 7d350d81_5de1_f9f3_5b2c_19ec8fd3c37e --> 8f1d0c03_e255_b7cc_896f_c8432ac0535a af1a6ece_0432_a556_fd63_8cb4a91f12ad["plugin-api.ts"] af1a6ece_0432_a556_fd63_8cb4a91f12ad --> 8f1d0c03_e255_b7cc_896f_c8432ac0535a be20a43f_a7c3_297e_7172_e930a08b4c28["selector-parser.test.ts"] be20a43f_a7c3_297e_7172_e930a08b4c28 --> 8f1d0c03_e255_b7cc_896f_c8432ac0535a style 8f1d0c03_e255_b7cc_896f_c8432ac0535a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
export type SelectorCombinatorNode = {
kind: 'combinator'
value: string
}
export type SelectorFunctionNode = {
kind: 'function'
value: string
nodes: SelectorAstNode[]
}
export type SelectorNode = {
kind: 'selector'
value: string
}
export type SelectorValueNode = {
kind: 'value'
value: string
}
export type SelectorSeparatorNode = {
kind: 'separator'
value: string
}
export type SelectorAstNode =
| SelectorCombinatorNode
| SelectorFunctionNode
| SelectorNode
| SelectorSeparatorNode
| SelectorValueNode
function combinator(value: string): SelectorCombinatorNode {
return {
kind: 'combinator',
value,
}
}
function fun(value: string, nodes: SelectorAstNode[]): SelectorFunctionNode {
return {
kind: 'function',
value: value,
nodes,
}
}
function selector(value: string): SelectorNode {
return {
kind: 'selector',
value,
}
}
function separator(value: string): SelectorSeparatorNode {
return {
kind: 'separator',
value,
}
// ... (362 more lines)
Domain
Subdomains
Types
Imported By
Source
Frequently Asked Questions
What does selector-parser.ts do?
selector-parser.ts is a source file in the tailwindcss codebase, written in typescript. It belongs to the OxideEngine domain, Extractor subdomain.
What functions are defined in selector-parser.ts?
selector-parser.ts defines 7 function(s): combinator, fun, parse, selector, separator, toCss, value.
What files import selector-parser.ts?
selector-parser.ts is imported by 3 file(s): canonicalize-candidates.ts, plugin-api.ts, selector-parser.test.ts.
Where is selector-parser.ts in the architecture?
selector-parser.ts is located at packages/tailwindcss/src/selector-parser.ts (domain: OxideEngine, subdomain: Extractor, directory: packages/tailwindcss/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free