Please enable JavaScript in your browser!
Sākums
Izpētīt
Palīdzība
Reģistrēties
Pierakstīties
lihai
/
pad_spa
Vērot
1
Pievienot zvaigznīti
0
Atdalīts
0
Files
Problēmas
0
Izmaiņu pieprasījumi
0
Vikivietne
Koks:
8d6c751f49
Atzari
Tagi
feat/lihai
guoziming
hlg/20220512
lihai
master
yuhao
zhp
pad_spa
/
node_modules
/
css-tree
/
docs
/
Tokenizer.md
Tokenizer.md
3.5 KB
Vēsture
Neapstrādāts
Tokenizer
Static properties
CssSyntaxError
TYPE
NAME
SYMBOL_TYPE
PUNCTUATION
Static methods
firstCharOffset(source)
isHex(code)
isNumber(code)
isNewline(source, offset, code)
cmpChar(testStr, offset, referenceCode)
cmpStr(testStr, start, end, referenceStr)
endsWith(testStr, referenceStr)
findLastNonSpaceLocation(scanner)
findWhitespaceEnd(source, offset)
findCommentEnd(source, offset)
findStringEnd(source, offset, quote)
findDecimalNumberEnd(source, offset)
findNumberEnd(source, offset, allowFraction)
findEscaseEnd(source, offset)
findIdentifierEnd(source, offset)
Methods
setSource(source, startOffset, startLine, startColumn)
lookupType(offset)
lookupNonWSType(offset)
lookupValue(offset, referenceStr)
getTokenValue()
substrToCursor(start)
skipWS()
skip(tokenCount)
next()
eat(tokenType)
eatNonWS(tokenType)
consume(tokenType)
consumeNonWS(tokenType)
expectIdentifier(name)
getLocation(offset, filename)
getLocationRange(start, end, filename)
error(message, offset)
getTypes()
Static properties
CssSyntaxError
TYPE
NAME
SYMBOL_TYPE
PUNCTUATION
Static methods
firstCharOffset(source)
isHex(code)
isNumber(code)
isNewline(source, offset, code)
cmpChar(testStr, offset, referenceCode)
cmpStr(testStr, start, end, referenceStr)
endsWith(testStr, referenceStr)
findLastNonSpaceLocation(scanner)
findWhitespaceEnd(source, offset)
findCommentEnd(source, offset)
findStringEnd(source, offset, quote)
findDecimalNumberEnd(source, offset)
findNumberEnd(source, offset, allowFraction)
findEscaseEnd(source, offset)
findIdentifierEnd(source, offset)
Methods
setSource(source, startOffset, startLine, startColumn)
lookupType(offset)
lookupNonWSType(offset)
lookupValue(offset, referenceStr)
getTokenValue()
substrToCursor(start)
skipWS()
skip(tokenCount)
next()
eat(tokenType)
eatNonWS(tokenType)
consume(tokenType)
consumeNonWS(tokenType)
expectIdentifier(name)
getLocation(offset, filename)
getLocationRange(start, end, filename)
error(message, offset)
getTypes()