Style Rule
class StyleRule(val pattern: ValidatedStylePattern, val instructions: NybbleArray, literals: List<String>)
A StyleRule is a pattern-matching program produced by a StylePatternCompiler. A runtime stylesheet aggregates all rules that should be considered when determining how Avail source text should be rendered.
Author
Todd L Smith
Parameters
pattern
The validated pattern.
instructions
The instructions that implement the pattern-matching program.
Constructors
Link copied to clipboard
Construct a StyleRule.
Properties
Link copied to clipboard
The initial StyleRuleContext for running the receiver.
Link copied to clipboard
The instructions that implement the pattern-matching program.
Link copied to clipboard
Link copied to clipboard
The validated rendering context to apply when this rule is not obsoleted by a more specific rule during aggregate matching.