CSSParser class
Properties
Methods
-
checkEndOfFile(
) → void -
Generate an error if
file
has not been completely consumed. -
identifier(
) → Identifier -
isPrematureEndOfFile(
) → bool - Guard to break out of parser when an unexpected end of file is found.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
) → CSSStyleSheet - Main entry point for parsing an entire CSS file.
-
parseInlineStyle(
) → Map< String, dynamic> -
parseRules(
{int startPosition = 0}) → List< CSSRule> -
parseSelector(
) → List< Selector> - Main entry point for parsing a simple selector sequence.
-
processAttribute(
) → AttributeSelector? -
processCalcExpression(
) → String -
processCompoundSelector(
) → Selector? - Same as processSelector but reports an error for each combinator.
-
processDeclaration(
CSSStyleDeclaration style) → void -
processDeclarations(
{bool checkBrace = true}) → List -
processDirective(
) → CSSRule? - Directive grammar:
-
processExpr(
[bool ieFilter = false]) → String? -
processFunction(
Identifier func) → dynamic -
processGroupRuleBody(
) → List< CSSRule> -
processPseudoSelector(
FileSpan start) → SimpleSelector? -
processQuotedString(
[bool urlString = false]) → String -
processRule(
[SelectorGroup? selectorGroup]) → List< CSSRule> ? -
processSelector(
) → Selector? - Return list of selectors
-
processSelectorExpression(
) → List< String> - In CSS3, the expressions are identifiers, strings, or of the form "an+b".
-
processSelectorGroup(
) → SelectorGroup? -
simpleSelector(
) → SimpleSelector? - Simple selector grammar:
-
simpleSelectorSequence(
bool forceCombinatorNone) → SimpleSelectorSequence? -
simpleSelectorTail(
) → SimpleSelector? - type_selector | universal | HASH | class | attrib | pseudo
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- MAX_UNICODE → const int