Class CssParsingContext
- Namespace
- SharpVectors.Dom.Css
- Assembly
- SharpVectors.Css.dll
Provides context information and diagnostics for CSS parsing operations. Helps track parsing state, errors, and performance metrics.
public class CssParsingContext
- Inheritance
-
CssParsingContext
- Inherited Members
Properties
- ElapsedTime
Gets the elapsed time for the parsing operation.
- Errors
Gets the collection of parsing errors encountered.
- HasErrors
Gets a value indicating whether any errors occurred during parsing.
- HasWarnings
Gets a value indicating whether any warnings occurred during parsing.
- RulesParsed
Gets the number of successfully parsed rules.
- Warnings
Gets the collection of parsing warnings encountered.
Methods
- AddError(string, int, string)
Records a parsing error.
- AddWarning(string, CssWarningLevel)
Records a parsing warning.
- Clear()
Clears all errors and warnings.
- GetSummary()
Gets a formatted summary of parsing results.
- RecordRuleParsed()
Records a successfully parsed rule.
- StartTracking()
Starts tracking the parsing operation.
- StopTracking()
Completes tracking and calculates elapsed time.