TokenizerContext
in package
Tags
Table of Contents
Properties
- $currentBlockToken : BlockToken|null
- Current block token being processed
- $currentContent : string
- Current content of parse. Ex: the selector name, the property name or the property content
- $currentPosition : Position|null
- Current position of the tokenizer
- $currentToken : Token|null
- Current token being processed
- $previousToken : Token|null
- Previous token being processed
Methods
- appendCurrentContent() : self
- Append new value to context content
- getCurrentBlockToken() : BlockToken|null
- getCurrentContent() : string
- Return context content
- getCurrentPosition() : Position
- getCurrentToken() : Token|null
- Get the current token being processed
- getPreviousToken() : Token|null
- incrementColumn() : self
- incrementLine() : self
- resetCurrentContent() : self
- Reset current content property
- resetCurrentToken() : self
- Reset current token property
- setCurrentBlockToken() : self
- setCurrentToken() : self
- Set new current token
Properties
$currentBlockToken
Current block token being processed
private
BlockToken|null
$currentBlockToken
= null
$currentContent
Current content of parse. Ex: the selector name, the property name or the property content
private
string
$currentContent
= ''
$currentPosition
Current position of the tokenizer
private
Position|null
$currentPosition
= null
$currentToken
Current token being processed
private
Token|null
$currentToken
= null
$previousToken
Previous token being processed
private
Token|null
$previousToken
= null
Methods
appendCurrentContent()
Append new value to context content
public
appendCurrentContent(string $currentContent) : self
Parameters
- $currentContent : string
Return values
selfgetCurrentBlockToken()
public
getCurrentBlockToken() : BlockToken|null
Return values
BlockToken|nullgetCurrentContent()
Return context content
public
getCurrentContent() : string
Return values
stringgetCurrentPosition()
public
getCurrentPosition() : Position
Return values
PositiongetCurrentToken()
Get the current token being processed
public
getCurrentToken() : Token|null
Return values
Token|nullgetPreviousToken()
public
getPreviousToken() : Token|null
Return values
Token|nullincrementColumn()
public
incrementColumn() : self
Return values
selfincrementLine()
public
incrementLine() : self
Return values
selfresetCurrentContent()
Reset current content property
public
resetCurrentContent() : self
Return values
selfresetCurrentToken()
Reset current token property
public
resetCurrentToken() : self
Return values
selfsetCurrentBlockToken()
public
setCurrentBlockToken(BlockToken|null $currentBlockToken) : self
Parameters
- $currentBlockToken : BlockToken|null
Return values
selfsetCurrentToken()
Set new current token
public
setCurrentToken(Token|null $currentToken) : self
Parameters
- $currentToken : Token|null