Stylesheet class Null safety AST Parsing

A Sass stylesheet.

This is the root Sass node. It contains top-level statements.

Inheritance
Annotations

Constructors

Stylesheet(Iterable<Statement> children, FileSpan span)
Stylesheet.parse(String contents, Syntax syntax, {Object? url, Logger? logger})
Parses a stylesheet from contents according to syntax. [...]
factory
Stylesheet.parseCss(String contents, {Object? url, Logger? logger})
Parses a plain CSS stylesheet from contents. [...]
factory
Stylesheet.parseSass(String contents, {Object? url, Logger? logger})
Parses an indented-syntax stylesheet from contents. [...]
factory
Stylesheet.parseScss(String contents, {Object? url, Logger? logger})
Parses an SCSS stylesheet from contents. [...]
factory

Properties

children List<Statement>
The child statements of this statement.
final, inherited
forwards List<ForwardRule>
All the @forward rules that appear in this stylesheet.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
span FileSpan
The source span associated with the node. [...]
final
uses List<UseRule>
All the @use rules that appear in this stylesheet.
read-only

Methods

accept<T>(StatementVisitor<T> visitor) → T
Calls the appropriate visit method on visitor.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited