package css_lexer
Import Path
github.com/evanw/esbuild/internal/css_lexer (on go.dev)
Dependency Relation
imports 3 packages, and imported by 3 packages
Involved Source Files
css_lexer.go
Package-Level Type Names (total 3, in which 2 are exported)
( T) String() string
T : expvar.Var
T : fmt.Stringer
T : context.stringer
T : runtime.stringer
const TAtKeyword
const TBadString
const TBadURL
const TCDC
const TCDO
const TCloseBrace
const TCloseBracket
const TCloseParen
const TColon
const TComma
const TDelim
const TDelimAmpersand
const TDelimAsterisk
const TDelimBar
const TDelimCaret
const TDelimDollar
const TDelimDot
const TDelimEquals
const TDelimExclamation
const TDelimGreaterThan
const TDelimPlus
const TDelimSlash
const TDelimTilde
const TDimension
const TEndOfFile
const TFunction
const THash
const TIdent
const TNumber
const TOpenBrace
const TOpenBracket
const TOpenParen
const TPercentage
const TSemicolon
const TString
const TURL
const TWhitespace
This token struct is designed to be memory-efficient. It just references a
range in the input file instead of directly containing the substring of text
since a range takes up less memory than a string.
// 1 byte
// 1 byte
// 8 bytes
// 2 bytes
( T) DecodedText(contents string) string
func Tokenize(log logger.Log, source logger.Source) (tokens []Token)
Package-Level Functions (total 9, in which 4 are exported)
func IsNameStart(c rune) bool
Package-Level Variables (only one, which is unexported)
Package-Level Constants (total 39, in which 37 are exported)
const TAtKeyword T = 1 const TBadString T = 2 const TCloseBrace T = 6 const TCloseBracket T = 7 const TCloseParen T = 8 const TDelimAmpersand T = 12 const TDelimAsterisk T = 13 const TDelimCaret T = 15 const TDelimDollar T = 16 const TDelimEquals T = 18 const TDelimExclamation T = 19 const TDelimGreaterThan T = 20 const TDelimPlus T = 21 const TDelimSlash T = 22 const TDelimTilde T = 23 const TDimension T = 24 const TEndOfFile T = 0 const TOpenBrace T = 29 const TOpenBracket T = 30 const TOpenParen T = 31 const TPercentage T = 32 const TSemicolon T = 33 const TWhitespace T = 36
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |