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 44cf1398_18e8_9bac_e42c_f3766b1fa98f["selector-parser.ts"] f6c14bbb_2e42_58cc_18f1_c89a243da9c0["canonicalize-candidates.ts"] f6c14bbb_2e42_58cc_18f1_c89a243da9c0 --> 44cf1398_18e8_9bac_e42c_f3766b1fa98f da5d1116_ab2a_437a_6b13_c1429fd546fa["plugin-api.ts"] da5d1116_ab2a_437a_6b13_c1429fd546fa --> 44cf1398_18e8_9bac_e42c_f3766b1fa98f 5a5c9d67_8d84_06bd_ad39_e33e27331bc0["selector-parser.test.ts"] 5a5c9d67_8d84_06bd_ad39_e33e27331bc0 --> 44cf1398_18e8_9bac_e42c_f3766b1fa98f style 44cf1398_18e8_9bac_e42c_f3766b1fa98f 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 Oxide 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: Oxide, 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